com.vividsolutions.jump.workbench.ui.renderer.style
Class LineStringStyle
java.lang.Object
com.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
- All Implemented Interfaces:
- Style, java.lang.Cloneable
- Direct Known Subclasses:
- LineStringEndpointStyle, LineStringSegmentStyle, LineStringVertexStyle
public abstract class LineStringStyle
- extends java.lang.Object
- implements Style
|
Constructor Summary |
LineStringStyle(java.lang.String name,
javax.swing.Icon icon)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
enabled
protected boolean enabled
stroke
protected java.awt.Stroke stroke
lineColorWithAlpha
protected java.awt.Color lineColorWithAlpha
fillColorWithAlpha
protected java.awt.Color fillColorWithAlpha
LineStringStyle
public LineStringStyle(java.lang.String name,
javax.swing.Icon icon)
clone
public java.lang.Object clone()
- Specified by:
clone in interface Style- Overrides:
clone in class java.lang.Object
paintGeometry
protected void paintGeometry(com.vividsolutions.jts.geom.Geometry geometry,
java.awt.Graphics2D graphics,
Viewport viewport)
throws java.lang.Exception
- Throws:
java.lang.Exception
paintLineString
protected abstract void paintLineString(com.vividsolutions.jts.geom.LineString lineString,
Viewport viewport,
java.awt.Graphics2D graphics)
throws java.lang.Exception
- Parameters:
lineString - has 2 or more points
- Throws:
java.lang.Exception
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled in interface Style
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled in interface Style
initialize
public void initialize(Layer layer)
- Description copied from interface:
Style
- Called before #paint is applied to each Feature.
- Specified by:
initialize in interface Style
paint
public void paint(Feature f,
java.awt.Graphics2D g,
Viewport viewport)
throws java.lang.Exception
- Specified by:
paint in interface Style
- Throws:
java.lang.Exception