|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fcmodeler.attributes.DashValue
A specific value of the dash attribute. This class represents a dash array, with the first element being the "on" value and the second element being the "off" value.
Constructor Summary | |
DashValue()
Creates a new DashValue representing the dash array [2.0,2.0]. |
|
DashValue(float[] dash)
Creates a new DashValue using the specified array. |
|
DashValue(java.lang.String dash)
Creates a new DashValue using the specified string description. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Compares the specified object with this dash value for equality. |
VisualAttribute |
getAttribute()
|
float[] |
getDash()
Returns the array used in this dash value. |
int |
hashCode()
Returns the hash code for this visual attribute value. |
void |
setEdgeValue(EdgeFigure figure)
Sets the dash array of the specified edge figure to the array contained in this dash value. |
void |
setPermanentEdgeValue(EdgeFigure figure)
Sets the permanent dash array of the specified edge figure to the array contained in this dash value. |
java.lang.String |
toString()
Returns a string representation of this visual attribute value. |
static DashValue |
valueOf(java.lang.String value)
Returns a new DashValue 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 DashValue()
DashValue
representing the dash array [2.0,2.0].public DashValue(float[] dash)
DashValue
using the specified array. If both elements of the
array are equal to 0.0f, the dash value represents a solid line.dash
- the dash array to be used in this dash value.public DashValue(java.lang.String dash)
DashValue
using the specified string description. The string must
be formatted as "[on,off]".dash
- the string representation of this dash 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 dash value.true
if the specified object is equal to this dash value.public VisualAttribute getAttribute()
getAttribute
in interface VisualAttributeValue
public float[] getDash()
public int hashCode()
hashCode
in interface VisualAttributeValue
hashCode
in class java.lang.Object
public void setEdgeValue(EdgeFigure figure)
setEdgeValue
in interface EdgeVisualAttributeValue
figure
- the edge figure to update.public void setPermanentEdgeValue(EdgeFigure figure)
setPermanentEdgeValue
in interface EdgeVisualAttributeValue
figure
- the edge figure to update.public java.lang.String toString()
toString
in interface VisualAttributeValue
toString
in class java.lang.Object
public static DashValue valueOf(java.lang.String value)
DashValue
instance, created using the specified string description.value
- the string description to be used in creating the new DashValue
instance.DashValue
instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |