public class GeometryStyle extends Object
| Constructor and Description |
|---|
GeometryStyle()
A default style
|
GeometryStyle(String
Create a GeometryStyle
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(GeometryStyleChangeListener
|
ColorCode |
getColorFill()
|
ColorCode |
getColorStroke()
|
double |
getLineWidth()
|
String |
getName()
|
boolean |
isDrawNodes()
|
boolean |
isFill()
|
boolean |
isStroke()
|
void |
removeChangeListener(GeometryStyleChangeListener
|
void |
setColorFill(ColorCode
|
void |
setColorStroke(ColorCode
|
void |
setDrawNodes(boolean drawNodes)
|
void |
setFill(boolean fill)
|
void |
setLineWidth(double lineWidth)
|
void |
setListeners(List
|
void |
setMany(ColorCode
Set many values.
|
void |
setName(String
|
void |
setStroke(boolean stroke)
|
public GeometryStyle()
public GeometryStyle(Stringname, String colFill, String colStroke, boolean fill, boolean stroke, boolean drawNodes, double lineWidth)
name - the name of the style
colFill - color for fillings
colStroke - color for lines
fill - whether to paint fillings
stroke - whether to paint lines
drawNodes - whether to draw nodes
lineWidth - the width of lines.
public void setMany(ColorCodecolorFill, ColorCode colorStroke, boolean fill, boolean stroke, boolean drawNodes, double lineWidth)
colorFill - the fill color.
colorStroke - the stroke color.
fill - whether to fill.
stroke - whether to stroke.
drawNodes - whether to draw nodes.
lineWidth - the width of the stroke line.
public StringgetName()
public ColorCodegetColorFill()
public ColorCodegetColorStroke()
public boolean isFill()
public boolean isStroke()
public boolean isDrawNodes()
public double getLineWidth()
public void setName(Stringname)
name - the name to set
public void setColorFill(ColorCodecolorFill)
colorFill - the colorFill to set
public void setColorStroke(ColorCodecolorStroke)
colorStroke - the colorStroke to set
public void setFill(boolean fill)
fill - the fill to set
public void setDrawNodes(boolean drawNodes)
drawNodes - whether to draw nodes.
public void setStroke(boolean stroke)
stroke - the stroke to set
public void setLineWidth(double lineWidth)
lineWidth - the lineWidth to set
public void setListeners(List<GeometryStyleChangeListener > listeners)
listeners - the listeners to set
public void addChangeListener(GeometryStyleChangeListenerl)
l - the listener to add
public void removeChangeListener(GeometryStyleChangeListenerl)
l - the listener to remove