|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--brf.j2me.dynaworks.util.Rectangle
This is a primitive rectangle class.
A rectangle represents an area on the screen and is therefore limited to positive coordinates.
| Field Summary | |
private Point |
lr
corner point (lower right). |
private Point |
ul
corner point (upper left). |
| Constructor Summary | |
Rectangle(int x,
int y,
int w,
int h)
constructor from (x,y,w,h) |
|
| Method Summary | |
int |
getHeight()
get the height of the rectangle. |
int |
getWidth()
get the width of the rectangle. |
int |
getX()
get the x-coordinate of the upper-left corner. |
int |
getY()
get the y-coordinate of the upper-left corner. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private Point ul
private Point lr
| Constructor Detail |
public Rectangle(int x,
int y,
int w,
int h)
x - int - x-coordinate of the upper-left corner.y - int - y-coordinate of the upper-left corner.w - int - width of the rectangle.h - int - height of the rectangle.| Method Detail |
public int getX()
public int getY()
public int getWidth()
public int getHeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||