java.lang.Object
org.jfree.chart.renderer.xy.CyclicXYItemRenderer.OverwriteDataSet
- All Implemented Interfaces:
Dataset
,SeriesDataset
,XYDataset
- Enclosing class:
- CyclicXYItemRenderer
A dataset to hold the interpolated points when drawing new lines.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOverwriteDataSet
(double[] x, double[] y, XYDataset delegateSet) Creates a new dataset. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeListener
(DatasetChangeListener listener) Does nothing.Returns the order of the domain (X) values.getGroup()
Returns the dataset group.int
getItemCount
(int series) Returns the number of items for the given series.int
Returns the number of series in the dataset.getSeriesKey
(int series) Returns the name of the given series.getX
(int series, int item) Returns the x-value.double
getXValue
(int series, int item) Returns the x-value (as a double primitive) for an item within a series.getY
(int series, int item) Returns the y-value.double
getYValue
(int series, int item) Returns the y-value (as a double primitive) for an item within a series.int
indexOf
(Comparable seriesName) Returns the index of the named series, or -1.void
removeChangeListener
(DatasetChangeListener listener) Does nothing.void
setGroup
(DatasetGroup group) Does nothing.
-
Field Details
-
delegateSet
The delegate dataset.
-
-
Constructor Details
-
OverwriteDataSet
Creates a new dataset.- Parameters:
x
- the x values.y
- the y values.delegateSet
- the dataset.
-
-
Method Details
-
getDomainOrder
Returns the order of the domain (X) values.- Specified by:
getDomainOrder
in interfaceXYDataset
- Returns:
- The domain order.
-
getItemCount
public int getItemCount(int series) Returns the number of items for the given series.- Specified by:
getItemCount
in interfaceXYDataset
- Parameters:
series
- the series index (zero-based).- Returns:
- The item count.
-
getX
Returns the x-value. -
getXValue
public double getXValue(int series, int item) Returns the x-value (as a double primitive) for an item within a series. -
getY
Returns the y-value. -
getYValue
public double getYValue(int series, int item) Returns the y-value (as a double primitive) for an item within a series. -
getSeriesCount
public int getSeriesCount()Returns the number of series in the dataset.- Specified by:
getSeriesCount
in interfaceSeriesDataset
- Returns:
- The series count.
-
getSeriesKey
Returns the name of the given series.- Specified by:
getSeriesKey
in interfaceSeriesDataset
- Parameters:
series
- the series index (zero-based).- Returns:
- The series name.
-
indexOf
Returns the index of the named series, or -1.- Specified by:
indexOf
in interfaceSeriesDataset
- Parameters:
seriesName
- the series name.- Returns:
- The index.
-
addChangeListener
Does nothing.- Specified by:
addChangeListener
in interfaceDataset
- Parameters:
listener
- ignored.
-
removeChangeListener
Does nothing.- Specified by:
removeChangeListener
in interfaceDataset
- Parameters:
listener
- ignored.
-
getGroup
Returns the dataset group. -
setGroup
Does nothing.
-