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 doubleprivate static final intprivate Colorprivate booleanprivate static final doubleFields inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
LINE, POLY_HOLE, POLY_SHELL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneralPatharrowheadPath(Point2D p0, Point2D p1, Point2D tipPt, double finLength, double finAngle) static Point2Dprotected voidpaint(Point2D terminal, Point2D next, Viewport viewport, Graphics2D g) Methods inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringEndpointStyle
paintLineStringMethods 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:
paintin 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
-