NV
- Type of the DatabaseObject being visualized.@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
Modifier and Type | Class and Description |
---|---|
static class |
BubbleVisualization.Factory<NV extends NumberVector<NV,?>>
Factory for producing bubble visualizations
|
Modifier and Type | Field and Description |
---|---|
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
|
proj, rel
context, layer, pendingRedraw, svgp, task
Constructor and Description |
---|
BubbleVisualization(VisualizationTask task,
ScalingFunction scaling)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
setupCanvas
contextChanged, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedraw
public static final String BUBBLE
public static final String NAME
protected boolean fill
protected ScalingFunction scaling
protected OutlierResult result
public BubbleVisualization(VisualizationTask task, ScalingFunction scaling)
task
- Visualization taskscaling
- Scaling functionpublic void destroy()
Visualization
destroy
in interface Visualization
destroy
in class AbstractVisualization
public void redraw()
AbstractVisualization
redraw
in class AbstractVisualization
public void contentChanged(DataStoreEvent e)
DataStoreListener
contentChanged
in interface DataStoreListener
e
- the update eventprivate void setupCSS(SVGPlot svgp, Clustering<? extends Model> clustering)
svgp
- the SVGPlot to register the Tooltip-CSS-Class.clustering
- Clustering to use