public class DrawFreeFormsBehavior extends DrawNodesBehavior
Behavior.DrawFreeForms
behavior.currentCursor, diagramView
Constructor and Description |
---|
DrawFreeFormsBehavior(DiagramView diagramView,
boolean convertToShape)
Initializes a new instance of the DrawFreeFormsBehavior class.
|
Modifier and Type | Method and Description |
---|---|
protected DiagramNode |
createNode() |
startDraw
cancelDrag, createLink, getDiagram, getDiagramView, pointerDown, pointerMove, pointerUp, startDrawCommon
pointerOver, supportsAutoScroll
public DrawFreeFormsBehavior(DiagramView diagramView, boolean convertToShape)
diagramView
- A DiagramView instance.convertToShape
- true to convert the FreeFormNode to a ShapeNode once user finishes drawing it, or false otherwise.protected DiagramNode createNode()
createNode
in class DrawNodesBehavior