|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.data.AbstractDataset | +--com.jrefinery.data.AbstractSeriesDataset | +--com.jrefinery.chart.demo.SampleXYDataset2
Random data for a scatter plot demo.
Note that the aim of this class is to create a self-contained data source for demo purposes - it is NOT intended to show how you should go about writing your own datasets.
Constructor Summary | |
SampleXYDataset2()
Default constructor. |
Method Summary | |
Range |
getDomainRange()
Returns the range of values in the domain. |
int |
getItemCount(int series)
Returns the number of items in the specified series. |
java.lang.Number |
getMaximumDomainValue()
Returns the maximum domain value. |
java.lang.Number |
getMaximumRangeValue()
Returns the maximum range value. |
java.lang.Number |
getMinimumDomainValue()
Returns the minimum domain value. |
java.lang.Number |
getMinimumRangeValue()
Returns the minimum range value. |
int |
getSeriesCount()
Returns the number of series in the dataset. |
java.lang.String |
getSeriesName(int series)
Returns the name of the series. |
Range |
getValueRange()
Returns the range of values in the range (y-values). |
java.lang.Number |
getXValue(int series,
int item)
Returns the x-value for the specified series and item. |
java.lang.Number |
getYValue(int series,
int item)
Returns the y-value for the specified series and item. |
Methods inherited from class com.jrefinery.data.AbstractSeriesDataset |
getLegendItemCount, getLegendItemLabels, seriesChanged |
Methods inherited from class com.jrefinery.data.AbstractDataset |
addChangeListener, fireDatasetChanged, getGroup, notifyListeners, removeChangeListener, setGroup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jrefinery.data.Dataset |
addChangeListener, getGroup, removeChangeListener, setGroup |
Constructor Detail |
public SampleXYDataset2()
Method Detail |
public java.lang.Number getXValue(int series, int item)
getXValue
in interface XYDataset
series
- the index (zero-based) of the series.item
- the index (zero-based) of the required item.public java.lang.Number getYValue(int series, int item)
getYValue
in interface XYDataset
series
- the index (zero-based) of the series.item
- the index (zero-based) of the required item.public int getSeriesCount()
getSeriesCount
in interface SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
public java.lang.String getSeriesName(int series)
getSeriesName
in interface SeriesDataset
getSeriesName
in class AbstractSeriesDataset
series
- the index (zero-based) of the series.public int getItemCount(int series)
getItemCount
in interface XYDataset
series
- the index (zero-based) of the series.public java.lang.Number getMinimumDomainValue()
getMinimumDomainValue
in interface DomainInfo
public java.lang.Number getMaximumDomainValue()
getMaximumDomainValue
in interface DomainInfo
public Range getDomainRange()
getDomainRange
in interface DomainInfo
public java.lang.Number getMinimumRangeValue()
getMinimumRangeValue
in interface RangeInfo
public java.lang.Number getMaximumRangeValue()
getMaximumRangeValue
in interface RangeInfo
public Range getValueRange()
getValueRange
in interface RangeInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |