Class VertexZValueStyle
- java.lang.Object
-
- org.openjump.core.ui.style.decoration.TextBasedVertexStyle
-
- org.openjump.core.ui.style.decoration.VertexZValueStyle
-
- All Implemented Interfaces:
ChoosableStyle,Style,Cloneable
- Direct Known Subclasses:
VertexZValueStyle.VertexZValue
public class VertexZValueStyle extends TextBasedVertexStyle
Displays the vertex z value for each vertex of a line string.- Version:
- 1.0
- Author:
- Michael Michaud
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVertexZValueStyle.VertexZValue
-
Field Summary
Fields Modifier and Type Field Description protected ColorfillColorWithAlphastatic intFONT_BASE_SIZEprotected ColorlineColorWithAlphaprotected Strokestroke-
Fields inherited from class org.openjump.core.ui.style.decoration.TextBasedVertexStyle
enabled, icon, name
-
-
Constructor Summary
Constructors Constructor Description VertexZValueStyle(String name, String iconFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(Layer layer)Called before #paint is applied to each Feature.protected voidpaint(Point2D p, org.locationtech.jts.geom.LineString line, int index, Viewport viewport, Graphics2D g)protected voidpaintPoint(org.locationtech.jts.geom.Point point, Viewport viewport, Graphics2D g)-
Methods inherited from class org.openjump.core.ui.style.decoration.TextBasedVertexStyle
clone, getIcon, getName, isEnabled, paint, paintGeometry, paintLineString, setEnabled
-
-
-
-
Field Detail
-
FONT_BASE_SIZE
public static final int FONT_BASE_SIZE
- See Also:
- Constant Field Values
-
stroke
protected Stroke stroke
-
lineColorWithAlpha
protected Color lineColorWithAlpha
-
fillColorWithAlpha
protected Color fillColorWithAlpha
-
-
Method Detail
-
paint
protected void paint(Point2D p, org.locationtech.jts.geom.LineString line, int index, Viewport viewport, Graphics2D g) throws Exception
- Specified by:
paintin classTextBasedVertexStyle- Throws:
Exception
-
paintPoint
protected void paintPoint(org.locationtech.jts.geom.Point point, Viewport viewport, Graphics2D g) throws Exception- Specified by:
paintPointin classTextBasedVertexStyle- Throws:
Exception
-
initialize
public void initialize(Layer layer)
Description copied from interface:StyleCalled before #paint is applied to each Feature.- Specified by:
initializein interfaceStyle- Overrides:
initializein classTextBasedVertexStyle- Parameters:
layer- the layer on which to apply this style
-
-