public abstract class LineStringEndpointStyle 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 |
---|
LineStringEndpointStyle(java.lang.String name,
javax.swing.Icon icon,
boolean start) |
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 terminal,
java.awt.geom.Point2D next,
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 LineStringEndpointStyle(java.lang.String name, javax.swing.Icon icon, boolean start)
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 terminal, java.awt.geom.Point2D next, 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