Package org.jfree.chart.demo
Class EmptyXYDataset
java.lang.Object
org.jfree.data.AbstractDataset
org.jfree.data.AbstractSeriesDataset
org.jfree.data.AbstractXYDataset
org.jfree.chart.demo.EmptyXYDataset
- All Implemented Interfaces:
ObjectInputValidation,Serializable,Cloneable,EventListener,Dataset,SeriesChangeListener,SeriesDataset,XYDataset
public class EmptyXYDataset extends AbstractXYDataset implements XYDataset
An empty dataset for testing purposes.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description EmptyXYDataset()Default constructor. -
Method Summary
Modifier and Type Method Description intgetItemCount(int series)Returns the number of items in the specified series.intgetSeriesCount()Returns the number of series in the dataset.StringgetSeriesName(int series)Returns the name of the series.NumbergetXValue(int series, int item)Returns the x-value for the specified series and item.NumbergetYValue(int series, int item)Returns the y-value for the specified series and item.Methods inherited from class org.jfree.data.AbstractXYDataset
getX, getYMethods inherited from class org.jfree.data.AbstractSeriesDataset
seriesChangedMethods inherited from class org.jfree.data.AbstractDataset
addChangeListener, clone, getGroup, removeChangeListener, setGroup, validateObjectMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jfree.data.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Constructor Details
-
EmptyXYDataset
public EmptyXYDataset()Default constructor.
-
-
Method Details
-
getXValue
Returns the x-value for the specified series and item. -
getYValue
Returns the y-value for the specified series and item. -
getSeriesCount
public int getSeriesCount()Returns the number of series in the dataset.- Specified by:
getSeriesCountin interfaceSeriesDataset- Specified by:
getSeriesCountin classAbstractSeriesDataset- Returns:
- the series count (always zero for this class).
-
getSeriesName
Returns the name of the series.- Specified by:
getSeriesNamein interfaceSeriesDataset- Specified by:
getSeriesNamein classAbstractSeriesDataset- 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:
getItemCountin interfaceXYDataset- Parameters:
series- the series (zero-based index).- Returns:
- the item count (always zero in this class).
-