Class TextBasedVertexStyle
java.lang.Object
org.openjump.core.ui.style.decoration.TextBasedVertexStyle
- All Implemented Interfaces:
ChoosableStyle, Style, Cloneable
- Direct Known Subclasses:
VertexZValueStyle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()getIcon()For display. 20 x 20 pixels.getName()For display.voidinitialize(Layer layer) Called before #paint is applied to each Feature.booleanvoidpaint(Feature f, Graphics2D g, Viewport viewport) protected abstract voidpaint(Point2D p0, org.locationtech.jts.geom.LineString line, int index, Viewport viewport, Graphics2D graphics) protected voidpaintGeometry(org.locationtech.jts.geom.Geometry geometry, Graphics2D graphics, Viewport viewport) protected voidpaintLineString(org.locationtech.jts.geom.LineString lineString, Viewport viewport, Graphics2D graphics) protected abstract voidpaintPoint(org.locationtech.jts.geom.Point point, Viewport viewport, Graphics2D graphics) voidsetEnabled(boolean enabled)
-
Field Details
-
enabled
protected boolean enabled -
name
-
icon
-
-
Constructor Details
-
TextBasedVertexStyle
public TextBasedVertexStyle() -
TextBasedVertexStyle
-
-
Method Details
-
clone
-
paintGeometry
protected void paintGeometry(org.locationtech.jts.geom.Geometry geometry, Graphics2D graphics, Viewport viewport) throws Exception - Throws:
Exception
-
paintLineString
protected void paintLineString(org.locationtech.jts.geom.LineString lineString, Viewport viewport, Graphics2D graphics) throws Exception - 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
-
paintPoint
protected abstract void paintPoint(org.locationtech.jts.geom.Point point, Viewport viewport, Graphics2D graphics) throws Exception - Throws:
Exception
-
initialize
Description copied from interface:StyleCalled before #paint is applied to each Feature.- Specified by:
initializein interfaceStyle- Parameters:
layer- the layer on which to apply this style
-
paint
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceStyle
-
isEnabled
-
getName
Description copied from interface:ChoosableStyleFor display.- Specified by:
getNamein interfaceChoosableStyle- Returns:
- the name of this Style
-
getIcon
Description copied from interface:ChoosableStyleFor display. 20 x 20 pixels.- Specified by:
getIconin interfaceChoosableStyle- Returns:
- an Icon representing this Style
-