Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.spatial.mapper
Class BoundingBox

java.lang.Object
  extended byoracle.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
The lower left coordinate
Point lowerRight
The lower right coordinate
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
The upper left coordinate
Point upperRight
The upper right coordinate

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

Method Summary
double getHorizontalDist()
Returns the horizontal distance of the box
double getVerticalDist()
Returns the vertical distance of the box
java.lang.String toString()
Returns the string representation of the box

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

Field Detail

lowerLeft

public final Point lowerLeft
The lower left coordinate

lowerRight

public final Point lowerRight
The lower right coordinate

maxLat

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

maxLon

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

minLat

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

minLon

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

upperLeft

public final Point upperLeft
The upper left coordinate

upperRight

public final Point upperRight
The upper right coordinate

Constructor Detail

BoundingBox

public BoundingBox(double min_Lon,
                   double max_Lon,
                   double min_Lat,
                   double max_Lat)
Constructor of a BoundingBox.
Parameters:
min_Lon - the minimum longitude of the box
max_Lon - the maximum longitude of the box
min_Lat - the minimum latitude of the box
max_Lat - the maximum latitude of the box

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

Method Detail

getHorizontalDist

public double getHorizontalDist()
Returns the horizontal distance of the box
Returns:
the horizontal distance of the box

getVerticalDist

public double getVerticalDist()
Returns the vertical distance of the box
Returns:
the vertical distance of the box

toString

public java.lang.String toString()
Returns the string representation of the box
Returns:
the string representation of the box

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.