gov.noaa.pmel.util
Class SoTDomain

java.lang.Object
  |
  +--gov.noaa.pmel.util.SoTDomain
All Implemented Interfaces:
java.io.Serializable

public class SoTDomain
extends java.lang.Object
implements java.io.Serializable

SoTDomain contains the X and Y ranges of a domain in user units. These ranges are SoTRange objects which can be either Space or Time.

Since:
sgt 2.0
Version:
$Revision: 1.2 $, $Date: 2001/02/09 18:42:30 $
Author:
Donald Denbo
See Also:
Serialized Form

Constructor Summary
SoTDomain()
          Default constructor.
SoTDomain(Domain domain)
          Construct a SoTDomain from a Domain.
SoTDomain(SoTDomain domain)
          Constract a SoTDomain from a SoTDomain
SoTDomain(SoTRange xRange, SoTRange yRange)
          Construct a SoTDomain from SoTRanges.
 
Method Summary
 boolean equals(SoTDomain d)
          Test for equality.
 SoTRange getXRange()
          Get the x range
 SoTRange getYRange()
          Get the y range
 boolean isXTime()
          Test if the x range is temporal.
 boolean isYTime()
          Test if the y range is temporal
 void setXRange(SoTRange xRange)
          Set the x range
 void setYRange(SoTRange yRange)
          Set the y range
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoTDomain

public SoTDomain()
Default constructor.

SoTDomain

public SoTDomain(Domain domain)
Construct a SoTDomain from a Domain.

SoTDomain

public SoTDomain(SoTDomain domain)
Constract a SoTDomain from a SoTDomain

SoTDomain

public SoTDomain(SoTRange xRange,
                 SoTRange yRange)
Construct a SoTDomain from SoTRanges.
Method Detail

setXRange

public void setXRange(SoTRange xRange)
Set the x range

getXRange

public SoTRange getXRange()
Get the x range

setYRange

public void setYRange(SoTRange yRange)
Set the y range

getYRange

public SoTRange getYRange()
Get the y range

isXTime

public boolean isXTime()
Test if the x range is temporal.

isYTime

public boolean isYTime()
Test if the y range is temporal

equals

public boolean equals(SoTDomain d)
Test for equality. Both ranges must be equal for equality.

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 
Overrides:
toString in class java.lang.Object
Following copied from class: java.lang.Object
Returns:
a string representation of the object.


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