|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.core.client.util.Rectangle
public class Rectangle
Represents an area in a coordinate system.
Point| 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. |
int |
getHeight()
|
int |
getWidth()
|
int |
getX()
|
int |
getY()
|
void |
setHeight(int height)
|
void |
setWidth(int width)
|
void |
setX(int x)
|
void |
setY(int y)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 int getHeight()
public int getWidth()
public int getX()
public int getY()
public void setHeight(int height)
public void setWidth(int width)
public void setX(int x)
public void setY(int y)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||