All Packages Class Hierarchy This Package Previous Next Index
Class jsz.Plotter.DataSet
java.lang.Object
|
+----jsz.Plotter.DataSet
- public class DataSet
- extends Object
This class represents a x/y-value pair. The pair can have a
specific color. If no color is specified, the default value is
used.
- Version:
- $Revision: 1.3 $
- Author:
- Janek Schwarz
-
color
- color
-
x
- x-value
-
y
- y-value
-
DataSet(double, double)
- Constructt an new instance with x and y value and default color.
-
DataSet(double, double, Color)
- Constructt an new instance with x and y value and color c.
-
getColor()
- Get the color.
-
getX()
- Get x-value
-
getY()
- Get y-value
-
setColor(Color)
- Set color to c.
x
private double x
- x-value
y
private double y
- y-value
color
private Color color
- color
DataSet
public DataSet(double x,
double y)
- Constructt an new instance with x and y value and default color.
DataSet
public DataSet(double x,
double y,
Color color)
- Constructt an new instance with x and y value and color c.
getX
public final double getX()
- Get x-value
getY
public final double getY()
- Get y-value
getColor
public final Color getColor()
- Get the color. Can be null. In this case use a default color.
setColor
public final void setColor(Color c)
- Set color to c.
All Packages Class Hierarchy This Package Previous Next Index