|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.general.AbstractDataset
org.jfree.data.general.AbstractSeriesDataset
org.jfree.data.xy.AbstractXYDataset
edu.ucla.stat.SOCR.chart.data.SampleXYDataset2
public class 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()
Creates a sample dataset using default settings (4 series, 100 data items per series, random data in the range 0 - 200). |
|
SampleXYDataset2(int seriesCount,
int itemCount)
Creates a sample dataset. |
Method Summary | |
---|---|
org.jfree.data.Range |
getDomainBounds()
Returns the range of values in the domain. |
org.jfree.data.Range |
getDomainBounds(boolean includeInterval)
Returns the bounds for the domain. |
double |
getDomainLowerBound()
Returns the minimum domain value. |
double |
getDomainLowerBound(boolean includeInterval)
Returns the lower bound for the domain. |
org.jfree.data.Range |
getDomainRange()
Returns the range of values in the domain. |
double |
getDomainUpperBound()
Returns the maximum domain value. |
double |
getDomainUpperBound(boolean includeInterval)
Returns the upper bound for 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. |
org.jfree.data.Range |
getRangeBounds(boolean includeInterval)
Returns the range of values in the range (y-values). |
double |
getRangeLowerBound()
Returns the minimum range value. |
double |
getRangeLowerBound(boolean includeInterval)
Returns the lower bound for the range. |
double |
getRangeUpperBound()
Returns the maximum range value. |
double |
getRangeUpperBound(boolean includeInterval)
Returns the upper bound for the range. |
int |
getSeriesCount()
Returns the number of series in the dataset. |
java.lang.Comparable |
getSeriesKey(int series)
Returns the key for the series. |
org.jfree.data.Range |
getValueRange()
Returns the range of y-values. |
java.lang.Number |
getX(int series,
int item)
Returns the x-value for the specified series and item. |
java.lang.Number |
getY(int series,
int item)
Returns the y-value for the specified series and item. |
Methods inherited from class org.jfree.data.xy.AbstractXYDataset |
---|
getDomainOrder, getXValue, getYValue |
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset |
---|
indexOf, seriesChanged |
Methods inherited from class org.jfree.data.general.AbstractDataset |
---|
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.data.xy.XYDataset |
---|
getDomainOrder, getXValue, getYValue |
Methods inherited from interface org.jfree.data.general.SeriesDataset |
---|
indexOf |
Methods inherited from interface org.jfree.data.general.Dataset |
---|
addChangeListener, getGroup, removeChangeListener, setGroup |
Constructor Detail |
---|
public SampleXYDataset2()
public SampleXYDataset2(int seriesCount, int itemCount)
seriesCount
- the number of series.itemCount
- the number of items.Method Detail |
---|
public java.lang.Number getX(int series, int item)
getX
in interface org.jfree.data.xy.XYDataset
series
- the index (zero-based) of the series.item
- the index (zero-based) of the required item.
public java.lang.Number getY(int series, int item)
getY
in interface org.jfree.data.xy.XYDataset
series
- the index (zero-based) of the series.item
- the index (zero-based) of the required item.
public int getSeriesCount()
getSeriesCount
in interface org.jfree.data.general.SeriesDataset
getSeriesCount
in class org.jfree.data.general.AbstractSeriesDataset
public java.lang.Comparable getSeriesKey(int series)
getSeriesKey
in interface org.jfree.data.general.SeriesDataset
getSeriesKey
in class org.jfree.data.general.AbstractSeriesDataset
series
- the index (zero-based) of the series.
public int getItemCount(int series)
getItemCount
in interface org.jfree.data.xy.XYDataset
series
- the index (zero-based) of the series.
public double getDomainLowerBound()
public double getDomainLowerBound(boolean includeInterval)
getDomainLowerBound
in interface org.jfree.data.DomainInfo
includeInterval
- include the x-interval?
public double getDomainUpperBound()
public double getDomainUpperBound(boolean includeInterval)
getDomainUpperBound
in interface org.jfree.data.DomainInfo
includeInterval
- include the x-interval?
public org.jfree.data.Range getDomainBounds()
public org.jfree.data.Range getDomainBounds(boolean includeInterval)
getDomainBounds
in interface org.jfree.data.DomainInfo
includeInterval
- include the x-interval?
public org.jfree.data.Range getDomainRange()
public double getRangeLowerBound()
public double getRangeLowerBound(boolean includeInterval)
getRangeLowerBound
in interface org.jfree.data.RangeInfo
includeInterval
- include the y-interval?
public double getRangeUpperBound()
public double getRangeUpperBound(boolean includeInterval)
getRangeUpperBound
in interface org.jfree.data.RangeInfo
includeInterval
- include the y-interval?
public org.jfree.data.Range getRangeBounds(boolean includeInterval)
getRangeBounds
in interface org.jfree.data.RangeInfo
includeInterval
- include the y-interval?
public org.jfree.data.Range getValueRange()
public java.lang.Number getMinimumDomainValue()
public java.lang.Number getMaximumDomainValue()
public java.lang.Number getMinimumRangeValue()
public java.lang.Number getMaximumRangeValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |