public class CoordinateTooltipRenderer extends Object implements ITooltipRenderer
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
lastBounds |
protected boolean |
newLineAfterEachDim |
protected boolean |
renderX |
protected boolean |
renderY |
protected boolean |
renderZ |
protected IntegerCoord2d |
screenLocation |
protected Coord3d |
target |
protected String |
xUnit |
protected String |
yUnit |
protected String |
zUnit |
Constructor and Description |
---|
CoordinateTooltipRenderer() |
CoordinateTooltipRenderer(IntegerCoord2d screen) |
CoordinateTooltipRenderer(IntegerCoord2d screen,
Coord3d target) |
CoordinateTooltipRenderer(String xUnit,
String yUnit,
String zUnit) |
CoordinateTooltipRenderer(String xUnit,
String yUnit,
String zUnit,
boolean renderX,
boolean renderY,
boolean renderZ,
IntegerCoord2d screen,
Coord3d target) |
CoordinateTooltipRenderer(String xUnit,
String yUnit,
String zUnit,
boolean renderX,
boolean renderY,
boolean renderZ,
IntegerCoord2d screen,
Coord3d target,
boolean newLineAfterEachDim) |
CoordinateTooltipRenderer(String xUnit,
String yUnit,
String zUnit,
IntegerCoord2d screen) |
CoordinateTooltipRenderer(String xUnit,
String yUnit,
String zUnit,
IntegerCoord2d screen,
Coord3d target) |
CoordinateTooltipRenderer(String xUnit,
String yUnit,
String zUnit,
IntegerCoord2d screen,
Coord3d target,
boolean newLineAfterEachDim) |
Modifier and Type | Method and Description |
---|---|
String |
format(Coord3d c) |
void |
render(Graphics2D g2d) |
void |
updateScreenPosition(IntegerCoord2d position) |
void |
updateTargetCoordinate(Coord3d target) |
protected String xUnit
protected String yUnit
protected String zUnit
protected boolean renderX
protected boolean renderY
protected boolean renderZ
protected Coord3d target
protected IntegerCoord2d screenLocation
protected Rectangle lastBounds
protected boolean newLineAfterEachDim
public CoordinateTooltipRenderer()
public CoordinateTooltipRenderer(IntegerCoord2d screen)
public CoordinateTooltipRenderer(IntegerCoord2d screen, Coord3d target)
public CoordinateTooltipRenderer(String xUnit, String yUnit, String zUnit)
public CoordinateTooltipRenderer(String xUnit, String yUnit, String zUnit, IntegerCoord2d screen)
public CoordinateTooltipRenderer(String xUnit, String yUnit, String zUnit, IntegerCoord2d screen, Coord3d target)
public CoordinateTooltipRenderer(String xUnit, String yUnit, String zUnit, IntegerCoord2d screen, Coord3d target, boolean newLineAfterEachDim)
public CoordinateTooltipRenderer(String xUnit, String yUnit, String zUnit, boolean renderX, boolean renderY, boolean renderZ, IntegerCoord2d screen, Coord3d target)
public CoordinateTooltipRenderer(String xUnit, String yUnit, String zUnit, boolean renderX, boolean renderY, boolean renderZ, IntegerCoord2d screen, Coord3d target, boolean newLineAfterEachDim)
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.