Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.spatial.mapper
Class BoundingBox

java.lang.Object
  |
  +--oracle.panama.spatial.mapper.BoundingBox

public class BoundingBox
extends java.lang.Object

This class defines a bounding box for a set of points. Objects of this class are immutable and thread-safe.


Field Summary
 Point lowerLeft
           
 Point lowerRight
           
 double maxLat
          This represents the maximum latitude of the bounding box
 double maxLon
          This represents the maximum longitude of the bounding box
 double minLat
          This represents the minimum latitude of the bounding box
 double minLon
          This represents the minimum longitude of the bounding box
 Point upperLeft
           
 Point upperRight
           

 

Constructor Summary
BoundingBox(double min_Lon, double max_Lon, double min_Lat, double max_Lat)
           
BoundingBox(Point[] locations)
          Constructor of a BoundingBox.

 

Method Summary
 double getHorizontalDist()
           
 double getVerticalDist()
           
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

minLat

public final double minLat
This represents the minimum latitude of the bounding box

maxLat

public final double maxLat
This represents the maximum latitude of the bounding box

minLon

public final double minLon
This represents the minimum longitude of the bounding box

maxLon

public final double maxLon
This represents the maximum longitude of the bounding box

lowerLeft

public final Point lowerLeft

upperLeft

public final Point upperLeft

lowerRight

public final Point lowerRight

upperRight

public final Point upperRight
Constructor Detail

BoundingBox

public BoundingBox(Point[] locations)
Constructor of a BoundingBox.
Parameters:
locations - an array of Point objects from which to create the minimum bounding box plus some buffer area

BoundingBox

public BoundingBox(double min_Lon,
                   double max_Lon,
                   double min_Lat,
                   double max_Lat)
Method Detail

getVerticalDist

public double getVerticalDist()

getHorizontalDist

public double getHorizontalDist()

toString

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

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.