Class Cursor


  • public class Cursor
    extends Resource
    Instances of this class manage operating system resources that specify the appearance of the on-screen pointer.

    To obtain cursors, it is recommended to use one of the getSystemCursor method from class Display.

    Styles:
    CURSOR_ARROW, CURSOR_WAIT, CURSOR_CROSS, CURSOR_APPSTARTING, CURSOR_HELP, CURSOR_SIZEALL, CURSOR_SIZENESW, CURSOR_SIZENS, CURSOR_SIZENWSE, CURSOR_SIZEWE, CURSOR_SIZEN, CURSOR_SIZES, CURSOR_SIZEE, CURSOR_SIZEW, CURSOR_SIZENE, CURSOR_SIZESE, CURSOR_SIZESW, CURSOR_SIZENW, CURSOR_UPARROW, CURSOR_IBEAM, CURSOR_NO, CURSOR_HAND

    Note: Only one of the above styles may be specified.

    Since:
    1.2
    • Constructor Summary

      Constructors 
      Constructor Description
      Cursor​(Device device, int style)
      Constructs a new cursor given a device and a style constant describing the desired cursor appearance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)
      Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
      int hashCode()
      Returns an integer hash code for the receiver.
      java.lang.String toString()
      Returns a string containing a concise, human-readable description of the receiver.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait