| java.lang.Object org.apache.harmony.awt.wtk.CursorFactory
All known Subclasses: org.apache.harmony.awt.wtk.windows.WinCursorFactory, org.apache.harmony.awt.wtk.linux.LinuxCursorFactory,
CursorFactory | abstract public class CursorFactory (Code) | | Provides factory for NativeCursor
|
createCursor | abstract public NativeCursor createCursor(int type)(Code) | | Creates and returns NativeCursor for predefined
Java Cursor
Parameters: type - - type of predefined Java Cursor created cursor |
createCustomCursor | abstract public NativeCursor createCustomCursor(Image img, int xHotSpot, int yHotSpot)(Code) | | Creates and returns custom NativeCursor from image
Parameters: img - - image(source) to create cursor from Parameters: xHotSpot - - x coordinate of the hotspot relative to the source's origin Parameters: yHotSpot - - y coordinate of the hotspot relative to the source's origin created cursor |
getBestCursorSize | abstract public Dimension getBestCursorSize(int prefWidth, int prefHeight)(Code) | | Query native system for the best cursor size closest to specified dimensions
Parameters: prefWidth - - preferred width Parameters: prefHeight - - preferred height closest supported dimensions to ones specified |
getCursor | public NativeCursor getCursor(int type)(Code) | | Gets a cached instance of system(predefined) native cursor
or creates a new one. This is a platform-independent method.
Parameters: type - - type of predefined Java Cursor created cursor |
getMaximumCursorColors | abstract public int getMaximumCursorColors()(Code) | | maximum number of colors supported by custom cursors |
|
|