Class LineStringEndpointStyle
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.renderer.style.LineStringStyle
-
- org.locationtech.jts.jump.workbench.ui.renderer.style.LineStringEndpointStyle
-
- All Implemented Interfaces:
Cloneable
,ChoosableStyle
,Style
- Direct Known Subclasses:
ArrowLineStringEndpointStyle
,CircleLineStringEndpointStyle
public abstract class LineStringEndpointStyle extends LineStringStyle implements ChoosableStyle
-
-
Field Summary
Fields Modifier and Type Field Description protected Icon
icon
protected String
name
-
Fields inherited from class org.locationtech.jts.jump.workbench.ui.renderer.style.LineStringStyle
enabled, fillColorWithAlpha, lineColorWithAlpha, stroke
-
-
Constructor Summary
Constructors Constructor Description LineStringEndpointStyle(String name, Icon icon, boolean start)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Icon
getIcon()
For display.String
getName()
For display.protected abstract void
paint(Point2D terminal, Point2D next, Viewport viewport, Graphics2D graphics)
protected void
paintLineString(org.locationtech.jts.geom.LineString lineString, Viewport viewport, Graphics2D graphics)
-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.renderer.style.LineStringStyle
clone, initialize, isEnabled, paint, paintGeometry, setEnabled
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.locationtech.jts.jump.workbench.ui.renderer.style.Style
clone, initialize, isEnabled, paint, setEnabled
-
-
-
-
Method Detail
-
paintLineString
protected void paintLineString(org.locationtech.jts.geom.LineString lineString, Viewport viewport, Graphics2D graphics) throws Exception
- Specified by:
paintLineString
in classLineStringStyle
- Parameters:
lineString
- has 2 or more points- Throws:
Exception
-
paint
protected abstract void paint(Point2D terminal, Point2D next, Viewport viewport, Graphics2D graphics) throws Exception
- Throws:
Exception
-
getName
public String getName()
Description copied from interface:ChoosableStyle
For display.- Specified by:
getName
in interfaceChoosableStyle
-
getIcon
public Icon getIcon()
Description copied from interface:ChoosableStyle
For display. 20 x 20 pixels.- Specified by:
getIcon
in interfaceChoosableStyle
-
-