Class ArrowSegmentStyle
java.lang.Object
org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
org.locationtech.jtstest.testbuilder.ui.style.SegmentStyle
org.locationtech.jtstest.testbuilder.ui.style.ArrowSegmentStyle
- All Implemented Interfaces:
Style
-
Field Summary
FieldsFields inherited from class LineStringStyle
LINE, POLY_HOLE, POLY_SHELL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidpaint(int index, Point2D p0, Point2D p1, int lineType, Viewport vp, Graphics2D gr) protected voidpaintMidArrowHalf(Point2D p0, Point2D p1, Viewport viewport, Graphics2D graphics) protected voidpaintMidpointArrow(Point2D p0, Point2D p1, Viewport viewport, Graphics2D graphics) protected voidpaintOffsetArrow(Point2D p0, Point2D p1, Viewport viewport, Graphics2D graphics) voidMethods inherited from class SegmentStyle
paint, paintLineStringMethods inherited from class LineStringStyle
paint, paint
-
Field Details
-
MIN_VISIBLE_LEN
public static final double MIN_VISIBLE_LEN- See Also:
-
-
Constructor Details
-
ArrowSegmentStyle
-
-
Method Details
-
setColor
-
paint
protected void paint(int index, Point2D p0, Point2D p1, int lineType, Viewport vp, Graphics2D gr) throws Exception - Specified by:
paintin classSegmentStyle- Parameters:
p0- the origin of the line segment, in view spacep1- the termination of the line segment, in view spacevp-gr-- Throws:
Exception
-
paintMidpointArrow
protected void paintMidpointArrow(Point2D p0, Point2D p1, Viewport viewport, Graphics2D graphics) throws NoninvertibleTransformException - Throws:
NoninvertibleTransformException
-
paintOffsetArrow
protected void paintOffsetArrow(Point2D p0, Point2D p1, Viewport viewport, Graphics2D graphics) throws NoninvertibleTransformException - Throws:
NoninvertibleTransformException
-
paintMidArrowHalf
protected void paintMidArrowHalf(Point2D p0, Point2D p1, Viewport viewport, Graphics2D graphics) throws NoninvertibleTransformException - Throws:
NoninvertibleTransformException
-