Behavior
public enum Behavior : Int
Defines values that specify how the library responds to actions performed by the user ShapeNode.
- modify: Objects can be selected and modified. New objects cannot be created.
- drawShapes: Drawing with the mouse creates ShapeNode instances.
- drawLinks: Drawing started over a node creates a DiagramLink. Otherwise a lasso rectangle is displayed allowing the selection of items.
- linkShapes: A mode that is suitable for creating flowcharts and process diagrams. Drawing over empty document area creates a ShapeNode instance. Drawing started over a node creates a DiagramLink.
- linkTables: A mode that is suitable for creating entity-relationship diagrams. Drawing over empty document area creates a TableNode instance. Drawing started over a node creates a DiagramLink.
- drawTables: Drawing with the mouse creates TableNode instances.
- doNothing: The control ignores users actions with the mouse, but raises the appropriate mouse events. This mode allows applications to implement their own mouse-drawing behavior, disabling the default response to users actions.
- custom: Specifies that user input should be handled by the BehaviorBase-derived object assigned to CustomBehavior.
- drawContainers: Drawing with the mouse creates ContainerNode instances.
- linkContainers: Drawing over empty document area creates a ContainerNode instance. Drawing started over a node creates a DiagramLink.
- pan: Dragging with the mouse pans the view. This requires that the Diagram is contained in a ScrollViewer.
- drawTreeViews: Drawing with the mouse creates TreeViewNode instances.
- linkTreeViews: Drawing over an empty document area creates a TreeViewNode instance. Drawing started over a node creates a DiagramLink.
- selectOnly: Allow only selection of existing items. Modifying them or drawing new ones is disabled.
- panAndModify: Items can be selected and modified. New items cannot be created, and dragging without grabbing an adjustment handle pans the view.
- moveNodes: Dragging with the mouse moves the node under mouse pointer.
-
Undocumented
Declaration
Swift
case modify = 0
-
Undocumented
Declaration
Swift
case drawShapes = 1
-
Undocumented
Declaration
Swift
case drawLinks = 2
-
Undocumented
Declaration
Swift
case linkShapes = 3
-
Undocumented
Declaration
Swift
case linkTables = 4
-
Undocumented
Declaration
Swift
case drawTables = 5
-
Undocumented
Declaration
Swift
case doNothing = 8
-
Undocumented
Declaration
Swift
case custom = 9
-
Undocumented
Declaration
Swift
case drawContainers = 10
-
Undocumented
Declaration
Swift
case linkContainers = 11
-
Undocumented
Declaration
Swift
case pan = 12
-
Undocumented
Declaration
Swift
case drawTreeViews = 13
-
Undocumented
Declaration
Swift
case linkTreeViews = 14
-
Undocumented
Declaration
Swift
case selectOnly = 17
-
Undocumented
Declaration
Swift
case panAndModify = 27
-
Undocumented
Declaration
Swift
case moveNodes = 28