|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.aerith.misao.util.Size
The Size represents a size which consists of width and
height. Both width and height must be 0 or positive. In the case of
negative value is given to set, it is converted to 0.
| Field Summary | |
private int |
height
The height value. |
private int |
width
The width value. |
| Constructor Summary | |
Size()
Constructs a Size. |
|
Size(int initial_width,
int initial_height)
Constructs a Size with widht and height value. |
|
| Method Summary | |
int |
getHeight()
Gets the height value. |
int |
getWidth()
Gets the width value. |
protected java.lang.String |
paramString()
Returns a raw string representation of the state of this object, for debugging use. |
void |
setHeight(int new_height)
Sets the height value. |
void |
setWidth(int new_width)
Sets the width value. |
java.lang.String |
toString()
Returns a string representation of the state of this object, for debugging use. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private int width
private int height
| Constructor Detail |
public Size()
Size. Both width and height are set as 0.
public Size(int initial_width,
int initial_height)
Size with widht and height value.initial_width - the initial width value.initial_height - the initial height value.| Method Detail |
public int getWidth()
public void setWidth(int new_width)
new_width - the new width value.public int getHeight()
public void setHeight(int new_height)
new_height - the new height value.protected java.lang.String paramString()
toString
method of the subclasses.public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||