|
GeoAPI 1.0 Build 2004-05-18 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
BoundingRectangle defines a common abstraction for
implementations of boundaries defined by a top-left
DirectPosition and a bottom-right DirectPosition.
| Method Summary | |
|---|---|
DirectPosition |
getBottomRight()
Returns the DirectPosition for the bottom-right position of the
rectangle. |
BoundingRectangle |
getCombinedExtent(BoundingRectangle bounds,
BoundingRectangle result)
Returns the smallest BoundingRectangle that contains both
this BoundingRectangle and the
BoundingRectangle passed in. |
BoundingRectangle |
getIntersection(BoundingRectangle bounds,
BoundingRectangle result)
Returns the BoundingRectangle of the intersection of this
BoundingRectangle and the one passed in. |
DirectPosition |
getTopLeft()
Returns the DirectPosition for the top-left position of the
rectangle. |
void |
setBottomRight(DirectPosition coord)
Sets the DirectPosition for the bottom-right position of the
rectangle. |
void |
setTopLeft(DirectPosition coord)
Sets the DirectPosition for the top-left position of the
rectangle. |
| Methods inherited from interface Bounds |
|---|
contains, expandToInclude, getCoordinateReferenceSystem, isValid, setCoordinateReferenceSystem, setValid |
| Method Detail |
|---|
void setTopLeft(DirectPosition coord)
DirectPosition for the top-left position of the
rectangle.
coord - the top-left position.DirectPosition getTopLeft()
DirectPosition for the top-left position of the
rectangle.
void setBottomRight(DirectPosition coord)
DirectPosition for the bottom-right position of the
rectangle.
coord - the bottom-right position.DirectPosition getBottomRight()
DirectPosition for the bottom-right position of the
rectangle.
BoundingRectangle getIntersection(BoundingRectangle bounds,
BoundingRectangle result)
BoundingRectangle of the intersection of this
BoundingRectangle and the one passed in.
bounds - the BoundingRectangle to intersect with this
BoundingRectangle.result - An optional BoundingRectangle to hold the result
of this operation. If result is null, this
method will create a new BoundingRectangle to return.
isValid() function) if the
two BoundingRectangles do not intersect. The return value should
never be null.
BoundingRectangle getCombinedExtent(BoundingRectangle bounds,
BoundingRectangle result)
BoundingRectangle that contains both
this BoundingRectangle and the
BoundingRectangle passed in.
bounds - the BoundingRectangle to combine with this
BoundingRectangle.result - An optional BoundingRectangle to hold the result
of this operation. If result is null, this
method will create a new BoundingRectangle to return.
isValid() function)
if it is not possible to construct a rectangle that encompasses
both of the given rectangles. The return value should never
be null.
|
GeoAPI 1.0 Build 2004-05-18 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
|
Symbols, terms and definitions | Copyright OpenGIS® Consortium |