public class TooltipStringVisualization.Instance extends AbstractTooltipVisualization
Modifier and Type | Field and Description |
---|---|
private double |
fontsize
Font size to use.
|
private Relation<?> |
result
Number value to visualize
|
hoverer, TOOLTIP_AREA, TOOLTIP_HIDDEN, TOOLTIP_STICKY, TOOLTIP_VISIBLE
proj, rel, sample
context, layer, pendingRedraw, svgp, task
Constructor and Description |
---|
TooltipStringVisualization.Instance(VisualizationTask task)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Element |
makeTooltip(DBIDRef id,
double x,
double y,
double dotsize)
Make a tooltip Element for this id.
|
protected void |
setupCSS(SVGPlot svgp)
Registers the Tooltip-CSS-Class at a SVGPlot.
|
handleHoverEvent, redraw, resultChanged, toggleTooltip
setupCanvas
contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultRemoved, synchronizedRedraw
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contentChanged
private Relation<?> result
private double fontsize
public TooltipStringVisualization.Instance(VisualizationTask task)
task
- Taskprotected Element makeTooltip(DBIDRef id, double x, double y, double dotsize)
AbstractTooltipVisualization
makeTooltip
in class AbstractTooltipVisualization
id
- Id to make a tooltip forx
- X positiony
- Y positiondotsize
- Size of a dotprotected void setupCSS(SVGPlot svgp)
setupCSS
in class AbstractTooltipVisualization
svgp
- the SVGPlot to register the Tooltip-CSS-Class.