ClickCreatingTool class
The ClickCreatingTool lets the user create a node by clicking where they want the new node to be. By default a double-click is required to start this tool; set #isDoubleClick to false if you want a single-click to create a node.
This tool is a standard mouse-up tool, the ToolManager#clickCreatingTool. However, it will not be able to start running unless you have set the #archetypeNodeData property to an object that can be copied and added to the diagram's model.
If you set #isGridSnapEnabled to true, newly created parts will be snapped to points on a grid.
This tool does not utilize any Adornments or tool handles. This tool does conduct a transaction when inserting the new node.
If you want to programmatically create a Part, you can call #insertPart.
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- ClickCreatingTool()
-
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