|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--fcmodeler.attributes.ColorValue
A specific value of the color attribute. This class can represent both the color of an edge figure and the outline color of a node figure.
| Constructor Summary | |
ColorValue()
Creates a new ColorValue representing the color black. |
|
ColorValue(java.awt.Color color)
Creates a new ColorValue using the specified color. |
|
ColorValue(java.lang.String color)
Creates a new ColorValue using the specified string description. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Compares the specified object with this color value for equality. |
VisualAttribute |
getAttribute()
|
java.awt.Color |
getColor()
Returns the color used in this color value. |
int |
hashCode()
Returns the hash code for this color value. |
void |
setEdgeValue(EdgeFigure figure)
Sets the color of the specified edge figure to the color contained in this color value. |
void |
setNodeValue(NodeFigure figure)
Sets the outline color of the specified node figure to the color contained in this color value. |
void |
setPermanentEdgeValue(EdgeFigure figure)
Sets the permanent color of the specified edge figure to the color contained in this color value. |
void |
setPermanentNodeValue(NodeFigure figure)
Sets the permanent outline color of the specified node figure to the color contained in this color value. |
java.lang.String |
toString()
Returns a string representation of this color value. |
static ColorValue |
valueOf(java.lang.String value)
Returns a new ColorValue 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 ColorValue()
ColorValue representing the color black.public ColorValue(java.awt.Color color)
ColorValue using the specified color.color - the color to be used in this color value.public ColorValue(java.lang.String color)
ColorValue using the specified string description. The string must
either be a color name contained in ColorFactory or the rgb values for a color
specified as "[red, green, blue]".color - the string description of this color 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 color value.true if the specified object is equal to this color value.public VisualAttribute getAttribute()
getAttribute in interface VisualAttributeValuepublic java.awt.Color getColor()
public int hashCode()
hashCode in interface VisualAttributeValuehashCode in class java.lang.Objectpublic void setEdgeValue(EdgeFigure figure)
setEdgeValue in interface EdgeVisualAttributeValuefigure - the edge figure to update.public void setNodeValue(NodeFigure figure)
setNodeValue in interface NodeVisualAttributeValuefigure - the node figure to update.public void setPermanentEdgeValue(EdgeFigure figure)
setPermanentEdgeValue in interface EdgeVisualAttributeValuefigure - the edge figure to update.public void setPermanentNodeValue(NodeFigure figure)
setPermanentNodeValue in interface NodeVisualAttributeValuefigure - the node figure to update.public java.lang.String toString()
toString in interface VisualAttributeValuetoString in class java.lang.Objectpublic static ColorValue valueOf(java.lang.String value)
ColorValue instance, created using the specified string description.value - the string description to be used in creating the new ColorValue instance.ColorValue instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||