public class InteractiveTooltip extends Object implements IInteractiveTooltipRenderer
Modifier and Type | Field and Description |
---|---|
protected IAction |
action |
protected String |
content |
protected Rectangle |
lastBounds |
protected IntegerCoord2d |
screenLocation |
protected Coord3d |
target |
Constructor and Description |
---|
InteractiveTooltip(Coord3d target,
String content,
IntegerCoord2d screenLocation) |
InteractiveTooltip(Coord3d target,
String content,
IntegerCoord2d screenLocation,
IAction action) |
Modifier and Type | Method and Description |
---|---|
Rectangle |
getLastBounds()
Return screen bounds of the tooltip rectangle used at last call to render()
|
void |
render(Graphics2D g2d) |
void |
updateScreenPosition(IntegerCoord2d position) |
protected Coord3d target
protected String content
protected IAction action
protected IntegerCoord2d screenLocation
protected Rectangle lastBounds
public InteractiveTooltip(Coord3d target, String content, IntegerCoord2d screenLocation)
public InteractiveTooltip(Coord3d target, String content, IntegerCoord2d screenLocation, IAction action)
public Rectangle getLastBounds()
getLastBounds
in interface IInteractiveTooltipRenderer
public void render(Graphics2D g2d)
render
in interface ITooltipRenderer
public void updateScreenPosition(IntegerCoord2d position)
updateScreenPosition
in interface ITooltipRenderer
Copyright © 2016. All rights reserved.