com.jmex.bui
Class BCursor

java.lang.Object
  extended by com.jmex.bui.BCursor

public class BCursor
extends java.lang.Object

Contains a cursor.


Field Summary
protected  org.lwjgl.input.Cursor _cursor
           
protected  int _hx
           
protected  int _hy
           
protected  java.awt.image.BufferedImage _image
           
 
Constructor Summary
BCursor(java.awt.image.BufferedImage image, int hx, int hy)
           
BCursor(org.lwjgl.input.Cursor cursor)
           
 
Method Summary
static org.lwjgl.input.Cursor createCursor(java.awt.image.BufferedImage image, int hx, int hy)
          Create a cursor from a BufferedImage.
 org.lwjgl.input.Cursor getCursor()
          Retrieve the cursor.
 void setCursor(java.awt.image.BufferedImage image, int hx, int hy)
          Create a cursor from the image with the supplied hotspot and use it.
 void setCursor(org.lwjgl.input.Cursor cursor)
          Set the cursor to the specified value.
 void show()
          Display this cursor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_cursor

protected org.lwjgl.input.Cursor _cursor

_image

protected java.awt.image.BufferedImage _image

_hx

protected int _hx

_hy

protected int _hy
Constructor Detail

BCursor

public BCursor(org.lwjgl.input.Cursor cursor)

BCursor

public BCursor(java.awt.image.BufferedImage image,
               int hx,
               int hy)
Method Detail

createCursor

public static org.lwjgl.input.Cursor createCursor(java.awt.image.BufferedImage image,
                                                  int hx,
                                                  int hy)
Create a cursor from a BufferedImage.


setCursor

public void setCursor(org.lwjgl.input.Cursor cursor)
Set the cursor to the specified value.


setCursor

public void setCursor(java.awt.image.BufferedImage image,
                      int hx,
                      int hy)
Create a cursor from the image with the supplied hotspot and use it.


getCursor

public org.lwjgl.input.Cursor getCursor()
Retrieve the cursor.


show

public void show()
Display this cursor.



Copyright © 2011 Michael Bayne. All Rights Reserved.