Class ColoredHistogramVisualizer.Instance<NV extends NumberVector>
- java.lang.Object
-
- elki.visualization.visualizers.AbstractVisualization
-
- elki.visualization.visualizers.histogram.AbstractHistogramVisualization
-
- elki.visualization.visualizers.histogram.ColoredHistogramVisualizer.Instance<NV>
-
- Type Parameters:
NV
- Type of the DatabaseObject being visualized.
- All Implemented Interfaces:
DataStoreListener
,ResultListener
,VisualizationListener
,Visualization
,java.util.EventListener
- Enclosing class:
- ColoredHistogramVisualizer
public class ColoredHistogramVisualizer.Instance<NV extends NumberVector> extends AbstractHistogramVisualization
Instance- Author:
- Remigius Wojdanowski
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BIN
Generic tag to indicate the type of element.private Relation<NV>
relation
The database we visualizeprivate SamplingResult
sample
Sampling result-
Fields inherited from class elki.visualization.visualizers.histogram.AbstractHistogramVisualization
proj
-
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.private void
setupCSS(SVGPlot svgp, int numc)
Generate the needed CSS classes.-
Methods inherited from class elki.visualization.visualizers.histogram.AbstractHistogramVisualization
resultChanged
-
Methods inherited from class elki.visualization.visualizers.AbstractVisualization
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, visualizationChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.result.ResultListener
resultAdded, resultRemoved
-
-
-
-
Field Detail
-
BIN
public static final java.lang.String BIN
Generic tag to indicate the type of element. Used in IDs, CSS-Classes etc.- See Also:
- Constant Field Values
-
relation
private Relation<NV extends NumberVector> relation
The database we visualize
-
sample
private SamplingResult sample
Sampling result
-
-
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, int numc)
Generate the needed CSS classes.- Parameters:
svgp
- Plot contextnumc
- Number of classes we need.
-
-