|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.CompositeSymbol
public class CompositeSymbol
A composite symbol that is made up of one or more symbols.
Field Summary |
---|
Fields inherited from interface diva.sketch.Symbol |
---|
MIXED_COLOR, MIXED_LINEWIDTH |
Constructor Summary | |
---|---|
CompositeSymbol(Symbol[] children)
Create a symbol for the given stroke with the color and line width information. |
Method Summary | |
---|---|
Symbol[] |
getChildren()
Return the stroke that's wrapped by this symbol. |
Color |
getFill()
Return the fill color of the children if it is the same for all children, or Symbol.MIXED_COLOR if not. |
float |
getLineWidth()
Return the linewidth of the children if it is the same for all children, or Symbol.MIXED_LINEWIDTH if not. |
Color |
getOutline()
Return the outline color of the children if it is the same for all children, or Symbol.MIXED_COLOR if not. |
void |
setFill(Color c)
|
void |
setLineWidth(float lineWidth)
|
void |
setOutline(Color c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeSymbol(Symbol[] children)
Method Detail |
---|
public Symbol[] getChildren()
public Color getOutline()
getOutline
in interface Symbol
public Color getFill()
getFill
in interface Symbol
public float getLineWidth()
getLineWidth
in interface Symbol
public void setLineWidth(float lineWidth)
setLineWidth
in interface Symbol
public void setOutline(Color c)
setOutline
in interface Symbol
public void setFill(Color c)
setFill
in interface Symbol
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |