org.gnu.gnome
public class CanvasPoints extends MemStruct
Constructor Summary | |
---|---|
CanvasPoints(int numPoints)
Constructs a new CanvasPoints object with memory reserved for the given
number of points.
| |
CanvasPoints(double[] xCoordinates, double[] yCoordinates)
Constructs a new CanvasPoints object with the given points. |
Method Summary | |
---|---|
void | setPoint(int index, double x, double y)
Sets the value of the point at the given index.
|
Parameters: numPoints The number of points to be represented by the object.
Parameters: xCoordinates an array containing the x coordinates of the points. yCoordinates an array containing the y coordinates of the points.
Throws: IllegalArgumentException Indicates that the number of elements in the arrays are not the same.
Parameters: index The index of the point. This value is 0 to {@link #CanvasPoints(int) numPoints} - 1.