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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private Color
private static final Font
private static final double
private static final int
Fields inherited from class org.locationtech.jtstest.testbuilder.ui.style.LineStringStyle
LINE, POLY_HOLE, POLY_SHELL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
paint
(int index, Point2D p0, Point2D p1, int lineType, Viewport vp, 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 Details
-
MIN_LEN
private static final double MIN_LEN- See Also:
-
CHAR_WIDTH_APPROX
private static final int CHAR_WIDTH_APPROX- See Also:
-
CHAR_HEIGHT_APPROX
private static final int CHAR_HEIGHT_APPROX- See Also:
-
VERTEX_OFFSET
private static final int VERTEX_OFFSET- See Also:
-
BOX_PAD
private static final int BOX_PAD- See Also:
-
FONT
-
color
-
-
Constructor Details
-
SegmentIndexStyle
-
-
Method Details
-
paint
protected void paint(int index, Point2D p0, Point2D p1, int lineType, Viewport vp, Graphics2D gr) throws Exception - Specified by:
paint
in classSegmentStyle
- Parameters:
p0
- the origin of the line segment, in view spacep1
- the termination of the line segment, in view spacevp
-gr
-- Throws:
Exception
-