Class CursorImage provides features for creating custom cursors.
More...
Class CursorImage provides features for creating custom cursors.
It can also be used with several standards types of cursor images (Arrow, IBeam, Crosshair, Hand and etc.).
◆ CursorImage() [1/3]
Constructor for creating cursor with standards types of cursor images (Arrow, IBeam, Crosshair, Hand and etc.).
- Parameters
-
type | Cursor image as SpaceVIL.Core.EmbeddedCursor enum. |
◆ CursorImage() [2/3]
com.spvessel.spacevil.CursorImage.CursorImage |
( |
BufferedImage |
bitmap | ) |
|
Constructor for creating cursor with custom bitmap image.
- Parameters
-
bitmap | Cursor image as java.awt.image.BufferedImage. |
◆ CursorImage() [3/3]
com.spvessel.spacevil.CursorImage.CursorImage |
( |
BufferedImage |
bitmap, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
Constructor for creating cursor with custom bitmap image with the specified size.
- Parameters
-
bitmap | Cursor image as java.awt.image.BufferedImage. |
width | Desired width. |
height | Desired height. |
◆ getCursorHeight()
int com.spvessel.spacevil.CursorImage.getCursorHeight |
( |
| ) |
|
Getting cursor image height.
- Returns
- The height of the image.
◆ getCursorWidth()
int com.spvessel.spacevil.CursorImage.getCursorWidth |
( |
| ) |
|
Getting cursor image width.
- Returns
- The width of the image.
◆ setImage()
void com.spvessel.spacevil.CursorImage.setImage |
( |
BufferedImage |
image | ) |
|
Setting new image for cursor.
- Parameters
-
image | Cursor image as java.awt.image.BufferedImage. |
The documentation for this class was generated from the following file: