gov.noaa.pmel.util
Class Domain

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

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

GraphDomain contains the X and Y ranges in user units.

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

Constructor Summary
Domain()
          Default constructor.
Domain(Domain domain)
          Create a copy of a Domain.
Domain(Range2D xRange, Range2D yRange)
           
Domain(Range2D xRange, TimeRange tRange)
           
Domain(TimeRange tRange, Range2D yRange)
           
 
Method Summary
 boolean equals(Domain d)
          Tests for equality of Domains.
 TimeRange getTimeRange()
          Get the time range
 Range2D getXRange()
          Get the x range.
 Range2D getYRange()
          Get the y range.
 boolean isXTime()
          Test if x range is time.
 boolean isYTime()
          Test if y range is time.
 void setXRange(Range2D xRange)
          Set the x range.
 void setXRange(TimeRange tRange)
          Set the x range as time.
 void setYRange(Range2D yRange)
          Set the y range
 void setYRange(TimeRange tRange)
          Set the yrange as time.
 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

Domain

public Domain()
Default constructor.

Domain

public Domain(Domain domain)
Create a copy of a Domain. The references for the ranges are copied, not the objects.

Domain

public Domain(Range2D xRange,
              Range2D yRange)

Domain

public Domain(TimeRange tRange,
              Range2D yRange)

Domain

public Domain(Range2D xRange,
              TimeRange tRange)
Method Detail

setXRange

public void setXRange(Range2D xRange)
Set the x range.

setXRange

public void setXRange(TimeRange tRange)
Set the x range as time.

getXRange

public Range2D getXRange()
Get the x range.

setYRange

public void setYRange(Range2D yRange)
Set the y range

setYRange

public void setYRange(TimeRange tRange)
Set the yrange as time.

getYRange

public Range2D getYRange()
Get the y range.

getTimeRange

public TimeRange getTimeRange()
Get the time range

isXTime

public boolean isXTime()
Test if x range is time.

isYTime

public boolean isYTime()
Test if y range is time.

equals

public boolean equals(Domain d)
Tests for equality of Domains. Both ranges must be equal.

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