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

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

Visualizer for generating an SVG-Element containing the convex hull of each cluster.

Nested Class Summary
static class ClusterConvexHullVisualization.Factory<NV extends NumberVector<NV,?>>
          Factory for visualizers to generate an SVG-Element containing the convex hull of a cluster.
Field Summary
(package private)  Clustering<Model> clustering
          The result we work on
static String CONVEXHULL
          Generic tags to indicate the type of element.
(package private)  Element hulls
          The hulls
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
ClusterConvexHullVisualization(VisualizationTask task)
Method Summary
private  void addCSSClasses(SVGPlot svgp, int clusterID, double opac)
          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
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
A short name characterizing this Visualizer.

See Also:
Constant Field Values


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

See Also:
Constant Field Values


Clustering<Model> clustering
The result we work on


Element hulls
The hulls

Constructor Detail


public ClusterConvexHullVisualization(VisualizationTask task)

task - VisualizationTask
Method Detail


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

Specified by:
redraw in class AbstractVisualization


private void addCSSClasses(SVGPlot svgp,
                           int clusterID,
                           double opac)
Adds the required CSS-Classes

svgp - SVG-Plot

Release 0.4.0 (2011-09-20_1324)