com.vividsolutions.jump.workbench.ui.renderer.style
Class VertexStyle
java.lang.Object
com.vividsolutions.jump.workbench.ui.renderer.style.VertexStyle
- All Implemented Interfaces:
- Style, java.lang.Cloneable, SLDImporter.FillStyle, SLDImporter.SizedStrokeFillStyle, SLDImporter.SizedStyle, SLDImporter.StrokeFillStyle, SLDImporter.StrokeStyle
- Direct Known Subclasses:
- BitmapVertexStyle, CircleVertexStyle, CrossVertexStyle, RingVertexStyle, SquareVertexStyle, StarVertexStyle, TriangleVertexStyle
public abstract class VertexStyle
- extends java.lang.Object
- implements Style, SLDImporter.SizedStrokeFillStyle
|
Field Summary |
protected java.awt.Shape |
shape
|
protected int |
size
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shape
protected java.awt.Shape shape
size
protected int size
VertexStyle
protected VertexStyle()
VertexStyle
protected VertexStyle(java.awt.Shape shape)
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled in interface Style
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled in interface Style
setSize
public void setSize(int size)
- Specified by:
setSize in interface SLDImporter.SizedStyle
getSize
public int getSize()
getFillColor
public java.awt.Color getFillColor()
setFillColor
public void setFillColor(java.awt.Color c)
- Specified by:
setFillColor in interface SLDImporter.FillStyle
setLineColor
public void setLineColor(java.awt.Color c)
- Specified by:
setLineColor in interface SLDImporter.StrokeStyle
getLineColor
public java.awt.Color getLineColor()
- Returns:
- the color
setRenderingLinePattern
public BasicStyle setRenderingLinePattern(boolean b)
- Specified by:
setRenderingLinePattern in interface SLDImporter.StrokeStyle
- Returns:
- a basic style
setLinePattern
public BasicStyle setLinePattern(java.lang.String s)
- Specified by:
setLinePattern in interface SLDImporter.StrokeStyle
- Returns:
- a basic style
setAlpha
public void setAlpha(int a)
- Specified by:
setAlpha in interface SLDImporter.FillStyle- Specified by:
setAlpha in interface SLDImporter.StrokeStyle
setLineWidth
public void setLineWidth(int w)
- Specified by:
setLineWidth in interface SLDImporter.StrokeStyle
initialize
public void initialize(Layer layer)
- Description copied from interface:
Style
- Called before #paint is applied to each Feature.
- Specified by:
initialize in interface Style
paint
public void paint(Feature f,
java.awt.Graphics2D g,
Viewport viewport)
throws java.lang.Exception
- Specified by:
paint in interface Style
- Throws:
java.lang.Exception
paint
public void paint(java.awt.Graphics2D g,
java.awt.geom.Point2D p)
setFilling
public void setFilling(boolean filling)
- Parameters:
filling -
getFilling
public boolean getFilling()
- Returns:
- whether the fill is rendered or not
render
protected void render(java.awt.Graphics2D g)
clone
public java.lang.Object clone()
- Specified by:
clone in interface Style- Overrides:
clone in class java.lang.Object