Class VertexStyle
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.renderer.style.VertexStyle
-
- All Implemented Interfaces:
Style
,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 Object implements Style, SLDImporter.SizedStrokeFillStyle
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
VertexStyle()
protected
VertexStyle(Shape shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Color
getFillColor()
boolean
getFilling()
Color
getLineColor()
Shape
getShape()
int
getSize()
void
initialize(Layer layer)
Called before #paint is applied to each Feature.boolean
isEnabled()
void
paint(Feature f, Graphics2D g, Viewport viewport)
void
paint(Graphics2D g, Point2D p)
protected void
render(Graphics2D g)
void
setAlpha(int a)
void
setEnabled(boolean enabled)
void
setFillColor(Color c)
void
setFilling(boolean filling)
void
setLineColor(Color c)
BasicStyle
setLinePattern(String s)
void
setLineWidth(int w)
BasicStyle
setRenderingLinePattern(boolean b)
void
setSize(int size)
-
-
-
Field Detail
-
shape
protected Shape shape
-
size
protected int size
-
-
Constructor Detail
-
VertexStyle
protected VertexStyle()
-
VertexStyle
protected VertexStyle(Shape shape)
-
-
Method Detail
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled
in interfaceStyle
-
isEnabled
public boolean isEnabled()
-
setSize
public void setSize(int size)
- Specified by:
setSize
in interfaceSLDImporter.SizedStyle
- Parameters:
size
- size
-
getSize
public int getSize()
-
getShape
public Shape getShape()
-
getFillColor
public Color getFillColor()
-
setFillColor
public void setFillColor(Color c)
- Specified by:
setFillColor
in interfaceSLDImporter.FillStyle
- Parameters:
c
- a Color
-
setLineColor
public void setLineColor(Color c)
- Specified by:
setLineColor
in interfaceSLDImporter.StrokeStyle
- Parameters:
c
- line Color
-
getLineColor
public Color getLineColor()
-
setRenderingLinePattern
public BasicStyle setRenderingLinePattern(boolean b)
- Specified by:
setRenderingLinePattern
in interfaceSLDImporter.StrokeStyle
- Parameters:
b
- whether to use a LinePattern or not- Returns:
- a basic style
-
setLinePattern
public BasicStyle setLinePattern(String s)
- Specified by:
setLinePattern
in interfaceSLDImporter.StrokeStyle
- Parameters:
s
- a Line Pattern- Returns:
- a basic style
-
setAlpha
public void setAlpha(int a)
- Specified by:
setAlpha
in interfaceSLDImporter.FillStyle
- Specified by:
setAlpha
in interfaceSLDImporter.StrokeStyle
- Parameters:
a
- alpha channel
-
setLineWidth
public void setLineWidth(int w)
- Specified by:
setLineWidth
in interfaceSLDImporter.StrokeStyle
- Parameters:
w
- line width
-
initialize
public void initialize(Layer layer)
Description copied from interface:Style
Called before #paint is applied to each Feature.- Specified by:
initialize
in interfaceStyle
- Parameters:
layer
- the layer on which to apply this style
-
paint
public void paint(Feature f, Graphics2D g, Viewport viewport) throws Exception
-
paint
public void paint(Graphics2D g, Point2D p)
-
setFilling
public void setFilling(boolean filling)
-
getFilling
public boolean getFilling()
- Returns:
- whether the fill is rendered or not
-
render
protected void render(Graphics2D g)
-
-