org.jzy3d.plot3d.rendering.tooltips
Class InteractiveTooltip

java.lang.Object
  extended by org.jzy3d.plot3d.rendering.tooltips.InteractiveTooltip
All Implemented Interfaces:
IInteractiveTooltipRenderer, ITooltipRenderer

public class InteractiveTooltip
extends Object
implements IInteractiveTooltipRenderer


Field Summary
protected  IAction action
           
protected  String content
           
protected  Rectangle lastBounds
           
protected  IntegerCoord2d screenLocation
           
protected  Coord3d target
           
 
Constructor Summary
InteractiveTooltip(Coord3d target, String content, IntegerCoord2d screenLocation)
           
InteractiveTooltip(Coord3d target, String content, IntegerCoord2d screenLocation, IAction action)
           
 
Method Summary
 Rectangle getLastBounds()
          Return screen bounds of the tooltip rectangle used at last call to render()
 void render(Graphics2D g2d)
           
 void updateScreenPosition(IntegerCoord2d position)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface IInteractiveTooltipRenderer

render

public void render(Graphics2D g2d)
Specified by:
render in interface ITooltipRenderer

updateScreenPosition

public void updateScreenPosition(IntegerCoord2d position)
Specified by:
updateScreenPosition in interface ITooltipRenderer