Class ArrowEndpointStyle
java.lang.Object
org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
org.locationtech.jtstest.testbuilder.ui.style.LineStringEndpointStyle
org.locationtech.jtstest.testbuilder.ui.style.ArrowEndpointStyle
- All Implemented Interfaces:
Style
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final double
private static final int
private Color
private boolean
private static final double
Fields inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
LINE, POLY_HOLE, POLY_SHELL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneralPath
arrowheadPath
(Point2D p0, Point2D p1, Point2D tipPt, double finLength, double finAngle) static Point2D
protected void
paint
(Point2D terminal, Point2D next, Viewport viewport, Graphics2D g) Methods inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringEndpointStyle
paintLineString
Methods inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
paint, paint
-
Field Details
-
ARROW_ALPHA
private static final int ARROW_ALPHA- See Also:
-
ANGLE
private static final double ANGLE- See Also:
-
LENGTH
private static final double LENGTH- See Also:
-
filled
private boolean filled -
color
-
-
Constructor Details
-
ArrowEndpointStyle
-
-
Method Details
-
paint
protected void paint(Point2D terminal, Point2D next, Viewport viewport, Graphics2D g) throws NoninvertibleTransformException - Specified by:
paint
in classLineStringEndpointStyle
- Throws:
NoninvertibleTransformException
-
arrowheadPath
public static GeneralPath arrowheadPath(Point2D p0, Point2D p1, Point2D tipPt, double finLength, double finAngle) - Parameters:
finLength
- required distance from the tip to each fin's tip
-
fin
-