|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.formatitems.StrokeItem
FormatItem for the StrokeFormat
| Constructor Summary | |
StrokeItem(int style,
int color,
int weight)
Constructor |
|
StrokeItem(StrokeFormat sf)
Constructor which requires an initial StrokeFormat |
|
| Method Summary | |
int |
getColor()
Returns the stroke color |
java.lang.String |
getDescription()
Returns the canonical description used to create a format. |
Format |
getFormat()
Returns a new format. |
java.lang.Object[] |
getFormatData()
Returns all format parameters |
int |
getStyle()
Returns the stroke style |
int |
getWeight()
Returns the stroke weight |
boolean |
isVisible()
Returns a boolean that indicates whether the corresponding
StrokeFormat defines a visible line or not. |
void |
setColor(int color)
Sets the stroke color |
void |
setStyle(int style)
Sets the stroke style |
void |
setWeight(int weight)
Sets the stroke weight |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StrokeItem(StrokeFormat sf)
sf - initial StrokeFormat object
public StrokeItem(int style,
int color,
int weight)
style - initial stylecolor - initial colorweight - initial weight| Method Detail |
public final int getColor()
public final void setColor(int color)
color - encoded in Tensegrity Color Formatpublic final int getStyle()
public final void setStyle(int style)
style - the new stroke stylepublic boolean isVisible()
boolean that indicates whether the corresponding
StrokeFormat defines a visible line or not.
StrokeFormat defines a
visible line, false otherwise.public final int getWeight()
public final void setWeight(int weight)
weight - the new stroke weightpublic final java.lang.String getDescription()
FormatItem
getDescription in interface FormatItem
public final Format getFormat()
throws StrokeFormatParseException
FormatItem
getFormat in interface FormatItemStrokeFormatParseExceptionpublic final java.lang.Object[] getFormatData()
FormatItem
getFormatData in interface FormatItem
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||