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
public class ArrowSegmentStyle extends SegmentStyle
-
-
Field Summary
Fields Modifier and Type Field Description static double
MIN_VISIBLE_LEN
-
Fields inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
LINE, POLY_HOLE, POLY_SHELL
-
-
Constructor Summary
Constructors Constructor Description ArrowSegmentStyle(Color color)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
paint(int index, Point2D p0, Point2D p1, int lineType, Viewport vp, Graphics2D gr)
protected void
paintMidArrowHalf(Point2D p0, Point2D p1, Viewport viewport, Graphics2D graphics)
protected void
paintMidpointArrow(Point2D p0, Point2D p1, Viewport viewport, Graphics2D graphics)
protected void
paintOffsetArrow(Point2D p0, Point2D p1, Viewport viewport, Graphics2D graphics)
void
setColor(Color color)
-
Methods inherited from class org.locationtech.jtstest.testbuilder.ui.style.SegmentStyle
paint, paintLineString
-
Methods inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
paint, paint
-
-
-
-
Field Detail
-
MIN_VISIBLE_LEN
public static final double MIN_VISIBLE_LEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ArrowSegmentStyle
public ArrowSegmentStyle(Color color)
-
-
Method Detail
-
setColor
public void setColor(Color color)
-
paint
protected void paint(int index, Point2D p0, Point2D p1, int lineType, Viewport vp, Graphics2D gr) throws Exception
- Specified by:
paint
in classSegmentStyle
p0
- the origin of the line segment, in view spacep1
- the termination of the line segment, in view space- 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
-
-