Class ArrowLineStyle
java.lang.Object
org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
org.locationtech.jtstest.testbuilder.ui.style.SegmentStyle
org.locationtech.jtstest.testbuilder.ui.style.ArrowLineStyle
- All Implemented Interfaces:
Style
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Colorprivate static Strokeprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static Strokestatic final doubleFields inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
LINE, POLY_HOLE, POLY_SHELL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanisTooSmallToRender(Point2D p0, Point2D p1) protected voidpaint(int index, Point2D p0, Point2D p1, int lineType, Viewport vp, Graphics2D gr) protected voidpaintMidpointArrow(Point2D p0, Point2D p1, Viewport viewport, Graphics2D graphics) protected voidpaintOffsetArrow(Point2D p0, Point2D p1, Viewport viewport, Graphics2D graphics) Methods inherited from class org.locationtech.jtstest.testbuilder.ui.style.SegmentStyle
paint, paintLineStringMethods inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
paint, paint
-
Field Details
-
HEAD_ANGLE
private static final double HEAD_ANGLE- See Also:
-
HEAD_LENGTH
private static final double HEAD_LENGTH- See Also:
-
color
-
dashStroke
-
MID_ARROW_STROKE
-
LINE_OFFSET
private static final double LINE_OFFSET- See Also:
-
ENDPOINT_OFFSET
private static final double ENDPOINT_OFFSET- See Also:
-
HEAD_ANGLE_RAD
private static final double HEAD_ANGLE_RAD- See Also:
-
HEAD_COS
private static final double HEAD_COS -
HEAD_SIN
private static final double HEAD_SIN -
MIN_VISIBLE_LEN
public static final double MIN_VISIBLE_LEN- See Also:
-
-
Constructor Details
-
ArrowLineStyle
-
-
Method Details
-
paint
protected void paint(int index, Point2D p0, Point2D p1, int lineType, Viewport vp, Graphics2D gr) throws Exception - Specified by:
paintin classSegmentStyle- Parameters:
p0- the origin of the line segment, in view spacep1- the termination of the line segment, in view spacevp-gr-- Throws:
Exception
-
paintMidpointArrow
protected void paintMidpointArrow(Point2D p0, Point2D p1, Viewport viewport, Graphics2D graphics) throws NoninvertibleTransformException - Throws:
NoninvertibleTransformException
-
paintOffsetArrow
protected void paintOffsetArrow(Point2D p0, Point2D p1, Viewport viewport, Graphics2D graphics) throws NoninvertibleTransformException - Throws:
NoninvertibleTransformException
-
isTooSmallToRender
-