Class LineStringStyle
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
-
- Direct Known Subclasses:
LineStringEndpointStyle,LineStringSegmentStyle,LineStringVertexStyle
public abstract class LineStringStyle extends Object implements Style
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanenabledprotected ColorfillColorWithAlphaprotected ColorlineColorWithAlphaprotected Strokestroke
-
Constructor Summary
Constructors Constructor Description LineStringStyle(String name, Icon icon)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Objectclone()voidinitialize(Layer layer)Called before #paint is applied to each Feature.booleanisEnabled()voidpaint(Feature f, Graphics2D g, Viewport viewport)protected voidpaintGeometry(org.locationtech.jts.geom.Geometry geometry, Graphics2D graphics, Viewport viewport)protected abstract voidpaintLineString(org.locationtech.jts.geom.LineString lineString, Viewport viewport, Graphics2D graphics)voidsetEnabled(boolean enabled)
-
-
-
Method Detail
-
paintGeometry
protected void paintGeometry(org.locationtech.jts.geom.Geometry geometry, Graphics2D graphics, Viewport viewport) throws Exception- Throws:
Exception
-
paintLineString
protected abstract void paintLineString(org.locationtech.jts.geom.LineString lineString, Viewport viewport, Graphics2D graphics) throws Exception- Parameters:
lineString- has 2 or more pointsviewport- the viewport to paint the lineString tographics- the graphic context- Throws:
Exception- if an Exception occurs during painting
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfaceStyle
-
isEnabled
public boolean isEnabled()
-
initialize
public void initialize(Layer layer)
Description copied from interface:StyleCalled before #paint is applied to each Feature.- Specified by:
initializein interfaceStyle- Parameters:
layer- the layer on which to apply this style
-
-