chaco.tools.legend_tool module¶
Defines the LegendTool class.
- 
class 
chaco.tools.legend_tool.LegendTool(component=None, **traits)¶ Bases:
enable.tools.drag_tool.DragToolA tool for interacting with legends.
Attach this tool to a legend by setting the tool’s component to the legend.
- 
auto_align= Bool(True)¶ Whether to change the legend’s align property in accord with the quadrant into which it is dropped.
The mouse button that initiates the drag.
- 
drag_end(event)¶ Called when a mouse event causes the drag operation to end.
Implements DragTool.
- 
drag_start(event)¶ Called when the drag operation starts.
Implements DragTool.
- 
dragging(event)¶ This method is called for every mouse_move event that the tool receives while the user is dragging the mouse.
Implements DragTool. Moves the legend by aligning it to a corner of its overlay component.
- 
is_draggable(x, y)¶ Returns whether the (x,y) position is in a region that is OK to drag.
Overrides DragTool.
-