Class ColoredHistogramVisualizer
- java.lang.Object
-
- elki.visualization.visualizers.histogram.ColoredHistogramVisualizer
-
- All Implemented Interfaces:
VisualizationProcessor
,VisFactory
public class ColoredHistogramVisualizer extends java.lang.Object implements VisFactory
Generates a SVG-Element containing a histogram representing the distribution of the database's objects.- Since:
- 0.4.0
- Author:
- Remigius Wojdanowski, Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ColoredHistogramVisualizer.Instance<NV extends NumberVector>
Instancestatic class
ColoredHistogramVisualizer.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
CNAME
Name for this visualizer.private static int
DEFAULT_BINS
Number of bins to use in histogram.protected ColoredHistogramVisualizer.Par
settings
Settings
-
Constructor Summary
Constructors Constructor Description ColoredHistogramVisualizer(ColoredHistogramVisualizer.Par settings)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowThumbnails(VisualizationTask task)
Test whether to do a thumbnail or a full rendering.Visualization
makeVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Produce a visualization instance for the given taskvoid
processNewResult(VisualizerContext context, java.lang.Object start)
Add visualizers for the given result (tree) to the context.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.visualization.visualizers.VisFactory
makeVisualizationOrThumbnail
-
-
-
-
Field Detail
-
CNAME
private static final java.lang.String CNAME
Name for this visualizer.- See Also:
- Constant Field Values
-
settings
protected ColoredHistogramVisualizer.Par settings
Settings
-
DEFAULT_BINS
private static final int DEFAULT_BINS
Number of bins to use in histogram.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ColoredHistogramVisualizer
public ColoredHistogramVisualizer(ColoredHistogramVisualizer.Par settings)
Constructor.- Parameters:
settings
- Settings
-
-
Method Detail
-
makeVisualization
public Visualization makeVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Description copied from interface:VisFactory
Produce a visualization instance for the given task- Specified by:
makeVisualization
in interfaceVisFactory
- Parameters:
context
- Visualization contexttask
- Visualization taskplot
- Plotwidth
- Widthheight
- Heightproj
- Projection- Returns:
- Visualization
-
processNewResult
public void processNewResult(VisualizerContext context, java.lang.Object start)
Description copied from interface:VisFactory
Add visualizers for the given result (tree) to the context.- Specified by:
processNewResult
in interfaceVisFactory
- Specified by:
processNewResult
in interfaceVisualizationProcessor
- Parameters:
context
- Visualization contextstart
- Result to process
-
allowThumbnails
public boolean allowThumbnails(VisualizationTask task)
Description copied from interface:VisFactory
Test whether to do a thumbnail or a full rendering. Override this with "false" to disable thumbnails!- Specified by:
allowThumbnails
in interfaceVisFactory
- Parameters:
task
- Task requested
-
-