|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jcurzez.Cursor
Every window
has a cursor.
The cursor can be moved and hidden.
Pen
Field Summary | |
static int |
INVISIBLE
Cursor is not visible. |
static int |
NORMAL
Cursor is visible. |
(package private) Rectangle |
rectangle
The rectangle this cursor is attached to. |
static int |
VERY_VISIBLE
Cursor is very visible. |
private int |
visibility
visibility of the cursor. |
(package private) int |
x
x coordinate of the cursor. |
(package private) int |
y
y coordinate of the cursor. |
Constructor Summary | |
Cursor(Rectangle rectangle,
int initialX,
int initialY)
Constructs a new cursor for specified rectangle ,
with initial position (initialX, initialY) . |
Method Summary | |
int |
getCursorVisibility()
Retrieves the cursor visibility. |
int |
getX()
Retrieves the current X coordinate of the cursor. |
int |
getY()
Retrieves the current Y coordinate of the cursor. |
void |
setCursorVisibility(int visible)
Changes cursor visibility. |
void |
setX(int x)
Changes the current X coordinate of the cursor. |
void |
setXY(int x,
int y)
Changes both the current X and current Y coordinates of the cursor. |
void |
setY(int y)
Changes the current Y coordinate of the cursor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
final Rectangle rectangle
private int visibility
int x
int y
public static final int INVISIBLE
public static final int NORMAL
public static final int VERY_VISIBLE
Constructor Detail |
public Cursor(Rectangle rectangle, int initialX, int initialY)
rectangle
,
with initial position (initialX, initialY)
.
rectangle
- the rectangle this cursor is attached to.initialX
- the initial x position of the cursor.initialY
- the initial y position of the cursor.Method Detail |
public int getX()
public int getY()
public void setX(int x)
x
- the new X coordinate of the cursor.InconsistentCoordinateException
- if
x
is not consistent.public void setY(int y)
y
- the new Y coordinate of the cursor.InconsistentCoordinateException
- if
y
is not consistent.public void setXY(int x, int y)
x
- the new X coordinate of the cursor.y
- the new Y coordinate of the cursor.InconsistentCoordinateException
- if
x
or y
is not consistent.public void setCursorVisibility(int visible)
visible
- the cursor visibility.java.lang.IllegalArgumentException
- if
visible
is not consistent.public int getCursorVisibility()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |