All Packages Class Hierarchy This Package Previous Next Index
Interface jsz.Plotter.IDataSeries
- public interface IDataSeries
A Dataseries is basically a collection of x/y value pairs
(implemented as {@link jsz.Plotter.DataSet}.
{@link java.util.Observable} is used for implementing
Observable functionality.
-
addDataSet(DataSet)
- Add a new {
-
addDataSet(double, double)
- Create new new {
-
addDataSet(double, double, Color)
- Create new new {
-
addObserver(Observer)
- 'Observable' functionality.
-
deleteObserver(Observer)
- 'Observable' functionality.
-
getColor()
- Get default color.
-
getData()
- get the data
-
getLegend()
- Get the name this dataseries should be associated with
-
getXMax()
- Get maximal x dimension.
-
getXMin()
- Get minimal x dimension.
-
getYMax()
- Get maximal y dimension.
-
getYMin()
- Get minimal y dimension.
-
setColor(Color)
- set default color.
-
setLegend(String)
- Set the name this dataseries should be associated with
addObserver
public abstract void addObserver(Observer o)
- 'Observable' functionality. Should be implemented using {@link
java.util.Observable}. The other classes in the plotter
package really depend on it, so if you decide to implement
Observable functionality yourself, be careful.
deleteObserver
public abstract void deleteObserver(Observer o)
- 'Observable' functionality. Should be implemented using {@link
java.util.Observable}. The other classes in the plotter
packege really depend on it, so if you decide to implement
Observable functionality yourself, be careful.
addDataSet
public abstract IDataSeries addDataSet(DataSet ds)
- Add a new {@link jsz.Plotter.DataSet} to the dataseries.
- Parameters:
- ds - dataset
- Returns:
- this instance, so you can write something like
dataseries.add(dataSet1).add(dataSet2);
- See Also:
- addDataSet, addDataSet
addDataSet
public abstract IDataSeries addDataSet(double x,
double y)
- Create new new {@link jsz.Plotter.DataSet} from x and y and
add it.
- Parameters:
- x - x-value
- y - y-value
- Returns:
- this instance, so you can write something like
dataseries.add(dataSet1).add(dataSet2);
- See Also:
- addDataSet, addDataSet
addDataSet
public abstract IDataSeries addDataSet(double x,
double y,
Color c)
- Create new new {@link jsz.Plotter.DataSet} from x
and y with color c and add it.
- Parameters:
- x - x-value
- y - y-value
- c - color
- Returns:
- this instance, so you can write something like
dataseries.add(dataSet1).add(dataSet2);
- See Also:
- addDataSet, addDataSet
getData
public abstract Vector getData()
- get the data
setColor
public abstract void setColor(Color c)
- set default color.
getColor
public abstract Color getColor()
- Get default color.
setLegend
public abstract void setLegend(String name)
- Set the name this dataseries should be associated with
getLegend
public abstract String getLegend()
- Get the name this dataseries should be associated with
getXMin
public abstract double getXMin()
- Get minimal x dimension.
getXMax
public abstract double getXMax()
- Get maximal x dimension.
getYMin
public abstract double getYMin()
- Get minimal y dimension.
getYMax
public abstract double getYMax()
- Get maximal y dimension.
All Packages Class Hierarchy This Package Previous Next Index