|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.chart.JCDataIndex
JCDataIndex
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.
Field Summary | |
protected com.klg.jclass.chart.ChartDataView |
dataView
Data view value for the data point. |
protected int |
distance
Distance value, used during pick. |
protected Object |
obj
Chart object picked (for example, legend, chartArea). |
protected int |
point
Index of the point within the data series. |
protected com.klg.jclass.chart.ChartDataViewSeries |
series
Data series value for the data point. |
protected int |
seriesIndex
Data series index for the data point. |
Constructor Summary | |
JCDataIndex()
Simple constructor for JCDataIndex . |
|
JCDataIndex(com.klg.jclass.chart.ChartDataView dv,
com.klg.jclass.chart.ChartDataViewSeries s,
int i,
int p)
Constructor that creates a data index from the standard information needed to create a data index: a data view, a series instance, the index of that series instance, and a point index. |
|
JCDataIndex(int p,
com.klg.jclass.chart.ChartDataViewSeries s)
Constructor that creates a data index from a series instance 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 JCDataIndex instance. |
com.klg.jclass.chart.ChartDataView |
getDataView()
Gets the value of the DataView property. |
int |
getDistance()
Gets the value of the Distance property. |
Object |
getObject()
Gets the value of the Obj property. |
int |
getPoint()
Gets the value of the Point property. |
com.klg.jclass.chart.ChartDataViewSeries |
getSeries()
Gets the value of the Series property. |
int |
getSeriesIndex()
Gets the value of the SeriesIndex property. |
int |
hashCode()
Creates hash code, depending on the value of the data view hash code plus series index and point value. |
void |
setDataView(com.klg.jclass.chart.ChartDataView view)
Sets the value of the DataView property. |
void |
setDistance(int dist)
Sets the value of the Distance property. |
void |
setObject(Object object)
Sets the value of the Obj property. |
void |
setPoint(int p)
Gets the value of the Point property. |
void |
setSeries(com.klg.jclass.chart.ChartDataViewSeries s)
Gets the value of the Series property. |
void |
setSeriesIndex(int index)
Sets the value of the SeriesIndex property. |
String |
toString()
Returns a string representation of this data index object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Object obj
protected com.klg.jclass.chart.ChartDataView dataView
protected com.klg.jclass.chart.ChartDataViewSeries series
protected int seriesIndex
JCPieChartFormat.OTHER_SLICE
if the other slice in a pie chart
has been picked.
protected int point
protected int distance
Constructor Detail |
public JCDataIndex()
JCDataIndex
.
public JCDataIndex(int p, com.klg.jclass.chart.ChartDataViewSeries s)
dataView
and
seriesIndex
members bases on information from the series
instance.
p
- the point index within the seriess
- the data series instance that holds the pointpublic JCDataIndex(com.klg.jclass.chart.ChartDataView dv, com.klg.jclass.chart.ChartDataViewSeries s, int i, int p)
dv
- the data view that holds the series and points
- the data series instance that holds the pointi
- index of the data series within the series listp
- the point index within the seriesMethod Detail |
public com.klg.jclass.chart.ChartDataViewSeries getSeries()
Series
property. It containts the
ChartDataViewSeries
instance that holds the point that this data
index class is referring to.
public void setSeries(com.klg.jclass.chart.ChartDataViewSeries s)
Series
property. It containts the
ChartDataViewSeries
instance that holds the point that this data
index class is referring to.
s
- the data series instancepublic com.klg.jclass.chart.ChartDataView getDataView()
DataView
property. It contains the
ChartDataView
instance that holds the point that this data index
class is referring to.
public void setDataView(com.klg.jclass.chart.ChartDataView view)
DataView
property. It contains the
ChartDataView
instance that holds the point that this data index
class is referring to.
view
- the data viewpublic int getSeriesIndex()
SeriesIndex
property. It contains the
index of the data series (specified in the Series
property) that
contains the point that this data index class is referring to. Alternately,
it may be equal to JCPieChartFormat.OTHER_SLICE
if this data
index class is referring to the other slice of a pie chart.
public void setSeriesIndex(int index)
SeriesIndex
property. It contains the
index of the data series (specified in the Series
property) that
contains the point that this data index class is referring to. Alternately,
it may be equal to JCPieChartFormat.OTHER_SLICE
if this data
index class is referring to the other slice of a pie chart.
index
- the series indexpublic int getPoint()
Point
property. It contains the index of
the point that this data index class refers to within the series (specified
by the Series
property).
public void setPoint(int p)
Point
property. It contains the index of
the point that this data index class refers to within the series (specified
by the Series
property).
p
- index of the selected point within the data seriespublic int getDistance()
Distance
property. It is used by pick
operations and contains the distance between the point selected and the
nearest data point.
public void setDistance(int dist)
Distance
property. It is used by pick
operations and contains the distance between the point selected and the
nearest data point.
dist
- distance from the selected pointpublic Object getObject()
Obj
property. It is used by pick
operations and contains the object picked (for example,
JCChartArea
or JCLegend
instance) by those
operations.
public void setObject(Object object)
Obj
property. It is used by pick
operations and contains the object picked (for example,
JCChartArea
or JCLegend
instance) by those
operations.
object
- picked objectpublic boolean equals(Object o)
JCDataIndex
instance.
equals
in class Object
o
- object to compare
JCDataIndex
instance and
refers to the same data point as this instancepublic int hashCode()
hashCode
for all equal JCDataIndex
objects, and a
different hashCode
for inequal JCDataIndex
objects.
hashCode
in class Object
equals(java.lang.Object)
,
Hashtable
public String toString()
toString
in class Object
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |