com.tensegrity.graph.rule
Interface GraphObjectRule

All Superinterfaces:
Rule
All Known Implementing Classes:
AbstractGraphObjectRule

public interface GraphObjectRule
extends Rule

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:

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:

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:

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:

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:

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:

Version:
$Id: GraphObjectRule.java,v 1.14 2005/04/13 16:11:44 AndreasEbbert Exp $
Author:
Stepan Rutz
See Also:
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

isDeletable

public boolean isDeletable()
Returns the deletable flag for this rule.

Returns:
true if the rule allows deletion, otherwise false.

Find more information in the class documentation


setDeletable

public void setDeletable(boolean deletable)
Sets the deletable flag for this rule.

Parameters:
deletable - true if the rule allows deletion, otherwise false.

Find more information in the class documentation


isMovable

public boolean isMovable()
Returns the movable flag for this rule.

Returns:
true if the rule allows moving, otherwise false.

Find more information in the class documentation


setMovable

public void setMovable(boolean movable)
Sets the movable flag for this rule.

Parameters:
movable - true if the rule allows moving, otherwise false.

Find more information in the class documentation


isSelectable

public boolean isSelectable()
Returns the selectable flag for this rule.

Returns:
true if the rule allows selection, otherwise false.

Find more information in the class documentation


setSelectable

public void setSelectable(boolean selectable)
Sets the selectable flag for this rule.

Parameters:
selectable - true if the rule allows selection, otherwise false.

Find more information in the class documentation


isResizable

public boolean isResizable()
Returns the resizable flag for this rule.

Returns:
true if the rule allows resizing, otherwise false.

Find more information in the class documentation


setResizable

public void setResizable(boolean resizable)
Sets the resizable flag for this rule.

Parameters:
resizable - true if the rule allows resizing, otherwise false.

Find more information in the class documentation


isCopyable

public boolean isCopyable()
Returns the copyable flag for this rule.

Returns:
true if the rule allows copying, otherwise false.

Find more information in the class documentation


setCopyable

public void setCopyable(boolean copyable)
Sets the copyable flag for this rule.

Parameters:
copyable - true if the rule allows copying, otherwise false.

Find more information in the class documentation


isCutable

public boolean isCutable()
Returns the cutable flag for this rule.

Returns:
true if the rule allows cutting, otherwise false.

Find more information in the class documentation


setCutable

public void setCutable(boolean cutable)
Sets the cutable flag for this rule.

Parameters:
cutable - true if the rule allows cutting, otherwise false.

Find more information in the class documentation



Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.