org.gnu.gnome
public class CanvasPoints extends org.gnu.glib.MemStruct
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public CanvasPoints(int numPoints)
numPoints
- The number of points to be represented by the object.public CanvasPoints(double[] xCoordinates, double[] yCoordinates) throws java.lang.IllegalArgumentException
xCoordinates
- an array containing the x coordinates of the points.yCoordinates
- an array containing the y coordinates of the points.java.lang.IllegalArgumentException
- Indicates that the number of elements in the arrays are
not the same.public void setPoint(int index, double x, double y)
index
- The index of the point. This value is 0 to
numPoints
- 1.