com.mindfusion.diagramming
Class Behavior

java.lang.Object
  extended by com.mindfusion.diagramming.Behavior

public final class Behavior
extends java.lang.Object

The members of this enumeration specify how the component should respond to users actions. These constants can be used as arguments of the DiagramView.setBehavior(int) method of the Diagram class.


Field Summary
static int Custom
          Specifies that user input will be handled by the BehaviorBase-derived object assigned to CustomBehavior.
static int DoNothing
          The control ignores users actions with the mouse, but raises the appropriate mouse events.
static int DrawContainers
          Drawing with the mouse creates ContainerNode instances.
static int DrawControls
          Drawing with the mouse creates ControlNode instances.
static int DrawLinks
          Drawing started over a node creates a DiagramLink.
static int DrawShapes
          Drawing with the mouse creates ShapeNode instances.
static int DrawTables
          Drawing with the mouse creates TableNode instances.
static int DrawTreeViews
          Drawing with the mouse creates TreeViewNode instances.
static int LinkContainers
          Drawing over empty document area creates a ContainerNode instance.
static int LinkControls
          Drawing over an empty document region creates a ControlNode instance.
static int LinkShapes
          A mode that is suitable for creating flowcharts and process diagrams.
static int LinkTables
          A mode that is suitable for creating entity-relationship diagrams.
static int LinkTreeViews
          Drawing over empty document area creates a TreeViewNode instance.
static int Magnify
          Dragging the mouse magnifies the view.
static int Modify
          Objects can be selected and modified.
static int Pan
          Dragging the mouse pans the view.
 
Constructor Summary
Behavior()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Modify

public static final int Modify
Objects can be selected and modified. New objects cannot be created.

See Also:
Constant Field Values

DrawShapes

public static final int DrawShapes
Drawing with the mouse creates ShapeNode instances.

See Also:
Constant Field Values

DrawLinks

public static final int DrawLinks
Drawing started over a node creates a DiagramLink. Otherwise a lasso rectangle is displayed allowing the selection of items.

See Also:
Constant Field Values

LinkShapes

public static final int 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.

See Also:
Constant Field Values

LinkTables

public static final int 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.

See Also:
Constant Field Values

DrawTables

public static final int DrawTables
Drawing with the mouse creates TableNode instances.

See Also:
Constant Field Values

DrawControls

public static final int DrawControls
Drawing with the mouse creates ControlNode instances.

See Also:
Constant Field Values

LinkControls

public static final int LinkControls
Drawing over an empty document region creates a ControlNode instance. Drawing started over a node creates a DiagramLink.

See Also:
Constant Field Values

DoNothing

public static final int 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.

See Also:
Constant Field Values

Custom

public static final int Custom
Specifies that user input will be handled by the BehaviorBase-derived object assigned to CustomBehavior.

See Also:
Constant Field Values

DrawContainers

public static final int DrawContainers
Drawing with the mouse creates ContainerNode instances.

See Also:
Constant Field Values

LinkContainers

public static final int LinkContainers
Drawing over empty document area creates a ContainerNode instance. Drawing started over a node creates a DiagramLink.

See Also:
Constant Field Values

Pan

public static final int Pan
Dragging the mouse pans the view. Interactive creation or modification of items is disabled.

See Also:
Constant Field Values

DrawTreeViews

public static final int DrawTreeViews
Drawing with the mouse creates TreeViewNode instances.

See Also:
Constant Field Values

LinkTreeViews

public static final int LinkTreeViews
Drawing over empty document area creates a TreeViewNode instance. Drawing started over a node creates a DiagramLink.

See Also:
Constant Field Values

Magnify

public static final int Magnify
Dragging the mouse magnifies the view. Interactive creation or modification of items is disabled.

See Also:
Constant Field Values
Constructor Detail

Behavior

public Behavior()