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 String
getTooltipAt
(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 String
getTooltipAt
(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
- thex
coordinatey
- they
coordinate- 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
- theindex
of the location- Returns:
- the tooltip
-