|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--brf.j2me.dynaworks.util.Point
This is a primitive point class.
A point represents a position on the screen and is therefore limited to positive coordinates.
| Field Summary | |
private int |
x
x-coordinate. |
private int |
y
y-coordinate. |
| Constructor Summary | |
Point(int x,
int y)
constructor from (x,y) |
|
| Method Summary | |
int |
getX()
get the x-coordinate of the point. |
int |
getY()
get the x-coordinate of the point. |
void |
setX(int x)
set the x-coordinate of the point. |
void |
setY(int y)
set the y-coordinate of the point. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private int x
private int y
| Constructor Detail |
public Point(int x,
int y)
x - int - x-coordinate of the point.y - int - y-coordinate of the point.| Method Detail |
public int getX()
public void setX(int x)
x - int - x-coordinatepublic int getY()
public void setY(int y)
y - int - y-coordinate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||