com.threerings.opengl.gui
Class Cursor

java.lang.Object
  extended by com.threerings.opengl.gui.Cursor

public class Cursor
extends Object

Contains a cursor.


Field Summary
protected  Cursor _awtCursor
           
protected  int _hx
           
protected  int _hy
           
protected  BufferedImage _image
           
protected  Cursor _lwjglCursor
           
 
Constructor Summary
Cursor(BufferedImage image, int hx, int hy)
          Creates a new cursor.
 
Method Summary
protected  Cursor createAWTCursor(Toolkit toolkit)
          Creates an AWT cursor from the configured image and hotspot.
protected  Cursor createLWJGLCursor()
          Creates an LWJGL cursor from the configured image and hotspot.
 Cursor getAWTCursor(Toolkit toolkit)
          Retrieves the lazily-initialized AWT cursor using the supplied toolkit.
 Cursor getLWJGLCursor()
          Retrieve the lazily-initialized LWJGL cursor.
 void show()
          Display the LWJGL cursor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_image

protected BufferedImage _image

_hx

protected int _hx

_hy

protected int _hy

_lwjglCursor

protected Cursor _lwjglCursor

_awtCursor

protected Cursor _awtCursor
Constructor Detail

Cursor

public Cursor(BufferedImage image,
              int hx,
              int hy)
Creates a new cursor.

Method Detail

getLWJGLCursor

public Cursor getLWJGLCursor()
Retrieve the lazily-initialized LWJGL cursor.


getAWTCursor

public Cursor getAWTCursor(Toolkit toolkit)
Retrieves the lazily-initialized AWT cursor using the supplied toolkit.


show

public void show()
Display the LWJGL cursor.


createLWJGLCursor

protected Cursor createLWJGLCursor()
Creates an LWJGL cursor from the configured image and hotspot.


createAWTCursor

protected Cursor createAWTCursor(Toolkit toolkit)
Creates an AWT cursor from the configured image and hotspot.