Class LineStringVertexStyle
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
-
- com.vividsolutions.jump.workbench.ui.renderer.style.LineStringVertexStyle
-
- All Implemented Interfaces:
ChoosableStyle,Style,Cloneable
- Direct Known Subclasses:
VertexIndexLineSegmentStyle,VertexXYLineSegmentStyle
public abstract class LineStringVertexStyle extends LineStringStyle implements ChoosableStyle
Base class for styles painting linestring vertices.- Version:
- 1.0
- Author:
- Martin Davis
-
-
Field Summary
Fields Modifier and Type Field Description protected Iconiconprotected Stringname-
Fields inherited from class com.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
enabled, fillColorWithAlpha, lineColorWithAlpha, stroke
-
-
Constructor Summary
Constructors Constructor Description LineStringVertexStyle(String name, Icon icon)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description IcongetIcon()For display.StringgetName()For display.protected abstract voidpaint(Point2D p0, org.locationtech.jts.geom.LineString line, int index, Viewport viewport, Graphics2D graphics)protected voidpaintLineString(org.locationtech.jts.geom.LineString lineString, Viewport viewport, Graphics2D graphics)-
Methods inherited from class com.vividsolutions.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 com.vividsolutions.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:
paintLineStringin classLineStringStyle- Parameters:
lineString- has 2 or more pointsviewport- the viewport to paint the lineString tographics- the graphic context- Throws:
Exception- if an Exception occurs during painting
-
paint
protected abstract void paint(Point2D p0, org.locationtech.jts.geom.LineString line, int index, Viewport viewport, Graphics2D graphics) throws Exception
- Throws:
Exception
-
getName
public String getName()
Description copied from interface:ChoosableStyleFor display.- Specified by:
getNamein interfaceChoosableStyle- Returns:
- the name of this Style
-
getIcon
public Icon getIcon()
Description copied from interface:ChoosableStyleFor display. 20 x 20 pixels.- Specified by:
getIconin interfaceChoosableStyle- Returns:
- an Icon representing this Style
-
-