|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ggtools.grand.graph.AttributeManager
abstract class AttributeManager
Abstract class to manage GraphObjet's attributes.
| Field Summary |
|---|
| Fields inherited from interface net.ggtools.grand.graph.GraphObject |
|---|
ATTR_ALL, ATTR_NONE |
| Constructor Summary | |
|---|---|
AttributeManager()
|
|
| Method Summary | |
|---|---|
void |
clearAttributes(int attributeMask)
Sets one or more attributes of the object. |
int |
getAttributes()
Returns a bitmask of all set attributes. |
boolean |
hasAttributes(int attributeMask)
Returns true if all the attributes specified by the bit mask are set. |
void |
setAttributes(int attributeMask)
Sets one or more attributes of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.ggtools.grand.graph.GraphObject |
|---|
getGraph, getName |
| Constructor Detail |
|---|
AttributeManager()
| Method Detail |
|---|
public void setAttributes(int attributeMask)
GraphObjectsetAttributes(ATTR_ONE | ATTR_TWO);
setAttributes in interface GraphObjectattributeMask - a bit mask of attributes to set.public int getAttributes()
GraphObject
getAttributes in interface GraphObjectpublic void clearAttributes(int attributeMask)
GraphObjectclearAttributes(ATTR_ONE | ATTR_TWO);
clearAttributes in interface GraphObjectattributeMask - a bit mask of attributes to clean.public boolean hasAttributes(int attributeMask)
GraphObject
hasAttributes in interface GraphObjectattributeMask - a bit mask of attributes to test.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||