The members of this enumeration specify how the component should respond to users actions. These constants can be used as arguments of the setBehavior method of the Diagram class.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java
![]() |
---|
public enum Behavior |
Member name | Description | |
---|---|---|
![]() |
Custom |
Specifies that user input will be handled by the BehaviorBase-derived object assigned to DiagramView.setCustomBehavior. |
![]() |
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 JDiagram response to users actions. |
![]() |
DrawContainers |
Drawing with the mouse creates ContainerNode instances. |
![]() |
DrawControls |
Drawing with the mouse creates ControlNode instances. |
![]() |
DrawFreeForms |
Drawing with the mouse creates FreeFormNode instances. |
![]() |
DrawFreeShapes |
Points from user input are shown using a FreeFormNode instance. Once the user finishes drawing, the FreeFormNode is replaced by a ShapeNode with a matching shape from Diagram.FreeFormTargets list. |
![]() |
DrawLinks |
Drawing started over a node creates a DiagramLink. Otherwise a lasso rectangle is displayed allowing the selection of items. |
![]() |
DrawShapes |
Drawing with the mouse creates ShapeNode instances. |
![]() |
DrawTables |
Drawing with the mouse creates TableNode instances. |
![]() |
DrawTreeViews |
Drawing with the mouse creates TreeViewNode instances. |
![]() |
LinkContainers |
Drawing over empty document area creates a ContainerNode instance. Drawing started over a node creates a DiagramLink. </summary> |
![]() |
LinkControls |
Drawing over an empty document region creates a ControlNode instance. Drawing started over a node creates a DiagramLink. |
![]() |
LinkFreeForms |
Drawing over empty document area creates a FreeFormNode instance. Drawing started over a node creates a DiagramLink. |
![]() |
LinkFreeShapes |
Points from user input are shown using a FreeFormNode instance. Once the user finishes drawing, the FreeFormNode is replaced by a ShapeNode with a matching shape from Diagram.FreeFormTargets list. Drawing started over a node creates a DiagramLink. |
![]() |
LinkShapes |
A mode that is suitable for creating flowcharts and process diagrams. Drawing started over an empty document region creates a ShapeNode instance. Drawing started over a node creates a DiagramLink. |
![]() |
LinkTables |
A mode that is suitable for creating entity-relationship diagrams. Drawing started over an empty document region creates a TableNode instance. Drawing started over a node creates a DiagramLink. |
![]() |
LinkTreeViews |
Drawing over empty document area creates a TreeViewNode instance. Drawing started over a node creates a DiagramLink. |
![]() |
Magnify |
Dragging the mouse magnifies the view. Interactive creation or modification of items is disabled. |
![]() |
Modify |
Objects can be selected and modified. New objects cannot be created. |
![]() |
MoveNodes |
Dragging with the mouse moves the node under mouse pointer. |
![]() |
Pan |
Dragging the mouse pans the view. Interactive creation or modification of items is disabled. |
![]() |
PanAndModify |
Items can be selected and modified. New items cannot be created, and dragging without grabbing an adjustment handle pans the view. |
![]() |
SelectOnly |
Allow only selection of existing items. Modifying them or drawing new ones is disabled. |