|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization de.lmu.ifi.dbs.elki.visualization.visualizers.vis1d.P1DVisualization de.lmu.ifi.dbs.elki.visualization.visualizers.vis1d.P1DHistogramVisualizer<NV>
NV
- Type of the DatabaseObject being visualized.public class P1DHistogramVisualizer<NV extends NumberVector<NV,?>>
Generates a SVG-Element containing a histogram representing the distribution of the database's objects.
Nested Class Summary | |
---|---|
static class |
P1DHistogramVisualizer.Factory<NV extends NumberVector<NV,?>>
Visualizer factory for 1D histograms |
Field Summary | |
---|---|
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 |
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis1d.P1DVisualization |
---|
proj |
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
---|
context, layer, pendingRedraw, svgp, task |
Constructor Summary | |
---|---|
P1DHistogramVisualizer(VisualizationTask task,
boolean curves,
int bins)
Constructor. |
Method Summary | |
---|---|
protected void |
redraw()
Perform a full redraw. |
private void |
setupCSS(SVGPlot svgp,
int numc)
Generate the needed CSS classes. |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
---|
contextChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedraw |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private 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
Constructor Detail |
---|
public P1DHistogramVisualizer(VisualizationTask task, boolean curves, int bins)
task
- Visualization taskcurves
- Curves flagbins
- Number of binsMethod Detail |
---|
protected void redraw()
AbstractVisualization
redraw
in class AbstractVisualization
private void setupCSS(SVGPlot svgp, int numc)
svgp
- Plot contextnumc
- Number of classes we need.
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |