public interface ImageRenderer
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
The height of the area this renderer uses.
|
int |
getWidth()
The width of the area this renderer uses.
|
void |
render(int mouseX,
int mouseY)
Render the image, with specified maximum width.
|
int getWidth()
render(int, int), to correctly align the image horizontally.int getHeight()
render(int, int), as well as to know where to resume rendering
other content below the image.void render(int mouseX,
int mouseY)
mouseX - the X position of the mouse relative to the element.mouseY - the Y position of the mouse relative to the element.