|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--fcmodeler.attributes.NodeShapeValue
A specific value of the node shape attribute.
| Constructor Summary | |
NodeShapeValue()
Creates a new NodeShapeValue using a rectangle node shape. |
|
NodeShapeValue(NodeShape nodeShape)
Creates a new NodeShapeValue using the specified node shape. |
|
NodeShapeValue(java.lang.String nodeShape)
Creates a new NodeShapeValue using the specified string description of the node shape. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Compares the specified object with this node shape value for equality. |
VisualAttribute |
getAttribute()
|
NodeShape |
getNodeShape()
Returns the node shape of this node shape value. |
int |
hashCode()
Returns the hash code for this node shape value. |
void |
setNodeValue(NodeFigure figure)
Sets the node shape of the specified node figure to the shape contained in this node shape value. |
void |
setPermanentNodeValue(NodeFigure figure)
Sets the permanent node shape of the specified node figure to the shape contained in this node shape value. |
java.lang.String |
toString()
Returns a string representation of this node shape value. |
static NodeShapeValue |
valueOf(java.lang.String value)
Returns a new NodeShapeValue instance, created using the specified string description. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NodeShapeValue()
NodeShapeValue using a rectangle node shape.public NodeShapeValue(NodeShape nodeShape)
NodeShapeValue using the specified node shape. The supplied
NodeShape is cloned in order to create a defensive copy.nodeShape - the node shape to use for this node shape value.public NodeShapeValue(java.lang.String nodeShape)
NodeShapeValue using the specified string description of the node shape.nodeShape - the string description of the node shape for this node shape value.| Method Detail |
public boolean equals(java.lang.Object o)
equals in interface VisualAttributeValueequals in class java.lang.Objecto - the object to be compared for equality with this node shape value.true if the specified object is equal to this node shape value.public VisualAttribute getAttribute()
getAttribute in interface VisualAttributeValuepublic NodeShape getNodeShape()
public int hashCode()
hashCode in interface VisualAttributeValuehashCode in class java.lang.Objectpublic void setNodeValue(NodeFigure figure)
NodeFigure receives a copy of the internal NodeShape each
time this method is called.setNodeValue in interface NodeVisualAttributeValuefigure - the node figure to update.public void setPermanentNodeValue(NodeFigure figure)
NodeFigure receives a copy of the internal NodeShape each
time this method is called.setPermanentNodeValue in interface NodeVisualAttributeValuefigure - the node figure to update.public java.lang.String toString()
toString in interface VisualAttributeValuetoString in class java.lang.Objectpublic static NodeShapeValue valueOf(java.lang.String value)
NodeShapeValue instance, created using the specified string description.value - the string description to be used in creating the new NodeShapeValue instance.NodeShapeValue instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||