public abstract class LineStringStyle extends Object implements Style
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enabled |
protected Color |
fillColorWithAlpha |
protected Color |
lineColorWithAlpha |
protected Stroke |
stroke |
| Constructor and Description |
|---|
LineStringStyle(String name,
Icon icon) |
| Modifier and Type | Method and 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(com.vividsolutions.jts.geom.Geometry geometry,
Graphics2D graphics,
Viewport viewport) |
protected abstract void |
paintLineString(com.vividsolutions.jts.geom.LineString lineString,
Viewport viewport,
Graphics2D graphics) |
void |
setEnabled(boolean enabled) |
protected boolean enabled
protected Stroke stroke
protected Color lineColorWithAlpha
protected Color fillColorWithAlpha
protected void paintGeometry(com.vividsolutions.jts.geom.Geometry geometry,
Graphics2D graphics,
Viewport viewport)
throws Exception
Exceptionprotected abstract void paintLineString(com.vividsolutions.jts.geom.LineString lineString,
Viewport viewport,
Graphics2D graphics)
throws Exception
lineString - has 2 or more pointsExceptionpublic void setEnabled(boolean enabled)
setEnabled in interface Stylepublic void initialize(Layer layer)
Styleinitialize in interface StyleCopyright © 2015. All rights reserved.