Package com.jme3.cursors.plugins
Class JmeCursor
java.lang.Object
com.jme3.cursors.plugins.JmeCursor
A Jme representation of the LWJGL Cursor class.
 Created Jun 6, 2012 12:12:38 PM
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintQueries the cursor's height.Queries the cursor's images' data.Queries the cursor's delay for each frame.intQueries the number of images contained in the cursor.intgetWidth()Queries the cursor's width.intQueries the cursor's X hotspot coordinate.intQueries the cursor's Y hotspot coordinate.voidsetHeight(int height) Sets the cursor's height.voidsetImagesData(IntBuffer imagesData) Sets the cursor's image(s) data.voidsetImagesDelay(IntBuffer imagesDelay) Sets the cursor image delay for each frame of an animated cursor.voidsetNumImages(int numImages) Sets the number of images in the cursor.voidsetWidth(int width) Sets the cursor's width.voidsetxHotSpot(int xHotSpot) Sets the cursor's X coordinate for its hotspot.voidsetyHotSpot(int yHotSpot) Sets the cursor's Y axis coordinate for its hotspot.
- 
Constructor Details- 
JmeCursorpublic JmeCursor()
 
- 
- 
Method Details- 
getHeightpublic int getHeight()Queries the cursor's height. Note that the coordinate system is the same as OpenGL. 0, 0 being lower left.- Returns:
- the height in pixel.
 
- 
getImagesDataQueries the cursor's images' data.- Returns:
- An IntBuffercontaining the cursor's image(s) data in sequence.
 
- 
getImagesDelayQueries the cursor's delay for each frame.- Returns:
- An IntBuffercontaining the cursor's delay in sequence. The delay is expressed in milliseconds.
 
- 
getNumImagespublic int getNumImages()Queries the number of images contained in the cursor. Static cursors should contain only 1 image.- Returns:
- The number of image(s) composing the cursor. 1 if the cursor is static.
 
- 
getWidthpublic int getWidth()Queries the cursor's width. Note that the coordinate system is the same as OpenGL. 0, 0 being lower left.- Returns:
- the width of the cursor in pixel.
 
- 
getXHotSpotpublic int getXHotSpot()Queries the cursor's X hotspot coordinate. Note that the coordinate system is the same as OpenGL. 0, 0 being lower left.- Returns:
- the coordinate on the cursor's X axis where the hotspot is located.
 
- 
getYHotSpotpublic int getYHotSpot()Queries the cursor's Y hotspot coordinate. Note that the coordinate system is the same as OpenGL. 0, 0 being lower left.- Returns:
- the coordinate on the cursor's Y axis where the hotspot is located.
 
- 
setHeightpublic void setHeight(int height) Sets the cursor's height.- Parameters:
- height- The height of the cursor in pixels. Note that all images in a cursor have to be the same size.
 
- 
setImagesDataSets the cursor's image(s) data. Each image data should be consecutively stored in theIntBufferif more tha one image is contained in the cursor.- Parameters:
- imagesData- the cursor's image(s) data. Each image data should be consecutively stored in the- IntBufferif more than one image is contained in the cursor.
 
- 
setImagesDelaySets the cursor image delay for each frame of an animated cursor. If the cursor has no animation and consist of only 1 image, null is expected.- Parameters:
- imagesDelay- the desired delay amount for each frame
 
- 
setNumImagespublic void setNumImages(int numImages) Sets the number of images in the cursor.- Parameters:
- numImages- number of images in the cursor.
 
- 
setWidthpublic void setWidth(int width) Sets the cursor's width.- Parameters:
- width- The width of the cursor in pixels. Note that all images in a cursor have to be the same size.
 
- 
setxHotSpotpublic void setxHotSpot(int xHotSpot) Sets the cursor's X coordinate for its hotspot.- Parameters:
- 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.
 
- 
setyHotSpotpublic void setyHotSpot(int yHotSpot) Sets the cursor's Y axis coordinate for its hotspot.- Parameters:
- 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.
 
 
-