|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface GraphObjectRule specifies the common attributes for
the rules defined in interfaces NodeRule and EdgeRule, which
are associated with objects of classes
VisualNode and
VisualEdge respectively.
The attributes supported by the GraphObjectRule are listed
below. You can find detailed information about each attribute afterwards.
The selectable attribute specifies if the
VisualGraphObject can be selected.
It is associated with the selectable attribute
of the BaseComposite assigned to the
VisualGraphObject. Currently these two flags are only
synchronized in one direction. If the selectable state is changed in the
GraphObjectRule and the rule is applied again to the
VisualGraphObject, the selectable state of the
BaseComposite is changed accordingly. A change to the
selectable state of the BaseComposite, however, is NOT
reflected in the GraphObjectRule.
This attribute specifies not only the selectable state of
the VisualGraphObject for user interaction but also for API
calls.
The methods provided by the GraphObjectRule to support the
selectable attribute are listed below:
boolean isSelectable()void setSelectable(boolean)
The movable attribute specifies if the
VisualGraphObject can be moved.
It is associated with the movable attribute
of the BaseComposite assigned to the
VisualGraphObject. Currently these two flags are only
synchronized in one direction. If the movable state is changed in the
GraphObjectRule and the rule is applied again to the
VisualGraphObject, the movable state of the
BaseComposite is changed accordingly. A change to the movable
state of the BaseComposite, however, is NOT reflected in the
GraphObjectRule.
This attribute specifies not only the movable state of
the VisualGraphObject for user interaction but also for API
calls.
The methods provided by the GraphObjectRule to support the
movable attribute are listed below:
boolean isMovable()void setMovable(boolean)
The resizable attribute specifies if the
VisualGraphObject can be resized.
It is associated with the resizable attribute
of the Composite assigned to the
VisualNode and is associated to the manipulable attribute of
the CompositeLine assigned to a VisualEdge. The
association of two different flags has historical reasons.
Currently, these flags are only synchronized in one direction. If the resizable
state is changed in the
GraphObjectRule and the rule is applied again to the
VisualNode or the VisualEdge, the resizable state
of the Composite or the manipulable state
CompositeLine is changed accordingly. A change to the
resizable state of the Composite or the manipulable state of
the CompositeLine, however, is NOT reflected in the
GraphObjectRule.
This attribute specifies not only the resizable state or
the manipulable state of
the VisualGraphObject for user interaction but also for API
calls.
The methods provided by the GraphObjectRule to support the
resizable attribute are listed below:
boolean isResizable()void setResizable(boolean)
The deletable attribute specifies if the
VisualGraphObject can be deleted.
It specifies not only the deletable state of
the VisualGraphObject for user interaction but also for API
calls.
The methods provided by the GraphObjectRule to support the
deletable attribute are listed below:
boolean isDeletable()void setDeletable(boolean)
The copyable attribute specifies if the
VisualGraphObject can either be copied to the
clipboard or copied through a copy-on-move operation.
It specifies not only the copyable state of
the VisualGraphObject for user interaction but also for API
calls.
The methods provided by the GraphObjectRule to support the
copyable attribute are listed below:
boolean isCopyable()void setCopyable(boolean)
The cutable attribute specifies if the VisualGraphObject
can be cut to the clipboard.
It depends on the state of the copyable
attribute. A copyable state of false prohibits to cut a
VisualGraphObject to the clipboard.
This attribute specifies not only the cutable state of
the VisualGraphObject for user interaction but also for API
calls.
The methods provided by the GraphObjectRule to support the
cutable attribute are listed below:
boolean isCutable()void setCutable(boolean)
NodeRule,
EdgeRule| Method Summary | |
boolean |
isCopyable()
Returns the copyable flag for this rule. |
boolean |
isCutable()
Returns the cutable flag for this rule. |
boolean |
isDeletable()
Returns the deletable flag for this rule. |
boolean |
isMovable()
Returns the movable flag for this rule. |
boolean |
isResizable()
Returns the resizable flag for this rule. |
boolean |
isSelectable()
Returns the selectable flag for this rule. |
void |
setCopyable(boolean copyable)
Sets the copyable flag for this rule. |
void |
setCutable(boolean cutable)
Sets the cutable flag for this rule. |
void |
setDeletable(boolean deletable)
Sets the deletable flag for this rule. |
void |
setMovable(boolean movable)
Sets the movable flag for this rule. |
void |
setResizable(boolean resizable)
Sets the resizable flag for this rule. |
void |
setSelectable(boolean selectable)
Sets the selectable flag for this rule. |
| Methods inherited from interface com.tensegrity.graph.rule.Rule |
deepCopy, getDescription, getName |
| Method Detail |
public boolean isDeletable()
public void setDeletable(boolean deletable)
deletable - true if the rule allows deletion, otherwise false.public boolean isMovable()
public void setMovable(boolean movable)
movable - true if the rule allows moving, otherwise false.public boolean isSelectable()
public void setSelectable(boolean selectable)
selectable - true if the rule allows selection, otherwise false.public boolean isResizable()
public void setResizable(boolean resizable)
resizable - true if the rule allows resizing, otherwise false.public boolean isCopyable()
public void setCopyable(boolean copyable)
copyable - true if the rule allows copying, otherwise false.public boolean isCutable()
public void setCutable(boolean cutable)
cutable - true if the rule allows cutting, otherwise false.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||