de.lmu.ifi.dbs.elki.visualization.visualizers.optics
Class OPTICSClusterVisualization<D extends Distance<D>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
      extended by de.lmu.ifi.dbs.elki.visualization.visualizers.optics.AbstractOPTICSVisualization<D>
          extended by de.lmu.ifi.dbs.elki.visualization.visualizers.optics.OPTICSClusterVisualization<D>
Type Parameters:
D - Distance type (actually unused)
All Implemented Interfaces:
ResultListener, ContextChangeListener, Visualization, EventListener

public class OPTICSClusterVisualization<D extends Distance<D>>
extends AbstractOPTICSVisualization<D>

Visualize the clusters and cluster hierarchy found by OPTICS on the OPTICS Plot.


Nested Class Summary
static class OPTICSClusterVisualization.Factory
          Factory class for OPTICS plot selections.
 
Field Summary
(package private)  Clustering<OPTICSModel> clus
          Our clustering
static String CLUSTERING
          Optics clustering we visualize
protected static String CSS_BRACKET
          CSS class for markers
private static Logging logger
          The logger for this class.
private static String NAME
          A short name characterizing this Visualizer.
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.optics.AbstractOPTICSVisualization
optics, plotheight, plotwidth
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
context, layer, pendingRedraw, svgp, task
 
Constructor Summary
OPTICSClusterVisualization(VisualizationTask task)
          Constructor.
 
Method Summary
private  void addCSSClasses()
          Adds the required CSS-Classes
private  void drawClusters(List<Cluster<OPTICSModel>> clusters, int depth)
          Recursively draw clusters
protected static Clustering<OPTICSModel> findOPTICSClustering(Result result)
          Find the first OPTICS clustering child of a result.
protected  void redraw()
          Perform a full redraw.
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.optics.AbstractOPTICSVisualization
getClusterOrder, makeLayerElement
 
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

logger

private static final Logging logger
The logger for this class.


NAME

private static final String NAME
A short name characterizing this Visualizer.

See Also:
Constant Field Values

CSS_BRACKET

protected static final String CSS_BRACKET
CSS class for markers

See Also:
Constant Field Values

CLUSTERING

public static final String CLUSTERING
Optics clustering we visualize

See Also:
Constant Field Values

clus

Clustering<OPTICSModel> clus
Our clustering

Constructor Detail

OPTICSClusterVisualization

public OPTICSClusterVisualization(VisualizationTask task)
Constructor.

Parameters:
task - Visualization task
Method Detail

findOPTICSClustering

protected static Clustering<OPTICSModel> findOPTICSClustering(Result result)
Find the first OPTICS clustering child of a result.

Parameters:
result - Result to start searching at
Returns:
OPTICS clustering

redraw

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

Specified by:
redraw in class AbstractVisualization

drawClusters

private void drawClusters(List<Cluster<OPTICSModel>> clusters,
                          int depth)
Recursively draw clusters

Parameters:
clusters - Current set of clusters
depth - Recursion depth

addCSSClasses

private void addCSSClasses()
Adds the required CSS-Classes


Release 0.4.0 (2011-09-20_1324)