|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jniwrapper.Parameter
com.jniwrapper.Pointer.Void
com.jniwrapper.win32.Handle
com.jniwrapper.win32.gdi.GdiObject
com.jniwrapper.win32.gdi.Cursor
public class Cursor
This class provides various methods for working with the cursor.
| Nested Class Summary | |
|---|---|
static class |
Cursor.CursorKind
This enumeration (IDC_*) specifies various types of the cursor. |
static class |
Cursor.CursorPositionCode
CursorPositionCode class represents the enumeration of the mouse position codes. |
| Nested classes/interfaces inherited from class com.jniwrapper.win32.gdi.GdiObject |
|---|
GdiObject.ImageLoadParameters, GdiObject.ImageType, GdiObject.Type |
| Field Summary |
|---|
| Fields inherited from class com.jniwrapper.win32.gdi.GdiObject |
|---|
GDI_ERROR, HGDI_ERROR |
| Fields inherited from class com.jniwrapper.win32.Handle |
|---|
INFINITE_TIMEOUT, INVALID_HANDLE_VALUE, STATUS_ABANDONED_WAIT_0, STATUS_TIMEOUT, STATUS_WAIT_0 |
| Fields inherited from class com.jniwrapper.Parameter |
|---|
LICENSE_TYPE, V |
| Constructor Summary | |
|---|---|
Cursor()
|
|
Cursor(java.awt.Cursor cursor)
Creates an instance of the native cursor from an AWT cursor. |
|
Cursor(long value)
|
|
| Method Summary | |
|---|---|
static Point |
getCursorPosition()
Returns the cursor position, in screen coordinates. |
protected void |
loadCursor(Cursor.CursorKind cursor)
Loads the cursor of a specified type. |
void |
setCursor(java.awt.Cursor cursor)
Sets the cursor by the specified AWT cursor. |
static boolean |
setCursorPosition(int x,
int y)
Determines the cursor position, in screen coordinates. |
| Methods inherited from class com.jniwrapper.win32.gdi.GdiObject |
|---|
deleteObject, getObject, getObjectType |
| Methods inherited from class com.jniwrapper.win32.Handle |
|---|
clone, closeHandle, equals, waitFor, waitFor |
| Methods inherited from class com.jniwrapper.Pointer.Void |
|---|
asFunction, asFunction, asTypedPointer, castTo, castTo, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, write |
| Methods inherited from class com.jniwrapper.Parameter |
|---|
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Cursor()
public Cursor(long value)
public Cursor(java.awt.Cursor cursor)
cursor - an AWT cursor| Method Detail |
|---|
public static Point getCursorPosition()
public static boolean setCursorPosition(int x,
int y)
x - horizontal coordinate of the cursory - vertical coordinate of the cursor
protected void loadCursor(Cursor.CursorKind cursor)
cursor - type of the cursorpublic void setCursor(java.awt.Cursor cursor)
cursor - AWT cursor to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||