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, Pop2D, Pop3D, S3Map, TraitMap
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringTable cell bullet used to highlight categorical values in tooltips.static final StringTable cell separator for tooltips.static final StringTable cell separator for tooltips with color.static final StringTable end for tooltips.static final StringTable row end for tooltips.static final StringTable row start for tooltips.static final StringTable row start for tooltips, right aligned with color.static final StringTable row start for tooltips, right aligned.static final StringTable row separator for tooltips.static final StringTable style for tooltips. -
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.
-
Field Details
-
TABLE_STYLE
-
TABLE_ROW_END
-
TABLE_END
-
TABLE_SEPARATOR
-
TABLE_ROW_START
-
TABLE_ROW_START_RIGHT
-
TABLE_ROW_START_COLOR
Table row start for tooltips, right aligned with color.- See Also:
-
TABLE_CELL_NEXT
-
TABLE_CELL_NEXT_COLOR
-
TABLE_CELL_BULLET
Table cell bullet used to highlight categorical values in tooltips.- See Also:
-
-
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
-