net.wimpi.telnetd.io.toolkit
Class Dimension

java.lang.Object
  extended by net.wimpi.telnetd.io.toolkit.Dimension

public class Dimension
extends java.lang.Object

Class that represents a components dimension on the terminal, it therefore encapsulates the coordinates given by columns(width) and rows(height).

Version:
2.0 (16/07/2006)
Author:
Dieter Wimberger

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

Dimension

public Dimension()
Constructs an instance with zero width and zero height.


Dimension

public Dimension(int width,
                 int height)
Constructs an instance with width and height.

Parameters:
width - Integer that represents a width in amount of columns.
height - Integer that represents a height in amount of rows.
Method Detail

getWidth

public int getWidth()
Accessor method for the width.

Returns:
int that represents the width in number of columns.

setWidth

public void setWidth(int width)
Mutator method for the width.

Parameters:
width - Integer that represents a width in numbers of columns.

getHeight

public int getHeight()
Accessor method for the height.

Returns:
int that represents the height in number of rows.

setHeight

public void setHeight(int height)
Mutator method for the height.

Parameters:
height - Integer that represents a height in numer of rows.


Copyright © 2010. All Rights Reserved.