@Environment(value=CLIENT) 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, waitgetHeight, getWidth, renderpublic java.lang.String getTooltip(java.lang.String tooltip)
InteractiveImageRendererThis can be used to override the original tooltip of an image.
getTooltip in interface InteractiveImageRenderertooltip - the original tooltip of the element.public boolean onMouseClick(int mouseX,
int mouseY)
InteractiveImageRendererThis only fires for left-clicks, because right-clicks are reserved for navigating back in the manual.
If this returns false and the element is a link, the link will be followed. If it returns true, it will not.
onMouseClick in interface InteractiveImageRenderermouseX - the X coordinate of the mouse, relative to the element.mouseY - the Y coordinate of the mouse, relative to the element.