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.


Method Index

 o addDataSet(DataSet)
Add a new {
 o addDataSet(double, double)
Create new new {
 o addDataSet(double, double, Color)
Create new new {
 o addObserver(Observer)
'Observable' functionality.
 o deleteObserver(Observer)
'Observable' functionality.
 o getColor()
Get default color.
 o getData()
get the data
 o getLegend()
Get the name this dataseries should be associated with
 o getXMax()
Get maximal x dimension.
 o getXMin()
Get minimal x dimension.
 o getYMax()
Get maximal y dimension.
 o getYMin()
Get minimal y dimension.
 o setColor(Color)
set default color.
 o setLegend(String)
Set the name this dataseries should be associated with

Methods

 o 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.

 o 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.

 o 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
 o 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
 o 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
 o getData
 public abstract Vector getData()
get the data

 o setColor
 public abstract void setColor(Color c)
set default color.

 o getColor
 public abstract Color getColor()
Get default color.

 o setLegend
 public abstract void setLegend(String name)
Set the name this dataseries should be associated with

 o getLegend
 public abstract String getLegend()
Get the name this dataseries should be associated with

 o getXMin
 public abstract double getXMin()
Get minimal x dimension.

 o getXMax
 public abstract double getXMax()
Get maximal x dimension.

 o getYMin
 public abstract double getYMin()
Get minimal y dimension.

 o getYMax
 public abstract double getYMax()
Get maximal y dimension.


All Packages  Class Hierarchy  This Package  Previous  Next  Index