class ChartData extends Object implements org.jfree.data.xy.XYDataset
Constructor and Description |
---|
ChartData() |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(org.jfree.data.general.DatasetChangeListener listener) |
int |
addSeries(String seriesName)
Add storage for another series of XY values.
|
void |
addXYPair(int seriesKey,
double x,
double y)
Add an XY pair to the data.
|
org.jfree.data.DomainOrder |
getDomainOrder() |
org.jfree.data.general.DatasetGroup |
getGroup() |
int |
getItemCount(int series) |
int |
getSeriesCount() |
Comparable<?> |
getSeriesKey(int series) |
Number |
getX(int series,
int item) |
double |
getXValue(int series,
int item) |
Number |
getY(int series,
int item) |
double |
getYValue(int series,
int item) |
int |
indexOf(Comparable seriesKey) |
void |
removeChangeListener(org.jfree.data.general.DatasetChangeListener listener) |
void |
setGroup(org.jfree.data.general.DatasetGroup group) |
public final int addSeries(String seriesName)
seriesName
- String; the name of the new seriespublic final void addXYPair(int seriesKey, double x, double y)
seriesKey
- int; key to the data seriesx
- double; x value of the pairy
- double; y value of the pairpublic final int getSeriesCount()
getSeriesCount
in interface org.jfree.data.general.SeriesDataset
public final Comparable<?> getSeriesKey(int series)
getSeriesKey
in interface org.jfree.data.general.SeriesDataset
public final int indexOf(Comparable seriesKey)
indexOf
in interface org.jfree.data.general.SeriesDataset
public final void addChangeListener(org.jfree.data.general.DatasetChangeListener listener)
addChangeListener
in interface org.jfree.data.general.Dataset
public final void removeChangeListener(org.jfree.data.general.DatasetChangeListener listener)
removeChangeListener
in interface org.jfree.data.general.Dataset
public final org.jfree.data.general.DatasetGroup getGroup()
getGroup
in interface org.jfree.data.general.Dataset
public final void setGroup(org.jfree.data.general.DatasetGroup group)
setGroup
in interface org.jfree.data.general.Dataset
public final org.jfree.data.DomainOrder getDomainOrder()
getDomainOrder
in interface org.jfree.data.xy.XYDataset
public final int getItemCount(int series)
getItemCount
in interface org.jfree.data.xy.XYDataset
public final Number getX(int series, int item)
getX
in interface org.jfree.data.xy.XYDataset
public final double getXValue(int series, int item)
getXValue
in interface org.jfree.data.xy.XYDataset
public final Number getY(int series, int item)
getY
in interface org.jfree.data.xy.XYDataset
public final double getYValue(int series, int item)
getYValue
in interface org.jfree.data.xy.XYDataset
Copyright © 2014–2016 Delft University of Technology. All rights reserved.