Class LineStringStyle
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.renderer.style.LineStringStyle
-
- Direct Known Subclasses:
LineStringEndpointStyle
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 points- Throws:
Exception
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfaceStyle
-
initialize
public void initialize(Layer layer)
Description copied from interface:StyleCalled before #paint is applied to each Feature.- Specified by:
initializein interfaceStyle
-
-