org.j3d.geom.overlay
Class LineData
- class LineData
- Internal data holder class that holds points for a single line.
- Version:
- $Revision: 1.2 $
- Author:
- Justin Couch
DEFAULT_SIZE
private static final int DEFAULT_SIZE
- Default size of the arrays
ARRAY_INC
private static final int ARRAY_INC
- Increment size for the array
xPoints
int[] xPoints
- The x coordinates of the finished line
yPoints
int[] yPoints
- The y coordinates of the finished line
numPoints
int numPoints
- The final number of points to be drawn
LineData
LineData()
- Construct a new line data instance. The lines contain no points.
addPoint
void addPoint(int x,
int y)
- Add a new point to the line.
- Parameters:
x
- The x coordinate
y
- The y coordinate