public class ArrowEndpointStyle extends LineStringEndpointStyle
LINE, POLY_HOLE, POLY_SHELL
Constructor and Description |
---|
ArrowEndpointStyle(Color color,
boolean start,
boolean filled) |
Modifier and Type | Method and Description |
---|---|
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) |
paintLineString
paint, paint
public ArrowEndpointStyle(Color color, boolean start, boolean filled)
protected void paint(Point2D terminal, Point2D next, Viewport viewport, Graphics2D g) throws NoninvertibleTransformException
paint
in class LineStringEndpointStyle
NoninvertibleTransformException
public static GeneralPath arrowheadPath(Point2D p0, Point2D p1, Point2D tipPt, double finLength, double finAngle)
finLength
- required distance from the tip to each fin's tipCopyright © 2017. All Rights Reserved.