public abstract class AbstractInteractiveImageRenderer extends java.lang.Object implements InteractiveImageRenderer
InteractiveImageRenderer
.Constructor and Description |
---|
AbstractInteractiveImageRenderer() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTooltip(java.lang.String tooltip)
Get a custom tooltip for this image renderer.
|
boolean |
onMouseClick(int mouseX,
int mouseY)
Called when the mouse is clicked while over this image renderer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeight, getWidth, render
public java.lang.String getTooltip(java.lang.String tooltip)
InteractiveImageRenderer
getTooltip
in interface InteractiveImageRenderer
tooltip
- the original tooltip of the element.public boolean onMouseClick(int mouseX, int mouseY)
InteractiveImageRenderer
onMouseClick
in interface InteractiveImageRenderer
mouseX
- the X coordinate of the mouse, relative to the element.mouseY
- the Y coordinate of the mouse, relative to the element.