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 boolean
enabled
protected Color
fillColorWithAlpha
protected Color
lineColorWithAlpha
protected Stroke
stroke
-
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 Object
clone()
void
initialize(Layer layer)
Called before #paint is applied to each Feature.boolean
isEnabled()
void
paint(Feature f, Graphics2D g, Viewport viewport)
protected void
paintGeometry(org.locationtech.jts.geom.Geometry geometry, Graphics2D graphics, Viewport viewport)
protected abstract void
paintLineString(org.locationtech.jts.geom.LineString lineString, Viewport viewport, Graphics2D graphics)
void
setEnabled(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:
setEnabled
in interfaceStyle
-
initialize
public void initialize(Layer layer)
Description copied from interface:Style
Called before #paint is applied to each Feature.- Specified by:
initialize
in interfaceStyle
-
-