|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.rule.AbstractRule
com.tensegrity.graph.rule.AbstractGraphObjectRule
Abstract base class that implements the functionality common to all rules. +
RuleRegistry,
GraphObjectRule,
Serialized Form| Constructor Summary | |
AbstractGraphObjectRule(AbstractGraphObjectRule rule)
Copy-Constructor for an abstract rule. |
|
AbstractGraphObjectRule(java.lang.String name)
Constructor for an abstract rule. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
Returns the name of the rule. |
int |
hashCode()
|
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 moveable 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 moveable 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. |
java.lang.String |
toString()
Return a string representation of this rule. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.tensegrity.graph.rule.Rule |
deepCopy, getDescription, getName |
| Constructor Detail |
public AbstractGraphObjectRule(java.lang.String name)
The properties are initialized with the following defaults:
name - name of the rulepublic AbstractGraphObjectRule(AbstractGraphObjectRule rule)
rule - the rule to copy from.| Method Detail |
public boolean isDeletable()
isDeletable in interface GraphObjectRulepublic void setDeletable(boolean deletable)
setDeletable in interface GraphObjectRuledeletable - true if the rule allows deletion, otherwise false.public boolean isMovable()
isMovable in interface GraphObjectRulepublic void setMovable(boolean movable)
setMovable in interface GraphObjectRulemovable - true if the rule allows moving, otherwise false.public boolean isSelectable()
isSelectable in interface GraphObjectRulepublic void setSelectable(boolean selectable)
setSelectable in interface GraphObjectRuleselectable - true if the rule allows selection, otherwise false.public boolean isResizable()
isResizable in interface GraphObjectRulepublic void setResizable(boolean resizable)
setResizable in interface GraphObjectRuleresizable - true if the rule allows resizing, otherwise false.public boolean isCopyable()
isCopyable in interface GraphObjectRulepublic void setCopyable(boolean copyable)
setCopyable in interface GraphObjectRulecopyable - true if the rule allows copying, otherwise false.public boolean isCutable()
isCutable in interface GraphObjectRulepublic void setCutable(boolean cutable)
setCutable in interface GraphObjectRulecutable - true if the rule allows cuting, otherwise false.public java.lang.String toString()
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String getName()
getName in interface Rule
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||