enable.drawing.point_line module
A point-to-point drawn polygon.
-
class
enable.drawing.point_line.
PointLine
(**traits)[source]
Bases: enable.drawing.drawing_tool.DrawingTool
A point-to-point drawn line.
-
add_point
(point)[source]
Add the point.
-
complete_draw
(gc)[source]
-
complete_left_down
(event)[source]
Handle the left mouse button going down in the ‘complete’ state.
-
complete_mouse_move
(event)[source]
Handle the mouse moving in the ‘complete’ state.
-
drag_point_draw
(gc)[source]
Draw the polygon in the ‘drag_point’ state.
-
drag_point_left_up
(event)[source]
Handle the left mouse coming up in the ‘drag_point’ state.
-
drag_point_mouse_move
(event)[source]
Handle the mouse moving in the ‘drag_point’ state.
-
get_point
(index)[source]
Get the point at the specified index.
-
incomplete_draw
(gc)[source]
Draw the line in the ‘incomplete’ state.
-
incomplete_left_dclick
(event)[source]
Handle a left double-click in the incomplete state.
-
incomplete_left_down
(event)[source]
Handle the left mouse button coming up in incomplete state.
-
incomplete_mouse_move
(event)[source]
Handle the mouse moving in incomplete state.
-
normal_left_down
(event)[source]
Handle the left button up in the ‘normal’ state.
-
normal_mouse_move
(event)[source]
Handle the mouse moving in the ‘normal’ state.
-
remove_point
(index)[source]
Remove the point with the specified index.
-
reset
()[source]
Causes the tool to reset any saved state and revert its event_state
back to the initial value (usually “normal”).
-
set_point
(index, point)[source]
Set the point at the specified index to point.