|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.util.Rectangle
public class Rectangle
Represents an area in a coordinate system.
Point| Field Summary | |
|---|---|
int |
height
The height of the rectangle. |
int |
width
The width of the rectangle. |
int |
x
The x coordinate. |
int |
y
The y coordinate. |
| Constructor Summary | |
|---|---|
Rectangle()
Create a new rectangle instance. |
|
Rectangle(int x,
int y,
int width,
int height)
Creates a new rectangle instance. |
|
| Method Summary | |
|---|---|
boolean |
contains(int x,
int y)
Returns true if the point is within the rectangle's region. |
boolean |
contains(Point p)
Returns true if the point is within the rectangle. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int x
public int y
public int width
public int height
| Constructor Detail |
|---|
public Rectangle()
public Rectangle(int x,
int y,
int width,
int height)
x - the x valuey - the y valuewidth - the rectangle's widthheight - the rectangle's height| Method Detail |
|---|
public boolean contains(int x,
int y)
x - the x coordinate valuey - the y coordinate value
public boolean contains(Point p)
p - the point
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||