|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.StrokeSymbol
public class StrokeSymbol
A visual symbol derived from sketch input. It is derived from a stroke, and it keeps the outline/fill color and pen width information of the stroke.
Field Summary |
---|
Fields inherited from interface diva.sketch.Symbol |
---|
MIXED_COLOR, MIXED_LINEWIDTH |
Constructor Summary | |
---|---|
StrokeSymbol(TimedStroke stroke,
Color outline,
Color fill,
float lineWidth)
Create a symbol for the given stroke with the outline/fill color and line width information. |
Method Summary | |
---|---|
Color |
getFill()
Return the fill color of this symbol. |
float |
getLineWidth()
Return the line width used to draw this symbol. |
Color |
getOutline()
Return the outline color of this symbol. |
TimedStroke |
getStroke()
Return the stroke that's wrapped by this symbol. |
void |
setFill(Color c)
Set the fill color of this symbol. |
void |
setLineWidth(float w)
Set the line width used to draw this symbol. |
void |
setOutline(Color c)
Set the outline color of this symbol. |
void |
setStroke(TimedStroke stroke)
Set the timed stroke of this symbol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StrokeSymbol(TimedStroke stroke, Color outline, Color fill, float lineWidth)
Method Detail |
---|
public TimedStroke getStroke()
public Color getOutline()
getOutline
in interface Symbol
public Color getFill()
getFill
in interface Symbol
public float getLineWidth()
getLineWidth
in interface Symbol
public void setOutline(Color c)
setOutline
in interface Symbol
public void setFill(Color c)
setFill
in interface Symbol
public void setLineWidth(float w)
setLineWidth
in interface Symbol
public void setStroke(TimedStroke stroke)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |