|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fcmodeler.attributes.LineWidthValue
A specific value of the line width attribute.
Constructor Summary | |
LineWidthValue()
Creates a new LineWidthValue with a width of 1.0. |
|
LineWidthValue(float lineWidth)
Creates a new LineWidthValue using the specified line width. |
|
LineWidthValue(java.lang.String lineWidth)
Creates a new LineWidthValue using the specified string description. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Compares the specified object with this line width value for equality. |
VisualAttribute |
getAttribute()
|
float |
getLineWidth()
Returns the width of this line width value. |
int |
hashCode()
Returns the hash code for this line width value. |
void |
setEdgeValue(EdgeFigure figure)
Sets the line width of the specified edge figure to the width contained in this line width value. |
void |
setPermanentEdgeValue(EdgeFigure figure)
Sets the permanent line width of the specified edge figure to the width contained in this line width value. |
java.lang.String |
toString()
Returns a string representation of this line width value. |
static LineWidthValue |
valueOf(java.lang.String value)
Returns a new LineWidthValue 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 LineWidthValue()
LineWidthValue
with a width of 1.0.public LineWidthValue(float lineWidth)
LineWidthValue
using the specified line width.lineWidth
- the line width of this line width value.public LineWidthValue(java.lang.String lineWidth)
LineWidthValue
using the specified string description. The string
should just be a floating-point number, like "2.345".lineWidth
- string description of the line width of this line width 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 line width value.true
if the specified object is equal to this line width value.public VisualAttribute getAttribute()
getAttribute
in interface VisualAttributeValue
public float getLineWidth()
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 LineWidthValue valueOf(java.lang.String value)
LineWidthValue
instance, created using the specified string description.value
- the string description to be used in creating the new LineWidthValue
instance.LineWidthValue
instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |