JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class JCData3dGridIndex

java.lang.Object
  |
  +--com.klg.jclass.chart3d.JCData3dIndex
        |
        +--com.klg.jclass.chart3d.JCData3dGridIndex
All Implemented Interfaces:
Serializable

public class JCData3dGridIndex
extends JCData3dIndex
implements Serializable

JCData3dGridIndex contains a unique index to a grid data point in Chart3d consisting of a x and a y. It is used by the chart's pick() methods, and also contains information related to these operations.

See Also:
Serialized Form

Field Summary
protected  int x
          The x index of selected data point.
protected  int y
          The y index of the selected data point.
 
Fields inherited from class com.klg.jclass.chart3d.JCData3dIndex
ALL, dataView, distance, obj, parent
 
Constructor Summary
JCData3dGridIndex()
          Simple constructor for JCData3dGridIndex.
JCData3dGridIndex(com.klg.jclass.chart3d.Chart3dDataView dataView, int x, int y)
          Constructor that creates a data index from the standard information needed to create a data index: a data view, an x, and a y.
JCData3dGridIndex(int x, int y)
          Constructor that creates a grid data index from an x and a y.
 
Method Summary
 boolean equals(Object o)
          Determines if the specified object refers to the same data point as this JCData3dGridIndex instance.
 int getX()
          Gets the value of the X property.
 int getY()
          Gets the value of the Y property.
 void setX(int x)
          Gets the value of the X property.
 void setY(int y)
          Gets the value of the Y property.
 
Methods inherited from class com.klg.jclass.chart3d.JCData3dIndex
getDataView, getDistance, getObject, setChanged, setDataView, setDistance, setObject
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

protected int x
The x index of selected data point.


y

protected int y
The y index of the selected data point.

Constructor Detail

JCData3dGridIndex

public JCData3dGridIndex()
Simple constructor for JCData3dGridIndex.


JCData3dGridIndex

public JCData3dGridIndex(int x,
                         int y)
Constructor that creates a grid data index from an x and a y. The dataView, if needed, must be set via the setDataView() method.

Parameters:
x - the x index within the data
y - the y index within the data

JCData3dGridIndex

public JCData3dGridIndex(com.klg.jclass.chart3d.Chart3dDataView dataView,
                         int x,
                         int y)
Constructor that creates a data index from the standard information needed to create a data index: a data view, an x, and a y.

Parameters:
dataView - the data view that holds the (x, y) grid index
x - the x index within the data
y - the y index within the data
Method Detail

getX

public int getX()
Gets the value of the X property. It contains the index of the x grid to which this data index object refers.

Returns:
index of the selected x

setX

public void setX(int x)
Gets the value of the X property. It contains the index of the x grid to which this data index object refers.

Parameters:
x - index of the selected x

getY

public int getY()
Gets the value of the Y property. It contains the index of the y grid to which this data index object refers.

Returns:
index of the selected y

setY

public void setY(int y)
Gets the value of the Y property. It contains the index of the y grid to which this data index object refers.

Parameters:
y - index of the selected y

equals

public boolean equals(Object o)
Determines if the specified object refers to the same data point as this JCData3dGridIndex instance.

Overrides:
equals in class Object
Parameters:
o - object to compare
Returns:
whether the passed object is a JCData3dGridIndex instance and refers to the same data point as this instance

Copyright © 2004 Quest Software Inc..
All rights reserved.