public enum Behavior extends java.lang.Enum<Behavior>
DiagramView.setBehavior(com.mindfusion.diagramming.Behavior)
method of the Diagram
class.Enum Constant and Description |
---|
Custom
Specifies that user input will be handled by the
BehaviorBase -derived
object assigned to CustomBehavior . |
DoNothing
The control ignores users actions with the mouse, but raises the
appropriate mouse events.
|
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.
|
DrawLinks
Drawing started over a node creates a
DiagramLink . |
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.
|
LinkControls
Drawing over an empty document region creates a
ControlNode
instance. |
LinkFreeForms
Drawing over empty document area creates a FreeFormNode
instance.
|
LinkFreeShapes
Points from user input are shown using a FreeFormNode instance.
|
LinkShapes
A mode that is suitable for creating flowcharts and process diagrams.
|
LinkTables
A mode that is suitable for creating entity-relationship diagrams.
|
LinkTreeViews
Drawing over empty document area creates a TreeViewNode
instance.
|
Magnify
Dragging the mouse magnifies the view.
|
Modify
Objects can be selected and modified.
|
MoveNodes
Dragging with the mouse moves the node under mouse pointer.
|
Pan
Dragging the mouse pans the view.
|
PanAndModify
Items can be selected and modified.
|
SelectOnly
Allow only selection of existing items.
|
Modifier and Type | Method and Description |
---|---|
static Behavior |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Behavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Behavior Modify
public static final Behavior DrawShapes
ShapeNode
instances.public static final Behavior DrawLinks
DiagramLink
. Otherwise
a lasso rectangle is displayed allowing the selection of items.public static final Behavior LinkShapes
ShapeNode
instance. Drawing started over a node creates a DiagramLink
.public static final Behavior LinkTables
TableNode
instance. Drawing started over a node creates a DiagramLink
.public static final Behavior DrawTables
TableNode
instances.public static final Behavior DrawControls
ControlNode
instances.public static final Behavior LinkControls
ControlNode
instance. Drawing started over a node creates a DiagramLink
.public static final Behavior DoNothing
public static final Behavior Custom
BehaviorBase
-derived
object assigned to CustomBehavior
.public static final Behavior DrawContainers
public static final Behavior LinkContainers
public static final Behavior Pan
public static final Behavior DrawTreeViews
public static final Behavior LinkTreeViews
public static final Behavior SelectOnly
public static final Behavior Magnify
public static final Behavior DrawFreeForms
public static final Behavior LinkFreeForms
public static final Behavior DrawFreeShapes
public static final Behavior LinkFreeShapes
public static final Behavior PanAndModify
public static final Behavior MoveNodes
public static Behavior[] values()
for (Behavior c : Behavior.values()) System.out.println(c);
public static Behavior valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null