|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fcmodeler.attributes.FillValue
A specific value of the fill attribute.
Constructor Summary | |
FillValue()
Creates a new FillValue representing the color white. |
|
FillValue(java.awt.Color color)
Creates a new FillValue using the specified color. |
|
FillValue(java.lang.String color)
Creates a new FillValue using the specified string description. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Compares the specified object with this fill value for equality. |
VisualAttribute |
getAttribute()
|
java.awt.Color |
getColor()
Returns the color used in this fill value. |
int |
hashCode()
Returns the hash code for this fill value. |
void |
setNodeValue(NodeFigure figure)
Sets the fill color of the specified node figure to the color contained in this fill value. |
void |
setPermanentNodeValue(NodeFigure figure)
Sets the permanent fill color of the specified node figure to the color contained in this fill value. |
java.lang.String |
toString()
Returns a string representation of this fill value. |
static FillValue |
valueOf(java.lang.String value)
Returns a new FillValue 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 FillValue()
FillValue
representing the color white.public FillValue(java.awt.Color color)
FillValue
using the specified color.color
- the color to be used in this color value.public FillValue(java.lang.String color)
FillValue
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 VisualAttributeValue
equals
in class java.lang.Object
o
- the object to be compared for equality with this fill value.true
if the specified object is equal to this fill value.public VisualAttribute getAttribute()
getAttribute
in interface VisualAttributeValue
public java.awt.Color getColor()
public int hashCode()
hashCode
in interface VisualAttributeValue
hashCode
in class java.lang.Object
public void setNodeValue(NodeFigure figure)
setNodeValue
in interface NodeVisualAttributeValue
figure
- the node figure to update.public void setPermanentNodeValue(NodeFigure figure)
setPermanentNodeValue
in interface NodeVisualAttributeValue
figure
- the node figure to update.public java.lang.String toString()
toString
in interface VisualAttributeValue
toString
in class java.lang.Object
public static FillValue valueOf(java.lang.String value)
FillValue
instance, created using the specified string description.value
- the string description to be used in creating the new FillValue
instance.FillValue
instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |