org.gnu.gnome
Class CanvasPoints
MemStructorg.gnu.gnome.CanvasPoints
public class CanvasPoints
extends MemStruct
CanvasPoints(int numPoints)- Constructs a new CanvasPoints object with memory reserved for the given
number of points.
|
CanvasPoints(xCoordinates[] , yCoordinates[] )- Constructs a new CanvasPoints object with the given points.
|
void | setPoint(int index, double x, double y)- Sets the value of the point at the given index.
|
CanvasPoints
public CanvasPoints(int numPoints)
Constructs a new CanvasPoints object with memory reserved for the given
number of points.
numPoints - The number of points to be represented by the object.
CanvasPoints
public CanvasPoints(xCoordinates[] ,
yCoordinates[] )
throws IllegalArgumentException Constructs a new CanvasPoints object with the given points. Point n would
be (xCoordinates[n], yCoordinates[n]).
setPoint
public void setPoint(int index,
double x,
double y) Sets the value of the point at the given index.
index - The index of the point. This value is 0 to
numPoints - 1.