The members of this class specify how the component should respond to users actions. These constants can be used as arguments of the setBehavior method of the DiagramView class.
The following tables list the members exposed by the Behavior type.
Name | Description | |
---|---|---|
![]() |
Initializes a new instance of the Behavior class. |
Name | Description | |
---|---|---|
![]() ![]() |
Specifies that user input should be handled by the BehaviorBase-derived object assigned by the setCustomBehavior method. |
|
![]() ![]() |
The control ignores users actions, but raises the appropriate pointer events. This mode allows applications to implement their own drawing behavior, disabling the default JDiagram response to users actions. |
|
![]() ![]() |
Drawing with the mouse creates ContainerNode instances. |
|
![]() ![]() |
Drawing with the mouse creates ControlNode instances. |
|
![]() ![]() |
Drawing started over a node creates a DiagramLink. Otherwise a lasso rectangle is displayed allowing the selection of items. |
|
![]() ![]() |
Drawing with the mouse creates ShapeNode instances. |
|
![]() ![]() |
Drawing with the mouse creates TableNode instances. |
|
![]() ![]() |
Drawing with the mouse creates TreeViewNode instances. |
|
![]() ![]() |
Drawing over empty document area creates a ContainerNode instance. Drawing started over a node creates a DiagramLink. |
|
![]() ![]() |
Drawing over an empty document region creates a ControlNode instance. Drawing started over a node creates a DiagramLink. |
|
![]() ![]() |
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. |
|
![]() ![]() |
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. |
|
![]() ![]() |
Drawing over empty document area creates a TreeViewNode instance. Drawing started over a node creates a DiagramLink. |
|
![]() ![]() |
Dragging the pointer magnifies magnifies the view. Interactive creation or modification of items is disabled. |
|
![]() ![]() |
Objects can be selected and modified. New objects cannot be created. |
|
![]() ![]() |
Dragging the pointer pans the view. Interactive creation or modification of items is disabled. |
|
![]() ![]() |
Allow only selection of existing items. Modifying them or drawing new ones is disabled. |