## 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

Field Detail

### 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

Constructor Detail

### LineData

    LineData()

  Construct a new line data instance. The lines contain no points.

Method Detail

### addPoint

    void addPoint(int x,
                  int y)

  Add a new point to the line.

Parameters:
  `x` - The x coordinate
  `y` - The y coordinate