Package org.jfree.chart.demo
Class SampleXYZDataset
java.lang.Object
org.jfree.data.AbstractDataset
org.jfree.data.AbstractSeriesDataset
org.jfree.data.AbstractXYDataset
org.jfree.data.AbstractXYZDataset
org.jfree.chart.demo.SampleXYZDataset
- All Implemented Interfaces:
ObjectInputValidation,Serializable,Cloneable,EventListener,Dataset,SeriesChangeListener,SeriesDataset,XYDataset,XYZDataset
public class SampleXYZDataset extends AbstractXYZDataset implements XYZDataset
A quick-and-dirty implementation of the
interface.
Hard-coded and not useful beyond the demo.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SampleXYZDataset() -
Method Summary
Modifier and Type Method Description intgetItemCount(int series)Returns the number of items in a series.intgetSeriesCount()Returns the number of series in the dataset.StringgetSeriesName(int series)Returns the name of a series.NumbergetXValue(int series, int item)Returns the x-value for an item within a series.NumbergetYValue(int series, int item)Returns the y-value for an item within a series.NumbergetZValue(int series, int item)Returns the z-value for the specified series and item.Methods inherited from class org.jfree.data.AbstractXYZDataset
getZMethods 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, setGroupMethods inherited from interface org.jfree.data.XYZDataset
getZ
-
Constructor Details
-
SampleXYZDataset
public SampleXYZDataset()
-
-
Method Details
-
getSeriesCount
public int getSeriesCount()Returns the number of series in the dataset.- Specified by:
getSeriesCountin interfaceSeriesDataset- Specified by:
getSeriesCountin classAbstractSeriesDataset- Returns:
- the series count.
-
getSeriesName
Returns the name of a series.- Specified by:
getSeriesNamein interfaceSeriesDataset- Specified by:
getSeriesNamein classAbstractSeriesDataset- Parameters:
series- the series (zero-based index).- Returns:
- the name of the series.
-
getItemCount
public int getItemCount(int series)Returns the number of items in a series.- Specified by:
getItemCountin interfaceXYDataset- Parameters:
series- the series (zero-based index).- Returns:
- the number of items within the series.
-
getXValue
Returns the x-value for an item within a series.The implementation is responsible for ensuring that the x-values are presented in ascending order.
-
getYValue
Returns the y-value for an item within a series. -
getZValue
Returns the z-value for the specified series and item.- Specified by:
getZValuein interfaceXYZDataset- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- the z-value for the specified series and item.
-