de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d
Class TooltipScoreVisualization<NV extends NumberVector<NV,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
      extended by de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization<NV>
          extended by de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.AbstractTooltipVisualization<NV>
              extended by 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.


Nested Class Summary
static class TooltipScoreVisualization.Factory<NV extends NumberVector<NV,?>>
          Factory for tooltip visualizers
 
Field Summary
private  double fontsize
          Font size to use.
static String NAME
          A short name characterizing this Visualizer.
(package private)  NumberFormat nf
          Number format.
private  Relation<? extends Number> result
          Number value to visualize
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.AbstractTooltipVisualization
TOOLTIP_AREA, TOOLTIP_HIDDEN, TOOLTIP_STICKY, TOOLTIP_VISIBLE
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization
proj, rel
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
context, layer, pendingRedraw, svgp, task
 
Constructor Summary
TooltipScoreVisualization(VisualizationTask task, NumberFormat nf)
          Constructor
 
Method Summary
protected  Element makeTooltip(DBID id, double x, double y, double dotsize)
           
protected  void setupCSS(SVGPlot svgp)
          Registers the Tooltip-CSS-Class at a SVGPlot.
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.AbstractTooltipVisualization
contentChanged, destroy, handleHoverEvent, redraw, toggleTooltip
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization
setupCanvas
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
contextChanged, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedraw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

TooltipScoreVisualization

public TooltipScoreVisualization(VisualizationTask task,
                                 NumberFormat nf)
Constructor

Parameters:
task - Task
nf - Number Format
Method Detail

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.

Release 0.4.0 (2011-09-20_1324)