com.ge.research.acuity.ui
Class Datapoint

java.lang.Object
  extended bycom.ge.research.acuity.ui.Datapoint

public class Datapoint
extends java.lang.Object

An encapsulation of the information necessary to describe a point in space for charting purposes. The class name is a misnomer, in that a "point" can actually be an area, if min and max values for either x or y are supplied. A scalar color value can also be applied to the "point".

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:24 $
Author:
garbiras

Constructor Summary
Datapoint(double x, double y)
          Sets the minimum and maximum region values on the x and y axis to x and y, respectively.
Datapoint(double x, double y, double color)
          Sets the minimum and maximum region values on the x and y axis to x and y, respectively.
Datapoint(double xMin, double xMax, double yMin, double yMax)
          Default constructor.
Datapoint(double xMin, double xMax, double yMin, double yMax, double color)
          Sets the minimum and maximum region values on the x and y axis.
 
Method Summary
 double getColorValue()
          Returns the scalar color value of the point.
 double getXmax()
          Returns the xMax coordinate of the point region
 double getXmin()
          Returns the xMin coordinate of the point region
 double getYmax()
          Returns the yMax coordinate of the point region
 double getYmin()
          Returns the yMin coordinate of the point region
 void setColorValue(double d)
          Sets the scalar color value for the point
 void setXmax(double d)
          Sets the xMax coordinate of the point region
 void setXmin(double d)
          Sets the xMin coordinate of the point region
 void setYmax(double d)
          Sets the yMax coordinate of the point region
 void setYmin(double d)
          Sets the yMin coordinate of the point region
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Datapoint

public Datapoint(double x,
                 double y)
Sets the minimum and maximum region values on the x and y axis to x and y, respectively.

Parameters:
x - the x-coordinate value for both xMin and xMax
y - the y-coordinate value for both yMin and yMax
See Also:
Datapoint(double, double, double, double)

Datapoint

public Datapoint(double xMin,
                 double xMax,
                 double yMin,
                 double yMax)
Default constructor. Sets the minimum and maximum region values on the x and y axis.

Parameters:
xMin - the minimum x-coordinate value for the range
xMax - the minimum x-coordinate value for the range
yMin - the minimum y-coordinate value for both the range
yMax - the minimum y-coordinate value for both the range
See Also:
setXmin(double), setXmax(double), setYmin(double), setYmax(double)

Datapoint

public Datapoint(double x,
                 double y,
                 double color)
Sets the minimum and maximum region values on the x and y axis to x and y, respectively. Sets the color of the "point" to the scalar provided.

Parameters:
x - the x-coordinate value for both xMin and xMax
y - the y-coordinate value for both yMin and yMax
color - the color value to apply to the point
See Also:
Datapoint(double, double, double, double, double)

Datapoint

public Datapoint(double xMin,
                 double xMax,
                 double yMin,
                 double yMax,
                 double color)
Sets the minimum and maximum region values on the x and y axis. Sets the color of the "point" to the scalar provided.

Parameters:
xMin - the minimum x-coordinate value for the range
xMax - the minimum x-coordinate value for the range
yMin - the minimum y-coordinate value for both the range
yMax - the minimum y-coordinate value for both the range
color - the color value to apply to the point
See Also:
Datapoint(double, double, double, double), setColorValue(double)
Method Detail

getXmax

public double getXmax()
Returns the xMax coordinate of the point region

Returns:
The xMax coordinate of the point region

getXmin

public double getXmin()
Returns the xMin coordinate of the point region

Returns:
The xMin coordinate of the point region

getYmax

public double getYmax()
Returns the yMax coordinate of the point region

Returns:
The yMax coordinate of the point region

getYmin

public double getYmin()
Returns the yMin coordinate of the point region

Returns:
The yMin coordinate of the point region

setXmax

public void setXmax(double d)
Sets the xMax coordinate of the point region

Parameters:
d - the xMax coordinate of the point region

setXmin

public void setXmin(double d)
Sets the xMin coordinate of the point region

Parameters:
d - the xMin coordinate of the point region

setYmax

public void setYmax(double d)
Sets the yMax coordinate of the point region

Parameters:
d - the yMax coordinate of the point region

setYmin

public void setYmin(double d)
Sets the yMin coordinate of the point region

Parameters:
d - the yMin coordinate of the point region

getColorValue

public double getColorValue()
Returns the scalar color value of the point.

Returns:
The color value for the point

setColorValue

public void setColorValue(double d)
Sets the scalar color value for the point

Parameters:
d - the scalar color value for the point