
NV - Type of the DatabaseObject being visualized.public class P1DHistogramVisualizer<NV extends NumberVector<NV,?>> extends P1DVisualization
| Modifier and Type | Class and Description |
|---|---|
static class |
P1DHistogramVisualizer.Factory<NV extends NumberVector<NV,?>>
Visualizer factory for 1D histograms
|
| Modifier and Type | Field and Description |
|---|---|
static String |
BIN
Generic tag to indicate the type of element.
|
private int |
bins
Number of bins to use in the histogram.
|
private Clustering<Model> |
clustering
The clustering we visualize
|
private static String |
CNAME
Name for this visualizer.
|
private boolean |
curves
Internal storage of the curves flag.
|
private static String |
NAME
Name for this visualizer.
|
private Relation<NV> |
relation
The database we visualize
|
projcontext, layer, pendingRedraw, svgp, task| Constructor and Description |
|---|
P1DHistogramVisualizer(VisualizationTask task,
boolean curves,
int bins)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
redraw()
Perform a full redraw.
|
private void |
setupCSS(SVGPlot svgp,
int numc)
Generate the needed CSS classes.
|
contextChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedrawprivate static final String NAME
private static final String CNAME
public static final String BIN
private boolean curves
private int bins
private Relation<NV extends NumberVector<NV,?>> relation
private Clustering<Model> clustering
public P1DHistogramVisualizer(VisualizationTask task, boolean curves, int bins)
task - Visualization taskcurves - Curves flagbins - Number of binsprotected void redraw()
AbstractVisualizationredraw in class AbstractVisualizationprivate void setupCSS(SVGPlot svgp, int numc)
svgp - Plot contextnumc - Number of classes we need.