@JsType(isNative=true)
public class Bounds
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
contains(Bounds otherBounds)
Returns true if the rectangle contains the given one.
|
java.lang.Boolean |
contains(Point point)
Returns true if the rectangle contains the given point.
|
void |
extend(Point point)
Extends the bounds to contain the given point.
|
Point |
getCenter()
Returns the center point of the bounds.
|
Point |
getSize()
Returns the size of the given bounds.
|
java.lang.Boolean |
intersects(Bounds otherBounds)
Returns true if the rectangle intersects the given bounds.
|
java.lang.Boolean |
isValid()
Returns true if the bounds are properly initialized.
|
@JsMethod public void extend(Point point)
point
- the point@JsMethod public Point getCenter()
@JsMethod public java.lang.Boolean contains(Bounds otherBounds)
otherBounds
- the bounds@JsMethod public java.lang.Boolean contains(Point point)
the
- point@JsMethod public java.lang.Boolean intersects(Bounds otherBounds)
otherBounds
- the other bounds@JsMethod public java.lang.Boolean isValid()
@JsMethod public Point getSize()