com.vividsolutions.jump.workbench.ui.renderer.style
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, java.lang.Cloneable
- Direct Known Subclasses:
- MetricsLineStringSegmentStyle.LengthAngle
public class MetricsLineStringSegmentStyle
- extends LineStringSegmentStyle
Displays line segment length and absolute angle.
- Version:
- 1.0
- Author:
- Martin Davis
|
Method Summary |
protected void |
paint(com.vividsolutions.jts.geom.Coordinate p0,
com.vividsolutions.jts.geom.Coordinate p1,
Viewport viewport,
java.awt.Graphics2D graphics)
|
protected void |
paint(java.awt.geom.Point2D p0,
java.awt.geom.Point2D p1,
Viewport viewport,
java.awt.Graphics2D g)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FONT_BASE_SIZE
public static final int FONT_BASE_SIZE
- See Also:
- Constant Field Values
MetricsLineStringSegmentStyle
public MetricsLineStringSegmentStyle(java.lang.String name,
java.lang.String iconFile)
- Parameters:
finAngle - degreesfinLength - pixels
paint
protected void paint(com.vividsolutions.jts.geom.Coordinate p0,
com.vividsolutions.jts.geom.Coordinate p1,
Viewport viewport,
java.awt.Graphics2D graphics)
throws java.lang.Exception
- Overrides:
paint in class LineStringSegmentStyle
- Throws:
java.lang.Exception
paint
protected void paint(java.awt.geom.Point2D p0,
java.awt.geom.Point2D p1,
Viewport viewport,
java.awt.Graphics2D g)
throws java.awt.geom.NoninvertibleTransformException
- Specified by:
paint in class LineStringSegmentStyle
- Throws:
java.awt.geom.NoninvertibleTransformException