Class ClusteringVisualization<NV extends NumberVector<NV,?>>

  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.ClusteringVisualization<NV>
Type Parameters:
NV - Type of the DatabaseObject being visualized.
All Implemented Interfaces:
DataStoreListener, ResultListener, ContextChangeListener, Visualization, EventListener

public class ClusteringVisualization<NV extends NumberVector<NV,?>>
extends P2DVisualization<NV>
implements DataStoreListener

Visualize a clustering using different markers for different clusters.

Nested Class Summary
static class ClusteringVisualization.Factory<NV extends NumberVector<NV,?>>
          Visualization factory
Field Summary
private  Clustering<Model> clustering
          The result we visualize
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
ClusteringVisualization(VisualizationTask task)
Method Summary
 void contentChanged(DataStoreEvent e)
          Invoked after objects of the datastore have been updated, inserted or removed in some way.
 void destroy()
          Destroy the visualization.
 void redraw()
          Perform a full redraw.
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
contextChanged, 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 Clustering<Model> clustering
The result we visualize

Constructor Detail


public ClusteringVisualization(VisualizationTask task)

task - Visualization task
Method Detail


public void destroy()
Description copied from interface: Visualization
Destroy the visualization. Called after the elements have been removed from the document. Implementations should remove their listeners etc.

Specified by:
destroy in interface Visualization
destroy in class AbstractVisualization


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

Specified by:
redraw in class AbstractVisualization


public void contentChanged(DataStoreEvent e)
Description copied from interface: DataStoreListener
Invoked after objects of the datastore have been updated, inserted or removed in some way.

Specified by:
contentChanged in interface DataStoreListener
e - the update event

Release 0.4.0 (2011-09-20_1324)