Class OPTICSClusterVisualization.Instance
- java.lang.Object
-
- elki.visualization.visualizers.AbstractVisualization
-
- elki.visualization.visualizers.optics.AbstractOPTICSVisualization
-
- elki.visualization.visualizers.optics.OPTICSClusterVisualization.Instance
-
- All Implemented Interfaces:
DataStoreListener
,ResultListener
,VisualizationListener
,Visualization
,java.util.EventListener
- Enclosing class:
- OPTICSClusterVisualization
public static class OPTICSClusterVisualization.Instance extends AbstractOPTICSVisualization
Instance.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Clustering<OPTICSModel>
clus
Our clusteringprotected static java.lang.String
CSS_BRACKET
CSS class for markers-
Fields inherited from class elki.visualization.visualizers.optics.AbstractOPTICSVisualization
optics, plotheight, plotwidth
-
Fields inherited from class elki.visualization.visualizers.AbstractVisualization
context, layer, svgp, task
-
-
Constructor Summary
Constructors Constructor Description Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addCSSClasses()
Adds the required CSS-Classesprivate void
drawClusters(Clustering<OPTICSModel> clustering, It<Cluster<OPTICSModel>> clusters, int depth, java.util.Map<Cluster<?>,java.lang.String> colormap)
Recursively draw clustersvoid
fullRedraw()
Request a full redrawing of the visualization.-
Methods inherited from class elki.visualization.visualizers.optics.AbstractOPTICSVisualization
getClusterOrder, makeLayerElement
-
Methods inherited from class elki.visualization.visualizers.AbstractVisualization
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultChanged, visualizationChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.result.ResultListener
resultAdded, resultRemoved
-
-
-
-
Field Detail
-
CSS_BRACKET
protected static final java.lang.String CSS_BRACKET
CSS class for markers- See Also:
- Constant Field Values
-
clus
Clustering<OPTICSModel> clus
Our clustering
-
-
Constructor Detail
-
Instance
public Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Constructor.- Parameters:
context
- Visualizer contexttask
- Visualization taskplot
- Plot to draw towidth
- Embedding widthheight
- Embedding heightproj
- Projection
-
-
Method Detail
-
fullRedraw
public void fullRedraw()
Description copied from interface:Visualization
Request a full redrawing of the visualization.- Specified by:
fullRedraw
in interfaceVisualization
- Specified by:
fullRedraw
in classAbstractVisualization
-
drawClusters
private void drawClusters(Clustering<OPTICSModel> clustering, It<Cluster<OPTICSModel>> clusters, int depth, java.util.Map<Cluster<?>,java.lang.String> colormap)
Recursively draw clusters- Parameters:
clusters
- Current set of clustersdepth
- Recursion depthcolormap
- Color mapping
-
addCSSClasses
private void addCSSClasses()
Adds the required CSS-Classes
-
-