Class ArrowLineStyle
- java.lang.Object
-
- com.vividsolutions.jtstest.testbuilder.ui.style.LineStringStyle
-
- com.vividsolutions.jtstest.testbuilder.ui.style.SegmentStyle
-
- com.vividsolutions.jtstest.testbuilder.ui.style.ArrowLineStyle
-
- All Implemented Interfaces:
Style
public class ArrowLineStyle extends SegmentStyle
-
-
Field Summary
Fields Modifier and Type Field Description static doubleMIN_VISIBLE_LEN-
Fields inherited from class com.vividsolutions.jtstest.testbuilder.ui.style.LineStringStyle
LINE, POLY_HOLE, POLY_SHELL
-
-
Constructor Summary
Constructors Constructor Description ArrowLineStyle(java.awt.Color color)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidpaint(int index, java.awt.geom.Point2D p0, java.awt.geom.Point2D p1, int lineType, Viewport vp, java.awt.Graphics2D gr)protected voidpaintMidpointArrow(java.awt.geom.Point2D p0, java.awt.geom.Point2D p1, Viewport viewport, java.awt.Graphics2D graphics)protected voidpaintOffsetArrow(java.awt.geom.Point2D p0, java.awt.geom.Point2D p1, Viewport viewport, java.awt.Graphics2D graphics)-
Methods inherited from class com.vividsolutions.jtstest.testbuilder.ui.style.SegmentStyle
paint, paintLineString
-
Methods inherited from class com.vividsolutions.jtstest.testbuilder.ui.style.LineStringStyle
paint, paint
-
-
-
-
Field Detail
-
MIN_VISIBLE_LEN
public static final double MIN_VISIBLE_LEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
paint
protected void paint(int index, java.awt.geom.Point2D p0, java.awt.geom.Point2D p1, int lineType, Viewport vp, java.awt.Graphics2D gr) throws java.lang.Exception- Specified by:
paintin classSegmentStylep0- the origin of the line segment, in view spacep1- the termination of the line segment, in view space- Throws:
java.lang.Exception
-
paintMidpointArrow
protected void paintMidpointArrow(java.awt.geom.Point2D p0, java.awt.geom.Point2D p1, Viewport viewport, java.awt.Graphics2D graphics) throws java.awt.geom.NoninvertibleTransformException- Throws:
java.awt.geom.NoninvertibleTransformException
-
paintOffsetArrow
protected void paintOffsetArrow(java.awt.geom.Point2D p0, java.awt.geom.Point2D p1, Viewport viewport, java.awt.Graphics2D graphics) throws java.awt.geom.NoninvertibleTransformException- Throws:
java.awt.geom.NoninvertibleTransformException
-
-