|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.general.AbstractDataset
anl.aida.plot.ScatterGroupDataset
public class ScatterGroupDataset
Dataset appropriate for a scatter plot. Each series has two frames. The xValue is the value from one frame and the yValue from another. Each frame provides a single point per group / category axis value in that frame.
Nested Class Summary | |
---|---|
private static class |
ScatterGroupDataset.SeriesData
|
Field Summary | |
---|---|
private java.util.List<ScatterGroupDataset.SeriesData> |
series
|
private int |
timestep
|
private anl.aida.data.DataFrame |
xFrame
|
private anl.aida.data.DataFrame |
yFrame
|
Constructor Summary | |
---|---|
ScatterGroupDataset(anl.aida.data.DataFrame xFrame,
anl.aida.data.DataFrame yFrame)
Creates a ScatterGroupDataset that will plot the equivalent groups in each frame against each other. |
Method Summary | |
---|---|
void |
addSeries(int group)
|
org.jfree.data.DomainOrder |
getDomainOrder()
Returns the order of the domain (or X) values returned by the dataset. |
int |
getItemCount(int series)
Returns the number of items in a series. |
int |
getSeriesCount()
Returns the number of series in the dataset. |
java.lang.Comparable |
getSeriesKey(int series)
Returns the key for a series. |
int |
getTimeStep()
Gets the current timestep of this dataset. |
private double |
getValue(anl.aida.data.DataFrame frame,
int group)
|
java.lang.Number |
getX(int series,
int item)
Returns the x-value for an item within a series. |
double |
getXValue(int series,
int item)
Returns the x-value for an item within a series. |
java.lang.Number |
getY(int series,
int item)
Returns the y-value for an item within a series. |
double |
getYValue(int series,
int item)
Returns the y-value (as a double primitive) for an item within a series. |
int |
indexOf(java.lang.Comparable seriesKey)
Returns the index of the series with the specified key, or -1 if there is no such series in the dataset. |
void |
setSeriesKey(int series,
java.lang.String key)
|
void |
setTimeStep(int timestep)
Sets the current timestep of this dataset. |
Methods inherited from class org.jfree.data.general.AbstractDataset |
---|
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.data.general.Dataset |
---|
addChangeListener, getGroup, removeChangeListener, setGroup |
Field Detail |
---|
private anl.aida.data.DataFrame xFrame
private anl.aida.data.DataFrame yFrame
private java.util.List<ScatterGroupDataset.SeriesData> series
private int timestep
Constructor Detail |
---|
public ScatterGroupDataset(anl.aida.data.DataFrame xFrame, anl.aida.data.DataFrame yFrame)
xFrame
- yFrame
- Method Detail |
---|
public void addSeries(int group)
public org.jfree.data.DomainOrder getDomainOrder()
getDomainOrder
in interface org.jfree.data.xy.XYDataset
null
).public int getItemCount(int series)
IllegalArgumentException
if the series
argument
is outside the specified range.
getItemCount
in interface org.jfree.data.xy.XYDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).
private double getValue(anl.aida.data.DataFrame frame, int group)
public java.lang.Number getX(int series, int item)
getX
in interface org.jfree.data.xy.XYDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).item
- the item index (in the range 0
to
getItemCount(series)
).
null
).public double getXValue(int series, int item)
getXValue
in interface org.jfree.data.xy.XYDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).item
- the item index (in the range 0
to
getItemCount(series)
).
public java.lang.Number getY(int series, int item)
getY
in interface org.jfree.data.xy.XYDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).item
- the item index (in the range 0
to
getItemCount(series)
).
null
).public double getYValue(int series, int item)
getYValue
in interface org.jfree.data.xy.XYDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).item
- the item index (in the range 0
to
getItemCount(series)
).
public int getSeriesCount()
getSeriesCount
in interface org.jfree.data.general.SeriesDataset
public int getTimeStep()
public void setTimeStep(int timestep)
timestep
- the new timesteppublic java.lang.Comparable getSeriesKey(int series)
getSeriesKey
in interface org.jfree.data.general.SeriesDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).
public void setSeriesKey(int series, java.lang.String key)
public int indexOf(java.lang.Comparable seriesKey)
indexOf
in interface org.jfree.data.general.SeriesDataset
seriesKey
- the series key (null
permitted).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |