Class BubbleVisualization.Instance
- java.lang.Object
-
- elki.visualization.visualizers.AbstractVisualization
-
- elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
-
- elki.visualization.visualizers.scatterplot.outlier.BubbleVisualization.Instance
-
- All Implemented Interfaces:
DataStoreListener
,ResultListener
,VisualizationListener
,Visualization
,java.util.EventListener
- Enclosing class:
- BubbleVisualization
public class BubbleVisualization.Instance extends AbstractScatterplotVisualization implements DataStoreListener
Factory for producing bubble visualizations- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected OutlierResult
result
The outlier result to visualize-
Fields inherited from class elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
proj, rel, sample
-
Fields inherited from class elki.visualization.visualizers.AbstractVisualization
context, layer, svgp, task
-
-
Constructor Summary
Constructors Constructor Description Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fullRedraw()
Request a full redrawing of the visualization.protected double
getScaledForId(DBIDRef id)
Convenience method to apply scalings in the right order.private void
setupCSS(SVGPlot svgp, ClassStylingPolicy policy)
Registers the Bubble-CSS-Class at a SVGPlot.-
Methods inherited from class elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
setupCanvas, setupCanvas, visualizationChanged
-
Methods inherited from class elki.visualization.visualizers.AbstractVisualization
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.database.datastore.DataStoreListener
contentChanged
-
Methods inherited from interface elki.result.ResultListener
resultAdded, resultRemoved
-
-
-
-
Field Detail
-
result
protected OutlierResult result
The outlier result to visualize
-
-
Constructor Detail
-
Instance
public Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Constructor.- Parameters:
context
- Visualizer contexttask
- Visualization taskplot
- Plot to draw towidth
- Embedding widthheight
- Embedding heightproj
- Projection
-
-
Method Detail
-
fullRedraw
public void fullRedraw()
Description copied from interface:Visualization
Request a full redrawing of the visualization.- Specified by:
fullRedraw
in interfaceVisualization
- Specified by:
fullRedraw
in classAbstractVisualization
-
setupCSS
private void setupCSS(SVGPlot svgp, ClassStylingPolicy policy)
Registers the Bubble-CSS-Class at a SVGPlot.- Parameters:
svgp
- the SVGPlot to register the Tooltip-CSS-Class.policy
- Clustering to use
-
getScaledForId
protected double getScaledForId(DBIDRef 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.
-
-