de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d
Class TooltipStringVisualization<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.TooltipStringVisualization<NV>
Type Parameters:
NV - Data type visualized.
All Implemented Interfaces:
DataStoreListener, ResultListener, ContextChangeListener, Visualization, EventListener

public class TooltipStringVisualization<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 TooltipStringVisualization.Factory<NV extends NumberVector<NV,?>>
          Factory
 
Field Summary
private  double fontsize
          Font size to use.
static String NAME_CLASS
          A short name characterizing this Visualizer.
static String NAME_EID
          A short name characterizing this Visualizer.
static String NAME_ID
          A short name characterizing this Visualizer.
static String NAME_LABEL
          A short name characterizing this Visualizer.
private  Relation<?> 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
TooltipStringVisualization(VisualizationTask task)
          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_ID

public static final String NAME_ID
A short name characterizing this Visualizer.

See Also:
Constant Field Values

NAME_LABEL

public static final String NAME_LABEL
A short name characterizing this Visualizer.

See Also:
Constant Field Values

NAME_CLASS

public static final String NAME_CLASS
A short name characterizing this Visualizer.

See Also:
Constant Field Values

NAME_EID

public static final String NAME_EID
A short name characterizing this Visualizer.

See Also:
Constant Field Values

result

private Relation<?> result
Number value to visualize


fontsize

private double fontsize
Font size to use.

Constructor Detail

TooltipStringVisualization

public TooltipStringVisualization(VisualizationTask task)
Constructor.

Parameters:
task - Task
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)