public final class MouseCursor extends java.lang.Object implements IRenderable
Mouse in the LITIengine.Mouse| Constructor and Description |
|---|
MouseCursor() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Image |
getImage() |
int |
getOffsetX() |
int |
getOffsetY() |
java.awt.geom.AffineTransform |
getTransform() |
void |
hideDefaultCursor() |
boolean |
isVisible()
Determines whether the cursor is currently visible (and will thereby be rendered),
by checking the
visible flag and whether the specified cursor image is null. |
void |
render(java.awt.Graphics2D g)
Renders the visual contents of this instance onto the provided graphics context.
|
void |
set(java.awt.Image img) |
void |
set(java.awt.Image img,
Align hAlign,
Valign vAlign) |
void |
set(java.awt.Image img,
int offsetX,
int offsetY) |
void |
setOffset(int x,
int y) |
void |
setOffsetX(int cursorOffsetX) |
void |
setOffsetY(int cursorOffsetY) |
void |
setTransform(java.awt.geom.AffineTransform transform) |
void |
setVisible(boolean visible) |
void |
showDefaultCursor() |
public void render(java.awt.Graphics2D g)
IRenderable
If an Entity implements this interface, this method will be called right after the entity was rendered from the environment.
Allowing for a custom rendering mechanism.
This interface can be implemented in general by anything that should be rendered to the game's screen.
render in interface IRenderableg - The current graphics object onto which this instance will render its visual contents.RenderEngine.renderEntity(Graphics2D, de.gurkenlabs.litiengine.entities.IEntity)public java.awt.Image getImage()
public java.awt.geom.AffineTransform getTransform()
public int getOffsetX()
public int getOffsetY()
public boolean isVisible()
visible flag and whether the specified cursor image is null.public void set(java.awt.Image img)
public void set(java.awt.Image img,
int offsetX,
int offsetY)
public void setOffset(int x,
int y)
public void setOffsetX(int cursorOffsetX)
public void setOffsetY(int cursorOffsetY)
public void setTransform(java.awt.geom.AffineTransform transform)
public void setVisible(boolean visible)
public void showDefaultCursor()
public void hideDefaultCursor()