gov.noaa.pmel.util
Class SoTPoint

java.lang.Object
  |
  +--gov.noaa.pmel.util.SoTPoint

public class SoTPoint
extends java.lang.Object

SoTPoint has two coordinates which are of type SoTValue. SoT stands for space or time, but being basically lazy I've abbreviated it.

Version:
$Revision: 1.3 $, $Date: 2001/02/09 18:42:30 $
Author:
Donald Denbo

Field Summary
 SoTValue x_
          X coordinate
 SoTValue y_
          Y coordinate
 
Constructor Summary
SoTPoint()
          Default constructor.
SoTPoint(double x, double y)
          Construct a SoTPoint from doubles.
SoTPoint(double x, GeoDate y)
          Construct a SoTPoint from a double and a GeoDate.
SoTPoint(GeoDate x, double y)
          Construct a SoTPoint from a GeoDate and a double.
SoTPoint(SoTValue x, SoTValue y)
          Construct a SoTPoint from SoTValues.
 
Method Summary
 boolean equals(SoTPoint stp)
          Test for equality.
 SoTValue getX()
          Get x value
 SoTValue getY()
          Get y value
 boolean isXTime()
          Test if x value is time
 boolean isYTime()
          Test if y value is time
 java.lang.String toString()
          Convert SoTPoint to a default string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x_

public SoTValue x_
X coordinate

y_

public SoTValue y_
Y coordinate
Constructor Detail

SoTPoint

public SoTPoint()
Default constructor.

SoTPoint

public SoTPoint(SoTValue x,
                SoTValue y)
Construct a SoTPoint from SoTValues.
Parameters:
x - space or time coordinate
y - space or time coordinate

SoTPoint

public SoTPoint(double x,
                double y)
Construct a SoTPoint from doubles.

SoTPoint

public SoTPoint(double x,
                GeoDate y)
Construct a SoTPoint from a double and a GeoDate.

SoTPoint

public SoTPoint(GeoDate x,
                double y)
Construct a SoTPoint from a GeoDate and a double.
Method Detail

getX

public SoTValue getX()
Get x value

getY

public SoTValue getY()
Get y value

equals

public boolean equals(SoTPoint stp)
Test for equality. For equality both x and y values must be equal.

isXTime

public boolean isXTime()
Test if x value is time

isYTime

public boolean isYTime()
Test if y value is time

toString

public java.lang.String toString()
Convert SoTPoint to a default string
Overrides:
toString in class java.lang.Object
Returns:
string representation of the SoTPoint.


Send comments about the Scientific Graphics toolkit to dwd@pmel.noaa.gov. For more information about Java Development in the EPIC Group see the EPIC Software Page
Generated on December 13 2001