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

@Reference(authors="E. Achtert, H.-P. Kriegel, L. Reichert, E. Schubert, R. Wojdanowski, A. Zimek",
           title="Visual Evaluation of Outlier Detection Models",
           booktitle="Proceedings of the 15th International Conference on Database Systems for Advanced Applications (DASFAA), Tsukuba, Japan, 2010",
           url="http://dx.doi.org/10.1007%2F978-3-642-12098-5_34")
public class BubbleVisualization<NV extends NumberVector<NV,?>>
extends P2DVisualization<NV>
implements DataStoreListener

Generates a SVG-Element containing bubbles. A Bubble is a circle visualizing an outlierness-score, with its center at the position of the visualized object and its radius depending on the objects score.


Nested Class Summary
static class BubbleVisualization.Factory<NV extends NumberVector<NV,?>>
          Factory for producing bubble visualizations
 
Field Summary
static String BUBBLE
          Generic tag to indicate the type of element.
protected  boolean fill
          Fill parameter.
static String NAME
          A short name characterizing this Visualizer.
protected  OutlierResult result
          The outlier result to visualize
protected  ScalingFunction scaling
          Scaling function to use for Bubbles
 
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
BubbleVisualization(VisualizationTask task, ScalingFunction scaling)
          Constructor.
 
Method Summary
 void contentChanged(DataStoreEvent e)
          Invoked after objects of the datastore have been updated, inserted or removed in some way.
 void destroy()
          Destroy the visualization.
protected  Double getScaledForId(DBID id)
          Convenience method to apply scalings in the right order.
 void redraw()
          Perform a full redraw.
private  void setupCSS(SVGPlot svgp, Clustering<? extends Model> clustering)
          Registers the Bubble-CSS-Class at a SVGPlot.
 
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

BUBBLE

public static final String BUBBLE
Generic tag to indicate the type of element. Used in IDs, CSS-Classes etc.

See Also:
Constant Field Values

NAME

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

See Also:
Constant Field Values

fill

protected boolean fill
Fill parameter.


scaling

protected ScalingFunction scaling
Scaling function to use for Bubbles


result

protected OutlierResult result
The outlier result to visualize

Constructor Detail

BubbleVisualization

public BubbleVisualization(VisualizationTask task,
                           ScalingFunction scaling)
Constructor.

Parameters:
task - Visualization task
scaling - Scaling function
Method Detail

destroy

public void destroy()
Description copied from interface: Visualization
Destroy the visualization. Called after the elements have been removed from the document. Implementations should remove their listeners etc.

Specified by:
destroy in interface Visualization
Overrides:
destroy in class AbstractVisualization

redraw

public void redraw()
Description copied from class: AbstractVisualization
Perform a full redraw.

Specified by:
redraw in class AbstractVisualization

contentChanged

public void contentChanged(DataStoreEvent e)
Description copied from interface: DataStoreListener
Invoked after objects of the datastore have been updated, inserted or removed in some way.

Specified by:
contentChanged in interface DataStoreListener
Parameters:
e - the update event

setupCSS

private void setupCSS(SVGPlot svgp,
                      Clustering<? extends Model> clustering)
Registers the Bubble-CSS-Class at a SVGPlot.

Parameters:
svgp - the SVGPlot to register the Tooltip-CSS-Class.
clustering - Clustering to use

getScaledForId

protected Double getScaledForId(DBID id)
Convenience method to apply scalings in the right order.

Parameters:
id - object ID to get scaled score for
Returns:
a Double representing a outlierness-score, after it has modified by the given scales.

Release 0.4.0 (2011-09-20_1324)