|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wrq.vhi.script.api.CursorPosition
public class CursorPosition
An immutable class that represents a cursor position on a screen.
Constructor Summary | |
---|---|
CursorPosition(int offset,
int screenHeight,
int screenWidth)
Constructs a CursorPosition object from an offset and screen height and width. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Compares one cursor position to another. |
int |
getColumn()
Gets the one-based cursor column. |
int |
getOffset()
Gets the zero-based linear offset of the cursor. |
int |
getRow()
Gets the one-based cursor row. |
int |
getScreenHeight()
Gets the screen height in rows. |
int |
getScreenWidth()
Gets the screen width in columns. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CursorPosition(int offset, int screenHeight, int screenWidth)
offset
- linear offsetscreenHeight
- screen heightscreenWidth
- screen widthMethod Detail |
---|
public int getOffset()
public int getRow()
public int getColumn()
public int getScreenHeight()
public int getScreenWidth()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
-
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |