public abstract class VertexStyle extends java.lang.Object implements Style, SLDImporter.SizedStrokeFillStyle
Modifier and Type | Field and Description |
---|---|
protected java.awt.Shape |
shape |
protected int |
size |
Modifier | Constructor and Description |
---|---|
protected |
VertexStyle() |
protected |
VertexStyle(java.awt.Shape shape) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
java.awt.Color |
getFillColor() |
boolean |
getFilling() |
java.awt.Color |
getLineColor() |
java.awt.Shape |
getShape() |
int |
getSize() |
void |
initialize(Layer layer)
Called before #paint is applied to each Feature.
|
boolean |
isEnabled() |
void |
paint(Feature f,
java.awt.Graphics2D g,
Viewport viewport) |
void |
paint(java.awt.Graphics2D g,
java.awt.geom.Point2D p) |
protected void |
render(java.awt.Graphics2D g) |
void |
setAlpha(int a) |
void |
setEnabled(boolean enabled) |
void |
setFillColor(java.awt.Color c) |
void |
setFilling(boolean filling) |
void |
setLineColor(java.awt.Color c) |
BasicStyle |
setLinePattern(java.lang.String s) |
void |
setLineWidth(int w) |
BasicStyle |
setRenderingLinePattern(boolean b) |
void |
setSize(int size) |
protected VertexStyle()
protected VertexStyle(java.awt.Shape shape)
public void setEnabled(boolean enabled)
setEnabled
in interface Style
public boolean isEnabled()
public void setSize(int size)
setSize
in interface SLDImporter.SizedStyle
public int getSize()
public java.awt.Shape getShape()
public java.awt.Color getFillColor()
public void setFillColor(java.awt.Color c)
setFillColor
in interface SLDImporter.FillStyle
public void setLineColor(java.awt.Color c)
setLineColor
in interface SLDImporter.StrokeStyle
public java.awt.Color getLineColor()
public BasicStyle setRenderingLinePattern(boolean b)
setRenderingLinePattern
in interface SLDImporter.StrokeStyle
public BasicStyle setLinePattern(java.lang.String s)
setLinePattern
in interface SLDImporter.StrokeStyle
public void setAlpha(int a)
setAlpha
in interface SLDImporter.FillStyle
setAlpha
in interface SLDImporter.StrokeStyle
public void setLineWidth(int w)
setLineWidth
in interface SLDImporter.StrokeStyle
public void initialize(Layer layer)
Style
initialize
in interface Style
public void paint(Feature f, java.awt.Graphics2D g, Viewport viewport) throws java.lang.Exception
public void paint(java.awt.Graphics2D g, java.awt.geom.Point2D p)
public void setFilling(boolean filling)
public boolean getFilling()
protected void render(java.awt.Graphics2D g)