public abstract class LineStringVertexStyle extends LineStringStyle implements ChoosableStyle
Modifier and Type | Field and Description |
---|---|
protected javax.swing.Icon |
icon |
protected java.lang.String |
name |
enabled, fillColorWithAlpha, lineColorWithAlpha, stroke
Constructor and Description |
---|
LineStringVertexStyle(java.lang.String name,
javax.swing.Icon icon) |
Modifier and Type | Method and Description |
---|---|
javax.swing.Icon |
getIcon()
For display. 20 x 20 pixels.
|
java.lang.String |
getName()
For display.
|
protected abstract void |
paint(java.awt.geom.Point2D p0,
com.vividsolutions.jts.geom.LineString line,
int index,
Viewport viewport,
java.awt.Graphics2D graphics) |
protected void |
paintLineString(com.vividsolutions.jts.geom.LineString lineString,
Viewport viewport,
java.awt.Graphics2D graphics) |
clone, initialize, isEnabled, paint, paintGeometry, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, initialize, isEnabled, paint, setEnabled
public LineStringVertexStyle(java.lang.String name, javax.swing.Icon icon)
protected void paintLineString(com.vividsolutions.jts.geom.LineString lineString, Viewport viewport, java.awt.Graphics2D graphics) throws java.lang.Exception
paintLineString
in class LineStringStyle
lineString
- has 2 or more pointsjava.lang.Exception
protected abstract void paint(java.awt.geom.Point2D p0, com.vividsolutions.jts.geom.LineString line, int index, Viewport viewport, java.awt.Graphics2D graphics) throws java.lang.Exception
java.lang.Exception
public java.lang.String getName()
ChoosableStyle
getName
in interface ChoosableStyle
public javax.swing.Icon getIcon()
ChoosableStyle
getIcon
in interface ChoosableStyle