Class SegmentIndexStyle
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
-
- org.locationtech.jtstest.testbuilder.ui.style.SegmentStyle
-
- org.locationtech.jtstest.testbuilder.ui.style.SegmentIndexStyle
-
- All Implemented Interfaces:
Style
public class SegmentIndexStyle extends SegmentStyle
-
-
Field Summary
Fields Modifier and Type Field Description private static intBOX_PADprivate static intCHAR_HEIGHT_APPROXprivate static intCHAR_WIDTH_APPROXprivate java.awt.Colorcolorprivate static java.awt.FontFONTprivate static doubleMIN_LENprivate static intVERTEX_OFFSET-
Fields inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
LINE, POLY_HOLE, POLY_SHELL
-
-
Constructor Summary
Constructors Constructor Description SegmentIndexStyle(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)-
Methods inherited from class org.locationtech.jtstest.testbuilder.ui.style.SegmentStyle
paint, paintLineString
-
Methods inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
paint, paint
-
-
-
-
Field Detail
-
MIN_LEN
private static final double MIN_LEN
- See Also:
- Constant Field Values
-
CHAR_WIDTH_APPROX
private static final int CHAR_WIDTH_APPROX
- See Also:
- Constant Field Values
-
CHAR_HEIGHT_APPROX
private static final int CHAR_HEIGHT_APPROX
- See Also:
- Constant Field Values
-
VERTEX_OFFSET
private static final int VERTEX_OFFSET
- See Also:
- Constant Field Values
-
BOX_PAD
private static final int BOX_PAD
- See Also:
- Constant Field Values
-
FONT
private static final java.awt.Font FONT
-
color
private java.awt.Color color
-
-
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
-
-