de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d
Class TooltipScoreVisualization<NV extends NumberVector<NV,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization<NV>
de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.AbstractTooltipVisualization<NV>
de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.TooltipScoreVisualization<NV>
- All Implemented Interfaces:
- DataStoreListener, ResultListener, ContextChangeListener, Visualization, EventListener
public class TooltipScoreVisualization<NV extends NumberVector<NV,?>>
- extends AbstractTooltipVisualization<NV>
Generates a SVG-Element containing Tooltips. Tooltips remain invisible until
their corresponding Marker is touched by the cursor and stay visible as long
as the cursor lingers on the marker.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- A short name characterizing this Visualizer.
- See Also:
- Constant Field Values
nf
NumberFormat nf
- Number format.
result
private Relation<? extends Number> result
- Number value to visualize
fontsize
private double fontsize
- Font size to use.
TooltipScoreVisualization
public TooltipScoreVisualization(VisualizationTask task,
NumberFormat nf)
- Constructor
- Parameters:
task
- Tasknf
- Number Format
makeTooltip
protected Element makeTooltip(DBID id,
double x,
double y,
double dotsize)
- Specified by:
makeTooltip
in class AbstractTooltipVisualization<NV extends NumberVector<NV,?>>
setupCSS
protected void setupCSS(SVGPlot svgp)
- Registers the Tooltip-CSS-Class at a SVGPlot.
- Specified by:
setupCSS
in class AbstractTooltipVisualization<NV extends NumberVector<NV,?>>
- Parameters:
svgp
- the SVGPlot to register the Tooltip-CSS-Class.