ASP.NET Pack Programmer's Guide
Behavior Members
Constructors Fields
 


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.

 Public Constructors

  Name Description

Behavior

Initializes a new instance of the Behavior class.

 Public Fields

  Name Description

Custom

Specifies that user input should be handled by the BehaviorBase-derived object assigned by the setCustomBehavior method.

DoNothing

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.

DrawContainers

Drawing with the mouse creates ContainerNode instances.

DrawControls

Drawing with the mouse creates ControlNode instances.

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.

LinkControls

Drawing over an empty document region creates a ControlNode instance. 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 pointer magnifies magnifies the view. Interactive creation or modification of items is disabled.

Modify

Objects can be selected and modified. New objects cannot be created.

Pan

Dragging the pointer pans the view. Interactive creation or modification of items is disabled.

SelectOnly

Allow only selection of existing items. Modifying them or drawing new ones is disabled.

 See Also

Behavior Class
com.mindfusion.diagramming Namespace