Package org.evoludo.simulator.views
Interface BasicTooltipProvider
- All Known Subinterfaces:
TooltipProvider,TooltipProvider.Index,TooltipProvider.Parametric,TooltipProvider.Simplex
- All Known Implementing Classes:
ATBT.ATBTMap,Centipede.CentiMap,Distribution,EcoPGG.EcoPGGMap,GenericPop,HistoGraph,LineGraph,ParaGraph.TraitMap,Pop2D,Pop3D,S3Map
public interface BasicTooltipProvider
Graphs that provide basic tooltips should implement this interface. The
tooltip string may include HTML formatting.
Important
The implementation must be agnostic of GWT or JRE implementations and cannot take advantage of view specific features.- Author:
- Christoph Hauert
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetTooltipAt(double x, double y) Get the tooltip at the scaled coordinates(x,y)with the origin in the lower left corner of the graph.default StringgetTooltipAt(int index) Get the tooltip for the location with indexindex.
-
Method Details
-
getTooltipAt
Get the tooltip at the scaled coordinates(x,y)with the origin in the lower left corner of the graph.- Parameters:
x- thexcoordinatey- theycoordinate- Returns:
- the tooltip
-
getTooltipAt
Get the tooltip for the location with indexindex. The index typically refers to an individual node but may equally refer to a location on a lattice for PDE models or trait distributions.- Parameters:
index- theindexof the location- Returns:
- the tooltip
-