TelnetD at SF

net.wimpi.telnetd.io.toolkit
Class Dimension

java.lang.Object
  extended bynet.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). * * @author Dieter Wimberger * @version 2.0 (13/03/2005)


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. * * @param width Integer that represents a width in amount of columns. * @param height Integer that represents a height in amount of rows.

Method Detail

getWidth

public int getWidth()
Accessor method for the width. * * @return int that represents the width in number of columns.


setWidth

public void setWidth(int width)
Mutator method for the width. * * @param width Integer that represents a width in numbers of columns.


getHeight

public int getHeight()
Accessor method for the height. * * @return int that represents the height in number of rows.


setHeight

public void setHeight(int height)
Mutator method for the height. * * @param height Integer that represents a height in numer of rows.


TelnetD at SF

Copyright © 2000-2005 Dieter Wimberger.