|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wimpi.telnetd.io.toolkit.Dimension
public class Dimension
Class that represents a components dimension on the terminal, it therefore encapsulates the coordinates given by columns(width) and rows(height).
| Constructor Summary | |
|---|---|
Dimension()
Constructs an instance with zero width and zero height. |
|
Dimension(int width,
int height)
Constructs an instance with width and height. |
|
| Method Summary | |
|---|---|
int |
getHeight()
Accessor method for the height. |
int |
getWidth()
Accessor method for the width. |
void |
setHeight(int height)
Mutator method for the height. |
void |
setWidth(int width)
Mutator method for the width. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Dimension()
public Dimension(int width,
int height)
width - Integer that represents a width in amount of columns.height - Integer that represents a height in amount of rows.| Method Detail |
|---|
public int getWidth()
public void setWidth(int width)
width - Integer that represents a width in numbers of columns.public int getHeight()
public void setHeight(int height)
height - Integer that represents a height in numer of rows.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||