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 IActionactionprotected Stringcontentprotected RectanglelastBoundsprotected IntegerCoord2dscreenLocationprotected Coord3dtarget
-
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 RectanglegetLastBounds()Return screen bounds of the tooltip rectangle used at last call to render()voidrender(Graphics2D g2d)voidupdateScreenPosition(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:
getLastBoundsin interfaceIInteractiveTooltipRenderer
-
render
public void render(Graphics2D g2d)
- Specified by:
renderin interfaceITooltipRenderer
-
updateScreenPosition
public void updateScreenPosition(IntegerCoord2d position)
- Specified by:
updateScreenPositionin interfaceITooltipRenderer
-
-