org.jfree.chart.renderer.xy

Class CyclicXYItemRenderer.OverwriteDataSet

protected static class CyclicXYItemRenderer.OverwriteDataSet extends Object implements XYDataset

A dataset to hold the interpolated points when drawing new lines.
Field Summary
protected XYDatasetdelegateSet
The delegate dataset.
Constructor Summary
OverwriteDataSet(double[] x, double[] y, XYDataset delegateSet)
Creates a new dataset.
Method Summary
voidaddChangeListener(DatasetChangeListener listener)
Does nothing.
DomainOrdergetDomainOrder()
Returns the order of the domain (X) values.
DatasetGroupgetGroup()
Returns the dataset group.
intgetItemCount(int series)
Returns the number of items for the given series.
intgetSeriesCount()
Returns the number of series in the dataset.
ComparablegetSeriesKey(int series)
Returns the name of the given series.
NumbergetX(int series, int item)
Returns the x-value.
doublegetXValue(int series, int item)
Returns the x-value (as a double primitive) for an item within a series.
NumbergetY(int series, int item)
Returns the y-value.
doublegetYValue(int series, int item)
Returns the y-value (as a double primitive) for an item within a series.
intindexOf(Comparable seriesName)
Returns the index of the named series, or -1.
voidremoveChangeListener(DatasetChangeListener listener)
Does nothing.
voidsetGroup(DatasetGroup group)
Does nothing.

Field Detail

delegateSet

protected XYDataset delegateSet
The delegate dataset.

Constructor Detail

OverwriteDataSet

public OverwriteDataSet(double[] x, double[] y, XYDataset delegateSet)
Creates a new dataset.

Parameters: x the x values. y the y values. delegateSet the dataset.

Method Detail

addChangeListener

public void addChangeListener(DatasetChangeListener listener)
Does nothing.

Parameters: listener ignored.

getDomainOrder

public DomainOrder getDomainOrder()
Returns the order of the domain (X) values.

Returns: The domain order.

getGroup

public DatasetGroup getGroup()
Returns the dataset group.

Returns: The dataset group.

getItemCount

public int getItemCount(int series)
Returns the number of items for the given series.

Parameters: series the series index (zero-based).

Returns: The item count.

getSeriesCount

public int getSeriesCount()
Returns the number of series in the dataset.

Returns: The series count.

getSeriesKey

public Comparable getSeriesKey(int series)
Returns the name of the given series.

Parameters: series the series index (zero-based).

Returns: The series name.

getX

public Number getX(int series, int item)
Returns the x-value.

Parameters: series the series index (zero-based). item the item index (zero-based).

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.

Parameters: series the series (zero-based index). item the item (zero-based index).

Returns: The x-value.

getY

public Number getY(int series, int item)
Returns the y-value.

Parameters: series the series index (zero-based). item the item index (zero-based).

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.

Parameters: series the series (zero-based index). item the item (zero-based index).

Returns: The y-value.

indexOf

public int indexOf(Comparable seriesName)
Returns the index of the named series, or -1.

Parameters: seriesName the series name.

Returns: The index.

removeChangeListener

public void removeChangeListener(DatasetChangeListener listener)
Does nothing.

Parameters: listener ignored.

setGroup

public void setGroup(DatasetGroup group)
Does nothing.

Parameters: group ignored.

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.