org.gnu.gnome

Class CanvasPoints


public class CanvasPoints
extends Boxed

Constructor Summary

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.

Method Summary

protected void
finalize()
protected static void
gnome_canvas_points_free(Handle points)
protected static Handle
gnome_canvas_points_new(int numPoints)
protected static Handle
gnome_canvas_points_ref(Handle points)
protected static void
gnome_canvas_points_set_point(Handle points, int index, double x, double y)
void
setPoint(int index, double x, double y)
Sets the value of the point at the given index.

Constructor Details

CanvasPoints

public CanvasPoints(int numPoints)
Constructs a new CanvasPoints object with memory reserved for the given number of points.

Parameters:
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]).

Parameters:

Method Details

finalize

protected void finalize()


gnome_canvas_points_free

protected static final void gnome_canvas_points_free(Handle points)


gnome_canvas_points_new

protected static final Handle gnome_canvas_points_new(int numPoints)


gnome_canvas_points_ref

protected static final Handle gnome_canvas_points_ref(Handle points)


gnome_canvas_points_set_point

protected static final void gnome_canvas_points_set_point(Handle points,
                                                          int index,
                                                          double x,
                                                          double y)


setPoint

public void setPoint(int index,
                     double x,
                     double y)

Parameters:
index - The index of the point. This value is 0 to