net.agmodel.metsoap
Class GeographicalBox

java.lang.Object
  |
  +--net.agmodel.metsoap.GeographicalBox

public class GeographicalBox
extends Object

Represents a "rectangular" area of land using the northwest and southeast corners.
Conforms to the JavaBean pattern to ensure easy SOAP serialization.
Note that geographical boxes may straddle the International Dateline but should not straddle either pole.
Copyright (c)2002 National Agricultural Research Center


Constructor Summary
GeographicalBox()
           
 
Method Summary
 Location2D getNorthWest()
          Gets the northwestern corner of the rectangle.
 Location2D getSouthEast()
          Gets the southeastern corner of the rectangle.
 void setNorthWest(Location2D aLocation)
          Sets the northwestern corner of the rectangle.
 void setSouthEast(Location2D aLocation)
          Sets the southeastern corner of the rectangle.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeographicalBox

public GeographicalBox()
Method Detail

getNorthWest

public Location2D getNorthWest()
Gets the northwestern corner of the rectangle.
Returns:
the "top left" point

getSouthEast

public Location2D getSouthEast()
Gets the southeastern corner of the rectangle.
Returns:
"lower right" point

setNorthWest

public void setNorthWest(Location2D aLocation)
Sets the northwestern corner of the rectangle.
Parameters:
aLocation - the "upper left" point

setSouthEast

public void setSouthEast(Location2D aLocation)
Sets the southeastern corner of the rectangle.
Parameters:
aLocation - the "lower right" point