DroidDiagram Programmer's Guide
DiagramView.getBehavior Method
See Also
 






Gets a value indicating how the control responds to users actions.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public Behavior getBehavior ()

 Return Value

A member of the Behavior enumeration. The default is LinkShapes.

 Remarks

The property specifies how the control responds to user actions with the mouse. The default value, LinkShapes, facilitates drawing of flowchart diagrams. LinkTables makes <variable not found> create table nodes and links while the user draws with the mouse, allowing creation of entity-relationship or class-hierarchy diagrams.

Modes such as Modify, PanAndModify, MoveNodes, SelectOnly allow users to interact with existing items, but not draw new ones on the canvas. Note that controls such as NodeListView and ShapeListBox can be used to create new nodes regardless of DiagramView's current behavior mode.

There are several more values that can be assigned to the property, that make the control draw specific types of items, for example only shape nodes, only control hosts, only links, and so on. These are useful when implementing the ability to select specific drawing tools in applications.

 See Also

DiagramView Members
DiagramView Class
com.mindfusion.diagramming Namespace