ActionTool class

The ActionTool is responsible for handling and dispatching mouse events on GraphObjects that have GraphObject#isActionable set to true. This is how one implements "controls", such as buttons or sliders or knobs, as GraphObjects that can be inside Parts without interfering with the standard tool behaviors.

This tool allows individual GraphObjects (usually Panels) to handle mouse-down-move-up events without having to define new Tools. It does this by calling GraphObject#actionDown, GraphObject#actionMove, GraphObject#actionUp, and GraphObject#actionCancel on objects that have GraphObject#isActionable set to true.

This tool is a standard mouse-down tool, the ToolManager#actionTool.

This tool does not utilize any Adornments or tool handles. This tool does not modify the model or conduct any transaction, although the actions that this invokes may do so.

It would be very unusual to want to customize this tool.

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

ActionTool()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited