|
Josh Native console access wrapper for Java |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.yifanlu.Josh.ConsoleCoord
public class ConsoleCoord
Defines the coordinates of a character cell in a console screen buffer. The origin of the coordinate system (0,0) is at the top, left cell of the buffer.
| Constructor Summary | |
|---|---|
ConsoleCoord(int x,
int y)
Creates a point that represents a block in the console window. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object anObject)
Compares two Objects, if both are ConsoleCoord and have the same X and Y, they are equal. |
int |
getX()
Gets the X coordinate. |
int |
getY()
Gets the Y coordinate. |
int |
hashCode()
Returns a hash code. |
void |
setX(int x)
Sets the X coordinate. |
void |
setY(int y)
Sets the Y coordinate. |
java.lang.String |
toString()
A String representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConsoleCoord(int x,
int y)
x - The horizontal coordinate or column value.y - The vertical coordinate or row value.| Method Detail |
|---|
public int getX()
public int getY()
public void setX(int x)
x - The horizontal coordinate or column value.public void setY(int y)
y - The vertical coordinate or row value.public boolean equals(java.lang.Object anObject)
equals in class java.lang.ObjectanObject - Another ConsoleCoord object.
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
String representation of this object.
toString in class java.lang.Object
|
Copyright © 2010 Yifan Lu | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||