org.gnu.gnome
Class CanvasPoints

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.MemStruct
          extended by org.gnu.gnome.CanvasPoints

public class CanvasPoints
extends org.gnu.glib.MemStruct


Constructor Summary
CanvasPoints(double[] xCoordinates, double[] yCoordinates)
          Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
CanvasPoints(int numPoints)
          Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
 
Method Summary
 void setPoint(int index, double x, double y)
          Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
 
Methods inherited from class org.gnu.glib.MemStruct
getMemStructFromHandle
 
Methods inherited from class org.gnu.glib.Struct
equals, getHandle, getNullHandle, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CanvasPoints

public CanvasPoints(int numPoints)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

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(double[] xCoordinates,
                    double[] yCoordinates)
             throws java.lang.IllegalArgumentException
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Constructs a new CanvasPoints object with the given points. Point n would be (xCoordinates[n], yCoordinates[n]).

Parameters:
xCoordinates - an array containing the x coordinates of the points.
yCoordinates - an array containing the y coordinates of the points.
Throws:
java.lang.IllegalArgumentException - Indicates that the number of elements in the arrays are not the same.
Method Detail

setPoint

public void setPoint(int index,
                     double x,
                     double y)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Sets the value of the point at the given index.

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