chaco.tools.tool_states module

class chaco.tools.tool_states.GroupedToolState(states)

Bases: chaco.tools.tool_states.ToolState

apply(tool)
revert(tool)
class chaco.tools.tool_states.PanState(prev, next)

Bases: chaco.tools.tool_states.ToolState

apply(tool)
revert(tool)
class chaco.tools.tool_states.SelectedZoomState(prev, next)

Bases: chaco.tools.tool_states.ZoomState

apply(zoom_tool)
revert(zoom_tool)
class chaco.tools.tool_states.ToolState(prev, next)

Bases: traits.has_traits.HasTraits

apply(tool)
revert(tool)
class chaco.tools.tool_states.ZoomState(prev, next)

Bases: chaco.tools.tool_states.ToolState

A zoom state which can be applied and reverted.

This class exists so that subclasses can introduce new types of events which can be applied and reverted in the same manner. This greatly eases the code for managing history

apply(zoom_tool)
revert(zoom_tool)