de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d
Class ClusterMeanVisualization<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.vis2d.P2DVisualization<NV>
          extended by de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.ClusterMeanVisualization<NV>
Type Parameters:
NV - Type of the DatabaseObject being visualized.
All Implemented Interfaces:
ResultListener, ContextChangeListener, Visualization, EventListener

public class ClusterMeanVisualization<NV extends NumberVector<NV,?>>
extends P2DVisualization<NV>

Visualize the mean of a KMeans-Clustering


Nested Class Summary
static class ClusterMeanVisualization.Factory<NV extends NumberVector<NV,?>>
          Factory for visualizers to generate an SVG-Element containing a marker for the mean in a KMeans-Clustering
 
Field Summary
(package private)  Clustering<MeanModel<NV>> clustering
          Clustering to visualize.
private static String CSS_MEAN
          CSS class name for center of the means
private static String CSS_MEAN_CENTER
          CSS class name for center of the means
private static String NAME
          A short name characterizing this Visualizer.
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization
proj, rel
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
context, layer, pendingRedraw, svgp, task
 
Constructor Summary
ClusterMeanVisualization(VisualizationTask task)
           
 
Method Summary
private  void addCSSClasses(SVGPlot svgp)
          Adds the required CSS-Classes
protected  void redraw()
          Perform a full redraw.
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization
setupCanvas
 
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
A short name characterizing this Visualizer.

See Also:
Constant Field Values

CSS_MEAN_CENTER

private static final String CSS_MEAN_CENTER
CSS class name for center of the means

See Also:
Constant Field Values

CSS_MEAN

private static final String CSS_MEAN
CSS class name for center of the means

See Also:
Constant Field Values

clustering

Clustering<MeanModel<NV extends NumberVector<NV,?>>> clustering
Clustering to visualize.

Constructor Detail

ClusterMeanVisualization

public ClusterMeanVisualization(VisualizationTask task)
Method Detail

redraw

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

Specified by:
redraw in class AbstractVisualization

addCSSClasses

private void addCSSClasses(SVGPlot svgp)
Adds the required CSS-Classes

Parameters:
svgp - SVG-Plot

Release 0.4.0 (2011-09-20_1324)