JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class JCData3dLabelIndex

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

public class JCData3dLabelIndex
extends JCData3dIndex
implements Serializable

JCData3dLabelIndex contains a unique index to a label in Chart3d consisting of a JCValueLabel and its index. It is used by the chart pick() methods, and also contains information relating to these operations.

See Also:
Serialized Form

Field Summary
protected  int labelIndex
          The index of the selected label.
protected  com.klg.jclass.chart3d.JCValueLabel valueLabel
          The selected label.
 
Fields inherited from class com.klg.jclass.chart3d.JCData3dIndex
ALL, dataView, distance, obj, parent
 
Constructor Summary
JCData3dLabelIndex()
          Simple constructor for JCData3dLabelIndex.
JCData3dLabelIndex(com.klg.jclass.chart3d.JCValueLabel valueLabel)
          Constructor that creates a label data index from a JCValueLabel.
 
Method Summary
 boolean equals(Object o)
          Determines if the specified object refers to the same label as this JCData3dLabelIndex instance.
 int getLabelIndex()
          Gets the value of the labelIndex property.
 com.klg.jclass.chart3d.JCValueLabel getValueLabel()
          Gets the selected label (stored as a JCValueLabel).
 void setLabelIndex(int labelIndex)
          Sets the value of the labelIndex property.
 void setValueLabel(com.klg.jclass.chart3d.JCValueLabel valueLabel)
          Sets the selected label (stored as a JCValueLabel).
 
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

labelIndex

protected int labelIndex
The index of the selected label.


valueLabel

protected com.klg.jclass.chart3d.JCValueLabel valueLabel
The selected label.

Constructor Detail

JCData3dLabelIndex

public JCData3dLabelIndex()
Simple constructor for JCData3dLabelIndex.


JCData3dLabelIndex

public JCData3dLabelIndex(com.klg.jclass.chart3d.JCValueLabel valueLabel)
Constructor that creates a label data index from a JCValueLabel. The dataView, if needed, must be set via the setDataView() method.

Parameters:
valueLabel - the selected label (stored as a JCValueLabel)
Method Detail

getLabelIndex

public int getLabelIndex()
Gets the value of the labelIndex property. It contains the index of the selected label.

Returns:
index of the selected x

setLabelIndex

public void setLabelIndex(int labelIndex)
Sets the value of the labelIndex property. It contains the index of the selecteded label.

Parameters:
labelIndex - index of the selected x

getValueLabel

public com.klg.jclass.chart3d.JCValueLabel getValueLabel()
Gets the selected label (stored as a JCValueLabel).

Returns:
the selected label

setValueLabel

public void setValueLabel(com.klg.jclass.chart3d.JCValueLabel valueLabel)
Sets the selected label (stored as a JCValueLabel).

Parameters:
valueLabel - the new selected label

equals

public boolean equals(Object o)
Determines if the specified object refers to the same label as this JCData3dLabelIndex instance.

Overrides:
equals in class Object
Parameters:
o - object to compare
Returns:
if the passed object is a JCData3dLabelIndex instance, and if it refers to the same label as this instance

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