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
public class ArrowEndpointStyle extends LineStringEndpointStyle
-
-
Field Summary
Fields Modifier and Type Field Description private static double
ANGLE
private static int
ARROW_ALPHA
private java.awt.Color
color
private boolean
filled
private static double
LENGTH
-
Fields inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
LINE, POLY_HOLE, POLY_SHELL
-
-
Constructor Summary
Constructors Constructor Description ArrowEndpointStyle(java.awt.Color color, boolean start, boolean filled)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.awt.geom.GeneralPath
arrowheadPath(java.awt.geom.Point2D p0, java.awt.geom.Point2D p1, java.awt.geom.Point2D tipPt, double finLength, double finAngle)
static java.awt.geom.Point2D
fin(java.awt.geom.Point2D shaftTip, java.awt.geom.Point2D shaftTail, double length, double angle)
protected void
paint(java.awt.geom.Point2D terminal, java.awt.geom.Point2D next, Viewport viewport, java.awt.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 Detail
-
ARROW_ALPHA
private static final int ARROW_ALPHA
- See Also:
- Constant Field Values
-
ANGLE
private static final double ANGLE
- See Also:
- Constant Field Values
-
LENGTH
private static final double LENGTH
- See Also:
- Constant Field Values
-
filled
private boolean filled
-
color
private java.awt.Color color
-
-
Method Detail
-
paint
protected void paint(java.awt.geom.Point2D terminal, java.awt.geom.Point2D next, Viewport viewport, java.awt.Graphics2D g) throws java.awt.geom.NoninvertibleTransformException
- Specified by:
paint
in classLineStringEndpointStyle
- Throws:
java.awt.geom.NoninvertibleTransformException
-
arrowheadPath
public static java.awt.geom.GeneralPath arrowheadPath(java.awt.geom.Point2D p0, java.awt.geom.Point2D p1, java.awt.geom.Point2D tipPt, double finLength, double finAngle)
- Parameters:
finLength
- required distance from the tip to each fin's tip
-
fin
public static java.awt.geom.Point2D fin(java.awt.geom.Point2D shaftTip, java.awt.geom.Point2D shaftTail, double length, double angle)
-
-