Class ArrowLineEndStyle
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
-
- org.locationtech.jtstest.testbuilder.ui.style.LineEndStyle
-
- org.locationtech.jtstest.testbuilder.ui.style.ArrowLineEndStyle
-
- All Implemented Interfaces:
Style
public class ArrowLineEndStyle extends LineEndStyle
-
-
Field Summary
-
Fields inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
LINE, POLY_HOLE, POLY_SHELL
-
-
Constructor Summary
Constructors Constructor Description ArrowLineEndStyle(Color color, boolean start, boolean filled)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GeneralPath
arrowheadPath(Point2D p0, Point2D tipPt, double finLength, double finAngle, double offsetSize)
static GeneralPath
arrowheadPath(Point2D p0, Point2D p1, Point2D tipPt, double finLength, double finAngle)
static Point2D
fin(Point2D shaftTip, Point2D shaftTail, double length, double angle)
protected void
paint(Point2D terminal, Point2D next, Viewport viewport, Graphics2D g)
void
setColor(Color color)
-
Methods inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineEndStyle
paintLineString
-
Methods inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
paint, paint
-
-
-
-
Constructor Detail
-
ArrowLineEndStyle
public ArrowLineEndStyle(Color color, boolean start, boolean filled)
-
-
Method Detail
-
setColor
public void setColor(Color color)
-
paint
protected void paint(Point2D terminal, Point2D next, Viewport viewport, Graphics2D g) throws NoninvertibleTransformException
- Specified by:
paint
in classLineEndStyle
- 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
-
arrowheadPath
public static GeneralPath arrowheadPath(Point2D p0, Point2D tipPt, double finLength, double finAngle, double offsetSize)
- Parameters:
finLength
- required distance from the tip to each fin's tip
-
-