Methods Summary |
---|
public abstract NativeCursor | createCursor(int type)Creates and returns NativeCursor for predefined
Java Cursor
|
public abstract NativeCursor | createCustomCursor(java.awt.Image img, int xHotSpot, int yHotSpot)Creates and returns custom NativeCursor from image
|
public abstract java.awt.Dimension | getBestCursorSize(int prefWidth, int prefHeight)Query native system for the best cursor size closest to specified dimensions
|
public NativeCursor | getCursor(int type)Gets a cached instance of system(predefined) native cursor
or creates a new one. This is a platform-independent method.
if (type >= 0 && type < systemCursors.length) {
NativeCursor cursor = systemCursors[type];
if (cursor == null) {
cursor = createCursor(type);
systemCursors[type] = cursor;
}
return cursor;
}
return null;
|
public abstract int | getMaximumCursorColors()
|