Class InteractiveTooltip
- java.lang.Object
-
- org.jzy3d.plot3d.rendering.tooltips.InteractiveTooltip
-
- All Implemented Interfaces:
IInteractiveTooltipRenderer
,ITooltipRenderer
public class InteractiveTooltip extends Object implements IInteractiveTooltipRenderer
-
-
Field Summary
Fields Modifier and Type Field Description protected IAction
action
protected String
content
protected Rectangle
lastBounds
protected IntegerCoord2d
screenLocation
protected Coord3d
target
-
Constructor Summary
Constructors Constructor Description InteractiveTooltip(Coord3d target, String content, IntegerCoord2d screenLocation)
InteractiveTooltip(Coord3d target, String content, IntegerCoord2d screenLocation, IAction action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rectangle
getLastBounds()
Return screen bounds of the tooltip rectangle used at last call to render()void
render(Graphics2D g2d)
void
updateScreenPosition(IntegerCoord2d position)
-
-
-
Field Detail
-
target
protected Coord3d target
-
content
protected String content
-
action
protected IAction action
-
screenLocation
protected IntegerCoord2d screenLocation
-
lastBounds
protected Rectangle lastBounds
-
-
Constructor Detail
-
InteractiveTooltip
public InteractiveTooltip(Coord3d target, String content, IntegerCoord2d screenLocation)
-
InteractiveTooltip
public InteractiveTooltip(Coord3d target, String content, IntegerCoord2d screenLocation, IAction action)
-
-
Method Detail
-
getLastBounds
public Rectangle getLastBounds()
Return screen bounds of the tooltip rectangle used at last call to render()- Specified by:
getLastBounds
in interfaceIInteractiveTooltipRenderer
-
render
public void render(Graphics2D g2d)
- Specified by:
render
in interfaceITooltipRenderer
-
updateScreenPosition
public void updateScreenPosition(IntegerCoord2d position)
- Specified by:
updateScreenPosition
in interfaceITooltipRenderer
-
-