JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class JCData3dPointIndex

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

public class JCData3dPointIndex
extends JCData3dIndex
implements Serializable

JCData3dIndex contains a unique index to a data point in Chart, consisting of a data series instance and an index representing the point within the data series. It is used by the chart pick() methods and also contains information related to these operations.

See Also:
Serialized Form

Field Summary
protected  int point
          The point index of the selected point.
protected  int series
          The series index of the selected point.
 
Fields inherited from class com.klg.jclass.chart3d.JCData3dIndex
ALL, dataView, distance, obj, parent
 
Constructor Summary
JCData3dPointIndex()
          Simple constructor for JCData3dPointIndex.
JCData3dPointIndex(com.klg.jclass.chart3d.Chart3dDataView dataView, int series, int point)
          Constructor that creates a data index from the standard information needed to create a data index (a data view, a series index, and a point index).
JCData3dPointIndex(int series, int point)
          Constructor that creates a point data index from a series index and a point index within that series.
 
Method Summary
 boolean equals(Object o)
          Determines if the specified object refers to the same data point as this JCData3dPointIndex instance.
 int getPoint()
          Gets the value of the Point property.
 int getSeries()
          Gets the value of the Series property.
 void setPoint(int point)
          Gets the value of the Point property.
 void setSeries(int series)
          Gets the value of the Series 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

series

protected int series
The series index of the selected point.


point

protected int point
The point index of the selected point.

Constructor Detail

JCData3dPointIndex

public JCData3dPointIndex()
Simple constructor for JCData3dPointIndex.


JCData3dPointIndex

public JCData3dPointIndex(int series,
                          int point)
Constructor that creates a point data index from a series index and a point index within that series. The dataView, if needed, must be set via the setDataView() method.

Parameters:
series - the series index
point - the point index

JCData3dPointIndex

public JCData3dPointIndex(com.klg.jclass.chart3d.Chart3dDataView dataView,
                          int series,
                          int point)
Constructor that creates a data index from the standard information needed to create a data index (a data view, a series index, and a point index).

Parameters:
dataView - the data view
series - the series index
point - the point index
Method Detail

getSeries

public int getSeries()
Gets the value of the Series property. It contains the index of the series that this data index object refers to.

Returns:
index of the selected series

setSeries

public void setSeries(int series)
Gets the value of the Series property. It contains the index of the series that this data index object refers to.

Parameters:
series - index of the selected series

getPoint

public int getPoint()
Gets the value of the Point property. It contains the index of the point that this data object class refers to.

Returns:
index of the selected point within its data series

setPoint

public void setPoint(int point)
Gets the value of the Point property. It contains the index of the point that this data index object refers to.

Parameters:
point - index of the selected point within its data series

equals

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

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

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