|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.layer.shape.ESRIBoundingBox
public class ESRIBoundingBox
A bounding box is a rectangle that fully encloses some number of shapes. The rectangle is represented as four doubles, xmin ymin, xmax, and ymax.
| Field Summary | |
|---|---|
ESRIPoint |
max
The maximum point. |
ESRIPoint |
min
The minimum point. |
| Constructor Summary | |
|---|---|
ESRIBoundingBox()
Initialize a null bounding box. |
|
ESRIBoundingBox(double x,
double y)
Initialize a bounding box from two doubles representing a point. |
|
ESRIBoundingBox(ESRIPoint point)
Initialize a bounding box from a point. |
|
ESRIBoundingBox(ESRIPoint _min,
ESRIPoint _max)
Initialize a bounding box to encompass a minimum and maximum point. |
|
| Method Summary | |
|---|---|
void |
addBounds(ESRIBoundingBox bb)
Increase the extents of this bounding box to enclose the given bounding box. |
void |
addPoint(double x,
double y)
|
void |
addPoint(ESRIPoint point)
Increase the extents of this bounding box to enclose the given point. |
void |
addPoints(ESRIPoint[] points)
Increase the extents of this bounding box to enclose all of the given points. |
boolean |
equals(java.lang.Object obj)
Determines equality with another bounding box |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public ESRIPoint min
public ESRIPoint max
| Constructor Detail |
|---|
public ESRIBoundingBox()
public ESRIBoundingBox(ESRIPoint point)
point - the point to enclose
public ESRIBoundingBox(double x,
double y)
x - the x coordinatey - the y coordinate
public ESRIBoundingBox(ESRIPoint _min,
ESRIPoint _max)
_min - a point to enclose_max - another point to enclose| Method Detail |
|---|
public void addBounds(ESRIBoundingBox bb)
bb - a bounding box to be enclosedpublic void addPoints(ESRIPoint[] points)
points - a set of points to enclosepublic void addPoint(ESRIPoint point)
point - a point to enclose
public void addPoint(double x,
double y)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - a candidate object
true if obj is of type
ESRIBoundingBox and the extents of
that bounding box match this box's extents. false
otherwise.public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||