|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--Forms.Forms
This abstract class declares the basic methods for creating and manipulating forms.
| Field Summary | |
protected Rectangle |
rectangle
This is the bounding rectangle. |
| Constructor Summary | |
Forms()
The second constructor. |
|
Forms(int xOrigin,
int yOrigin,
int width,
int height)
The first constructor. |
|
| Method Summary | |
int |
height()
This method returns the height of the bounding rectangle. |
void |
height(int height)
We set the new height of the bounding rectangle. |
abstract boolean |
isSelected(int x,
int y)
Abstract method. |
void |
rectangle(Rectangle rectangle)
This fonction set the bounding rectangle to a new rectangle in parameter. |
abstract void |
translate(int x,
int y,
int maxWidth,
int maxHeight)
Abstract method. |
int |
width()
The width of the bounding rectangle. |
void |
width(int width)
This methods set the new width of the bounding rectangle. |
int |
xOrigin()
This method returns the x origin of the bounding rectangle. |
void |
xOrigin(int xOrigin)
This method set the new x origin of the bounding rectangle. |
int |
yOrigin()
This method returns the y origin of the bounding rectangle. |
void |
yOrigin(int yOrigin)
This method set the new y origin of the bounding rectangle. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected Rectangle rectangle
| Constructor Detail |
public Forms(int xOrigin,
int yOrigin,
int width,
int height)
xOrigin - The x origin of the bounding rectangle.yOrigin - The y origin of the bounding rectangle.width - The width of the bounding rectangle.height - The height of the bounding rectangle.public Forms()
| Method Detail |
public void rectangle(Rectangle rectangle)
rectangle - The new bounding rectangle.public int xOrigin()
public void xOrigin(int xOrigin)
xOrigin - The new x origin.public int yOrigin()
public void yOrigin(int yOrigin)
yOrigin - The new y origin.public int width()
public void width(int width)
width - The new width of the bounding rectangle.public int height()
public void height(int height)
public abstract boolean isSelected(int x,
int y)
x - The x coordinate of the point.y - The y coordinate of the point.
public abstract void translate(int x,
int y,
int maxWidth,
int maxHeight)
x - The x point coordinate where the implementing classes must translate.y - The y point coordinate where the implementing classes must translate.maxWidth - The forms can be translated util maxWidth (after they go out of the window scope).maxHeight - The forms can be translated util maxHeight (after they go out of the window scope).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||