public class TextTooltipRenderer extends Object implements ITooltipRenderer
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
lastBounds |
protected IntegerCoord2d |
screenLocation |
protected Coord3d |
target |
protected String |
text |
Constructor and Description |
---|
TextTooltipRenderer(String text,
IntegerCoord2d screen,
Coord3d target) |
Modifier and Type | Method and Description |
---|---|
void |
render(Graphics2D g2d) |
void |
updateScreenPosition(IntegerCoord2d position) |
void |
updateTargetCoordinate(Coord3d target) |
protected Coord3d target
protected IntegerCoord2d screenLocation
protected Rectangle lastBounds
protected String text
public TextTooltipRenderer(String text, IntegerCoord2d screen, Coord3d target)
public void render(Graphics2D g2d)
render
in interface ITooltipRenderer
public void updateScreenPosition(IntegerCoord2d position)
updateScreenPosition
in interface ITooltipRenderer
public void updateTargetCoordinate(Coord3d target)
Copyright © 2016. All rights reserved.