public class JmeCursor
extends java.lang.Object
Constructor and Description |
---|
JmeCursor() |
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Queries the cursor's height.
|
java.nio.IntBuffer |
getImagesData()
Queries the cursor's images' data.
|
java.nio.IntBuffer |
getImagesDelay()
Queries the cursor's delay for each frame.
|
int |
getNumImages()
Queries the number of images contained in the cursor.
|
int |
getWidth()
Queries the cursor's width.
|
int |
getXHotSpot()
Queries the cursor's X hotspot coordinate.
|
int |
getYHotSpot()
Queries the cursor's Y hotspot coordinate.
|
void |
setHeight(int height)
Sets the cursor's height.
|
void |
setImagesData(java.nio.IntBuffer imagesData)
Sets the cursor's image(s) data.
|
void |
setImagesDelay(java.nio.IntBuffer imagesDelay)
Sets the cursor image delay for each frame of an animated cursor.
|
void |
setNumImages(int numImages)
Sets the number of images in the cursor.
|
void |
setWidth(int width)
Sets the cursor's width.
|
void |
setxHotSpot(int xHotSpot)
Sets the cursor's X coordinate for its hotspot.
|
void |
setyHotSpot(int yHotSpot)
Sets the cursor's Y axis coordinate for its hotspot.
|
public int getHeight()
public java.nio.IntBuffer getImagesData()
IntBuffer
containing the cursor's image(s) data in
sequence.public java.nio.IntBuffer getImagesDelay()
IntBuffer
containing the cursor's delay in
sequence. The delay is expressed in milliseconds.public int getNumImages()
public int getWidth()
public int getXHotSpot()
public int getYHotSpot()
public void setHeight(int height)
height
- The height of the cursor in pixels. Note that all images
in a cursor have to be the same size.public void setImagesData(java.nio.IntBuffer imagesData)
IntBuffer
if more tha one image is contained in the
cursor.imagesData
- the cursor's image(s) data. Each image data should be consecutively
stored in the IntBuffer
if more than one image is contained in the
cursor.public void setImagesDelay(java.nio.IntBuffer imagesDelay)
imagesDelay
- the desired delay amount for each framepublic void setNumImages(int numImages)
numImages
- number of images in the cursor.public void setWidth(int width)
width
- The width of the cursor in pixels. Note that all images
in a cursor have to be the same size.public void setxHotSpot(int xHotSpot)
xHotSpot
- the cursor's X axis coordinate for its hotspot. Note that
the coordinate system is the same as OpenGL. 0, 0 being lower left.public void setyHotSpot(int yHotSpot)
yHotSpot
- the cursor's Y axis coordinate for its hotspot. Note that
the coordinate system is the same as OpenGL. 0, 0 being lower left.