public static final class GeometryUtils.PathSegment
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
double[] |
coords
Coordinates necessary to draw the segment.
|
java.awt.geom.Point2D |
end
End point.
|
java.awt.geom.Point2D |
start
Starting point.
|
int |
type
Segment type id as defined in
PathIterator . |
Constructor and Description |
---|
GeometryUtils.PathSegment(int type,
java.awt.geom.Point2D start,
java.awt.geom.Point2D end,
double[] coords)
Initializes a new instance with type, starting and end point, and
all other coordinates that are necessary to draw the segment.
|
public final int type
PathIterator
.public final java.awt.geom.Point2D start
public final java.awt.geom.Point2D end
public final double[] coords
public GeometryUtils.PathSegment(int type, java.awt.geom.Point2D start, java.awt.geom.Point2D end, double[] coords)
type
- Segment type id as defined in PathIterator
.start
- Starting point.end
- End point.coords
- Array of coordinates necessary to draw the segment.