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, svgp, task
Constructor and Description |
---|
Instance(VisualizerContext context,
VisualizationTask task,
VisualizationPlot plot,
double width,
double height,
Projection proj)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.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.
|
fullRedraw, handleHoverEvent, toggleTooltip
setupCanvas, setupCanvas, visualizationChanged
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contentChanged
private Relation<?> result
private double fontsize
public Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
context
- Visualizer contexttask
- Taskplot
- Plotwidth
- Widthheight
- Heightproj
- Projectionprotected org.w3c.dom.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.Copyright © 2019 ELKI Development Team. License information.