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

Variable Index

 o color
color
 o x
x-value
 o y
y-value

Constructor Index

 o DataSet(double, double)
Constructt an new instance with x and y value and default color.
 o DataSet(double, double, Color)
Constructt an new instance with x and y value and color c.

Method Index

 o getColor()
Get the color.
 o getX()
Get x-value
 o getY()
Get y-value
 o setColor(Color)
Set color to c.

Variables

 o x
 private double x
x-value

 o y
 private double y
y-value

 o color
 private Color color
color

Constructors

 o DataSet
 public DataSet(double x,
                double y)
Constructt an new instance with x and y value and default color.

 o DataSet
 public DataSet(double x,
                double y,
                Color color)
Constructt an new instance with x and y value and color c.

Methods

 o getX
 public final double getX()
Get x-value

 o getY
 public final double getY()
Get y-value

 o getColor
 public final Color getColor()
Get the color. Can be null. In this case use a default color.

 o setColor
 public final void setColor(Color c)
Set color to c.


All Packages  Class Hierarchy  This Package  Previous  Next  Index