Class MetricsLineStringSegmentStyle
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
-
- com.vividsolutions.jump.workbench.ui.renderer.style.LineStringSegmentStyle
-
- com.vividsolutions.jump.workbench.ui.renderer.style.MetricsLineStringSegmentStyle
-
- All Implemented Interfaces:
ChoosableStyle,Style,Cloneable
- Direct Known Subclasses:
MetricsLineStringSegmentStyle.LengthAngle
public class MetricsLineStringSegmentStyle extends LineStringSegmentStyle
Displays line segment length and absolute angle.- Version:
- 1.0
- Author:
- Martin Davis
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetricsLineStringSegmentStyle.LengthAngle
-
Field Summary
Fields Modifier and Type Field Description static intFONT_BASE_SIZE-
Fields inherited from class com.vividsolutions.jump.workbench.ui.renderer.style.LineStringSegmentStyle
icon, name
-
Fields inherited from class com.vividsolutions.jump.workbench.ui.renderer.style.LineStringStyle
enabled, fillColorWithAlpha, lineColorWithAlpha, stroke
-
-
Constructor Summary
Constructors Constructor Description MetricsLineStringSegmentStyle(String name, String iconFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidpaint(Point2D p0, Point2D p1, Viewport viewport, Graphics2D g)protected voidpaint(org.locationtech.jts.geom.Coordinate p0, org.locationtech.jts.geom.Coordinate p1, Viewport viewport, Graphics2D graphics)-
Methods inherited from class com.vividsolutions.jump.workbench.ui.renderer.style.LineStringSegmentStyle
getIcon, getName, paintLineString
-
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
-
-
-
-
Field Detail
-
FONT_BASE_SIZE
public static final int FONT_BASE_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
paint
protected void paint(org.locationtech.jts.geom.Coordinate p0, org.locationtech.jts.geom.Coordinate p1, Viewport viewport, Graphics2D graphics) throws Exception- Overrides:
paintin classLineStringSegmentStyle- Throws:
Exception
-
paint
protected void paint(Point2D p0, Point2D p1, Viewport viewport, Graphics2D g) throws NoninvertibleTransformException
- Specified by:
paintin classLineStringSegmentStyle- Throws:
NoninvertibleTransformException
-
-