public abstract class LineStringStyle extends java.lang.Object implements Style
Modifier and Type | Field and Description |
---|---|
protected boolean |
enabled |
protected java.awt.Color |
fillColorWithAlpha |
protected java.awt.Color |
lineColorWithAlpha |
protected java.awt.Stroke |
stroke |
Constructor and Description |
---|
LineStringStyle(java.lang.String name,
javax.swing.Icon icon) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
initialize(Layer layer)
Called before #paint is applied to each Feature.
|
boolean |
isEnabled() |
void |
paint(Feature f,
java.awt.Graphics2D g,
Viewport viewport) |
protected void |
paintGeometry(com.vividsolutions.jts.geom.Geometry geometry,
java.awt.Graphics2D graphics,
Viewport viewport) |
protected abstract void |
paintLineString(com.vividsolutions.jts.geom.LineString lineString,
Viewport viewport,
java.awt.Graphics2D graphics) |
void |
setEnabled(boolean enabled) |
protected boolean enabled
protected java.awt.Stroke stroke
protected java.awt.Color lineColorWithAlpha
protected java.awt.Color fillColorWithAlpha
public LineStringStyle(java.lang.String name, javax.swing.Icon icon)
public java.lang.Object clone()
protected void paintGeometry(com.vividsolutions.jts.geom.Geometry geometry, java.awt.Graphics2D graphics, Viewport viewport) throws java.lang.Exception
java.lang.Exception
protected abstract void paintLineString(com.vividsolutions.jts.geom.LineString lineString, Viewport viewport, java.awt.Graphics2D graphics) throws java.lang.Exception
lineString
- has 2 or more pointsjava.lang.Exception
public void setEnabled(boolean enabled)
setEnabled
in interface Style
public boolean isEnabled()
public void initialize(Layer layer)
Style
initialize
in interface Style