|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.geom.Bounds
public class Bounds
Represents a rectangular bound. A Bounds is defined by minimum and maximum X and Y coordinates on a plane.
Constructor Summary | |
---|---|
protected |
Bounds()
|
Method Summary | |
---|---|
boolean |
containsBounds(Bounds other)
Returns true if the passed rectangular area is entirely
contained in this rectangular area. |
boolean |
containsPoint(Point p)
Returns true if the rectangular area (inclusively) contains
the pixel coordinates. |
void |
extend(Point point)
Enlarges this box so that the point is also contained in this box. |
Point |
getCenter()
Returns the pixel coordinates of the center of the rectangular area. |
Point |
getLowerRight()
Returns the pixel coordinates of the lower right corner of the rectangular area. |
int |
getMaxX()
Returns the x coordinate of the right edge of the rectangle. |
int |
getMaxY()
Returns the y coordinate of the bottom edge of the rectangle. |
int |
getMinX()
Returns the x coordinate of the left edge of the rectangle. |
int |
getMinY()
Returns the y coordinate of the top edge of the rectangle. |
Point |
getUpperLeft()
Returns the pixel coordinates of the upper left corner of the rectangular area. |
static Bounds |
newInstance(int minX,
int minY,
int maxX,
int maxY)
|
static Bounds |
newInstance(com.google.gwt.core.client.JsArray<Point> points)
A Bounds is defined by minimum and maximum X and Y coordinates on a plane. |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createFunction, createObject, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Bounds()
Method Detail |
---|
public static final Bounds newInstance(com.google.gwt.core.client.JsArray<Point> points)
points
- public static final Bounds newInstance(int minX, int minY, int maxX, int maxY)
public final boolean containsBounds(Bounds other)
true
if the passed rectangular area is entirely
contained in this rectangular area.
other
- the bound to compare.
true
if the passed rectangular area is entirely
contained in this rectangular area.public final boolean containsPoint(Point p)
true
if the rectangular area (inclusively) contains
the pixel coordinates.
p
- the point to compare.
true
if the rectangular area (inclusively) contains
the pixel coordinates.public final void extend(Point point)
point
- the point to add to the bound.public final Point getCenter()
public final Point getLowerRight()
public final int getMaxX()
public final int getMaxY()
public final int getMinX()
public final int getMinY()
public final Point getUpperLeft()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |