Class SegmentStyle
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
-
- org.locationtech.jtstest.testbuilder.ui.style.SegmentStyle
-
- All Implemented Interfaces:
Style
- Direct Known Subclasses:
ArrowLineStyle
,MidArrowLineStyle
,SegmentIndexStyle
public abstract class SegmentStyle extends LineStringStyle
-
-
Field Summary
-
Fields inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
LINE, POLY_HOLE, POLY_SHELL
-
-
Constructor Summary
Constructors Constructor Description SegmentStyle()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
paint(int index, java.awt.geom.Point2D p0, java.awt.geom.Point2D p1, int lineType, Viewport viewport, java.awt.Graphics2D graphics)
protected void
paint(int index, Coordinate p0, Coordinate p1, int lineType, Viewport viewport, java.awt.Graphics2D g)
protected void
paintLineString(LineString lineString, int lineType, Viewport viewport, java.awt.Graphics2D graphics)
-
Methods inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
paint, paint
-
-
-
-
Method Detail
-
paintLineString
protected void paintLineString(LineString lineString, int lineType, Viewport viewport, java.awt.Graphics2D graphics) throws java.lang.Exception
- Specified by:
paintLineString
in classLineStringStyle
- Throws:
java.lang.Exception
-
paint
protected void paint(int index, Coordinate p0, Coordinate p1, int lineType, Viewport viewport, java.awt.Graphics2D g) throws java.lang.Exception
- Throws:
java.lang.Exception
-
paint
protected abstract void paint(int index, java.awt.geom.Point2D p0, java.awt.geom.Point2D p1, int lineType, Viewport viewport, java.awt.Graphics2D graphics) throws java.lang.Exception
- Parameters:
p0
- the origin of the line segment, in view spacep1
- the termination of the line segment, in view spaceviewport
-graphics
-- Throws:
java.lang.Exception
-
-