|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wimpi.telnetd.io.toolkit.Point
public class Point
Class that represents a point on the terminal. Respectively it specifies a character cell, encapsulating column and row coordinates.
| Constructor Summary | |
|---|---|
Point()
Constructs an instance with its coordinates set to the origin (0/0). |
|
Point(int col,
int row)
Constructs an instance with given coordinates. |
|
| Method Summary | |
|---|---|
int |
getColumn()
Accessor method for the column coordinate. |
int |
getRow()
Accessor method for the row coordinate. |
void |
move(int col,
int row)
Convenience method to set the points coordinates. |
void |
setColumn(int col)
Mutator method for the column coordinate of this Cell. |
void |
setLocation(int col,
int row)
Mutator method to set the points coordinate at once. |
void |
setRow(int row)
Mutator method for the row coordinate of this Cell. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Point()
public Point(int col,
int row)
col - Integer that represents a column position.row - Integer that represents a row position| Method Detail |
|---|
public void setLocation(int col,
int row)
col - Integer that represents a column position.row - Integer that represents a row position
public void move(int col,
int row)
col - Integer that represents a column position.row - Integer that represents a row positionpublic int getColumn()
public void setColumn(int col)
col - Integer that represents a column position.public int getRow()
public void setRow(int row)
row - Integer that represents a row position.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||