|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wimpi.telnetd.io.toolkit.Component
public abstract class Component
Class that represents an abstract toolkit component.
| Field Summary | |
|---|---|
protected Dimension |
m_Dim
|
protected BasicTerminalIO |
m_IO
|
protected java.lang.String |
m_Name
|
protected Point |
m_Position
|
| Constructor Summary | |
|---|---|
Component(BasicTerminalIO io,
java.lang.String name)
Constructor for an abstract toolkit component. |
|
| Method Summary | |
|---|---|
abstract void |
draw()
Method that draws the component. |
Dimension |
getDimension()
Accessor method for a components dimension. |
Point |
getLocation()
Accessor method for a components location. |
java.lang.String |
getName()
Accessor method for the name property of a component. |
protected void |
setDimension(Dimension dim)
Mutator method for a components dimension. |
void |
setLocation(int col,
int row)
Convenience mutator method for a components location. |
void |
setLocation(Point pos)
Mutator method for a components location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String m_Name
protected BasicTerminalIO m_IO
protected Point m_Position
protected Dimension m_Dim
| Constructor Detail |
|---|
public Component(BasicTerminalIO io,
java.lang.String name)
io - Instance of a class implementing the BasicTerminalIO.name - String that represents the components name.| Method Detail |
|---|
public abstract void draw()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getName()
public Point getLocation()
public void setLocation(Point pos)
pos - Point that encapsulates the (new) Location.
public void setLocation(int col,
int row)
col - int that represents a column coordinate.row - int that represents a row coordinate.public Dimension getDimension()
protected void setDimension(Dimension dim)
dim - Dimension that encapsulates the dimension in cols and rows.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||