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:
ArrowSegmentStyle
,MidArrowLineStyle
,SegmentIndexStyle
-
Field Summary
Fields inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
LINE, POLY_HOLE, POLY_SHELL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
paint
(int index, Point2D p0, Point2D p1, int lineType, Viewport viewport, Graphics2D graphics) protected void
paint
(int index, Coordinate p0, Coordinate p1, int lineType, Viewport viewport, Graphics2D g) protected void
paintLineString
(LineString lineString, int lineType, Viewport viewport, Graphics2D graphics) Methods inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
paint, paint
-
Constructor Details
-
SegmentStyle
public SegmentStyle()
-
-
Method Details
-
paintLineString
protected void paintLineString(LineString lineString, int lineType, Viewport viewport, Graphics2D graphics) throws Exception - Specified by:
paintLineString
in classLineStringStyle
- Throws:
Exception
-
paint
protected void paint(int index, Coordinate p0, Coordinate p1, int lineType, Viewport viewport, Graphics2D g) throws Exception - Throws:
Exception
-
paint
protected abstract void paint(int index, Point2D p0, Point2D p1, int lineType, Viewport viewport, Graphics2D graphics) throws Exception - Parameters:
p0
- the origin of the line segment, in view spacep1
- the termination of the line segment, in view spaceviewport
-graphics
-- Throws:
Exception
-