de.lmu.ifi.dbs.elki.visualization.visualizers.vis1d
Class P1DHistogramVisualizer<NV extends NumberVector<NV,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
      extended by de.lmu.ifi.dbs.elki.visualization.visualizers.vis1d.P1DVisualization
          extended by de.lmu.ifi.dbs.elki.visualization.visualizers.vis1d.P1DHistogramVisualizer<NV>
Type Parameters:
NV - Type of the DatabaseObject being visualized.
All Implemented Interfaces:
ResultListener, ContextChangeListener, Visualization, EventListener

public class P1DHistogramVisualizer<NV extends NumberVector<NV,?>>
extends P1DVisualization

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

NAME

private static final String NAME
Name for this visualizer.

See Also:
Constant Field Values

CNAME

private static final String CNAME
Name for this visualizer.

See Also:
Constant Field Values

BIN

public static final String BIN
Generic tag to indicate the type of element. Used in IDs, CSS-Classes etc.

See Also:
Constant Field Values

curves

private boolean curves
Internal storage of the curves flag.


bins

private int bins
Number of bins to use in the histogram.


relation

private Relation<NV extends NumberVector<NV,?>> relation
The database we visualize


clustering

private Clustering<Model> clustering
The clustering we visualize

Constructor Detail

P1DHistogramVisualizer

public P1DHistogramVisualizer(VisualizationTask task,
                              boolean curves,
                              int bins)
Constructor.

Parameters:
task - Visualization task
curves - Curves flag
bins - Number of bins
Method Detail

redraw

protected void redraw()
Description copied from class: AbstractVisualization
Perform a full redraw.

Specified by:
redraw in class AbstractVisualization

setupCSS

private void setupCSS(SVGPlot svgp,
                      int numc)
Generate the needed CSS classes.

Parameters:
svgp - Plot context
numc - Number of classes we need.

Release 0.4.0 (2011-09-20_1324)