com.vividsolutions.jump.workbench.ui.renderer.style
Class LineStringEndpointStyle
java.lang.Object
com.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
com.vividsolutions.jump.workbench.ui.renderer.style.LineStringEndpointStyle
- All Implemented Interfaces:
- ChoosableStyle, Style, java.lang.Cloneable
- Direct Known Subclasses:
- ArrowLineStringEndpointStyle, ArrowLineStringMiddlepointStyle, CircleLineStringEndpointStyle
public abstract class LineStringEndpointStyle
- extends LineStringStyle
- implements ChoosableStyle
|
Field Summary |
protected javax.swing.Icon |
icon
|
protected java.lang.String |
name
|
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected java.lang.String name
icon
protected javax.swing.Icon icon
LineStringEndpointStyle
public LineStringEndpointStyle(java.lang.String name,
javax.swing.Icon icon,
boolean start)
paintLineString
protected void paintLineString(com.vividsolutions.jts.geom.LineString lineString,
Viewport viewport,
java.awt.Graphics2D graphics)
throws java.lang.Exception
- Specified by:
paintLineString in class LineStringStyle
- Parameters:
lineString - has 2 or more points
- Throws:
java.lang.Exception
paint
protected abstract void paint(java.awt.geom.Point2D terminal,
java.awt.geom.Point2D next,
Viewport viewport,
java.awt.Graphics2D graphics)
throws java.lang.Exception
- Throws:
java.lang.Exception
getName
public java.lang.String getName()
- Description copied from interface:
ChoosableStyle
- For display.
- Specified by:
getName in interface ChoosableStyle
getIcon
public javax.swing.Icon getIcon()
- Description copied from interface:
ChoosableStyle
- For display. 20 x 20 pixels.
- Specified by:
getIcon in interface ChoosableStyle