gov.noaa.pmel.util
Class SoTDomain

java.lang.Object
  extended by 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$, $Date$
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.
SoTDomain(SoTRange xRange, SoTRange yRange, boolean xRev, boolean yRev)
           
 
Method Summary
 boolean equals(SoTDomain d)
          Test for equality.
 SoTPoint getCenter()
          Get the center of the domain.
 SoTRange getXRange()
          Get the x range
 SoTRange getYRange()
          Get the y range
 boolean isXReversed()
           
 boolean isXTime()
          Test if the x range is temporal.
 boolean isYReversed()
           
 boolean isYTime()
          Test if the y range is temporal
 void setXRange(SoTRange xRange)
          Set the x range
 void setXReversed(boolean rev)
           
 void setYRange(SoTRange yRange)
          Set the y range
 void setYReversed(boolean rev)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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.


SoTDomain

public SoTDomain(SoTRange xRange,
                 SoTRange yRange,
                 boolean xRev,
                 boolean yRev)
Since:
sgt 3.0
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


getCenter

public SoTPoint getCenter()
Get the center of the domain.

Since:
sgt 3.0

equals

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


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setXReversed

public void setXReversed(boolean rev)
Since:
sgt 3.0

isXReversed

public boolean isXReversed()
Since:
sgt 3.0

setYReversed

public void setYReversed(boolean rev)
Since:
sgt 3.0

isYReversed

public boolean isYReversed()
Since:
sgt 3.0