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
Displays the vertex z value for each vertex of a line string.
- Version:
- 1.0
- Author:
- Michael Michaud
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Colorstatic final intprotected Colorprotected StrokeFields inherited from class TextBasedVertexStyle
enabled, icon, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(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 TextBasedVertexStyle
clone, getIcon, getName, isEnabled, paint, paintGeometry, paintLineString, setEnabled
-
Field Details
-
FONT_BASE_SIZE
public static final int FONT_BASE_SIZE- See Also:
-
stroke
-
lineColorWithAlpha
-
fillColorWithAlpha
-
-
Constructor Details
-
VertexZValueStyle
-
-
Method Details
-
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
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
-