com.jrefinery.chart.demo
Class EmptyXYDataset
java.lang.Object
|
+--com.jrefinery.data.AbstractDataset
|
+--com.jrefinery.data.AbstractSeriesDataset
|
+--com.jrefinery.chart.demo.EmptyXYDataset
- All Implemented Interfaces:
- Dataset, SeriesChangeListener, SeriesDataset, XYDataset
- public class EmptyXYDataset
- extends AbstractSeriesDataset
- implements XYDataset
An empty dataset for testing purposes.
- Author:
- DG
Method Summary |
int |
getItemCount(int series)
Returns the number of items in the specified series. |
int |
getSeriesCount()
Returns the number of series in the dataset. |
java.lang.String |
getSeriesName(int series)
Returns the name of the series. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmptyXYDataset
public EmptyXYDataset()
- Default constructor.
getXValue
public java.lang.Number getXValue(int series,
int item)
- Returns the x-value for the specified series and item.
- Specified by:
getXValue
in interface XYDataset
- Parameters:
series
- the series (zero-based index).item
- the item (zero-based index).- Returns:
- the x-value (always null for this class).
getYValue
public java.lang.Number getYValue(int series,
int item)
- Returns the y-value for the specified series and item.
- Specified by:
getYValue
in interface XYDataset
- Parameters:
series
- the series (zero-based index).item
- the item (zero-based index).- Returns:
- the y-value (always null for this class).
getSeriesCount
public int getSeriesCount()
- Returns the number of series in the dataset.
- Specified by:
getSeriesCount
in interface SeriesDataset
- Overrides:
getSeriesCount
in class AbstractSeriesDataset
- Returns:
- the series count (always zero for this class).
getSeriesName
public java.lang.String getSeriesName(int series)
- Returns the name of the series.
- Specified by:
getSeriesName
in interface SeriesDataset
- Overrides:
getSeriesName
in class AbstractSeriesDataset
- Parameters:
series
- the series (zero-based index).- Returns:
- the name of the series (always null in this class).
getItemCount
public int getItemCount(int series)
- Returns the number of items in the specified series.
- Specified by:
getItemCount
in interface XYDataset
- Parameters:
series
- the series (zero-based index).- Returns:
- the item count (always zero in this class).