public class OPTICSClusterVisualization.Instance extends AbstractOPTICSVisualization
Modifier and Type | Field and Description |
---|---|
(package private) Clustering<OPTICSModel> |
clus
Our clustering
|
protected static java.lang.String |
CSS_BRACKET
CSS class for markers
|
optics, plotheight, plotwidth
context, layer, svgp, task
Constructor and Description |
---|
Instance(VisualizerContext context,
VisualizationTask task,
VisualizationPlot plot,
double width,
double height,
Projection proj)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
addCSSClasses()
Adds the required CSS-Classes
|
private void |
drawClusters(Clustering<OPTICSModel> clustering,
It<Cluster<OPTICSModel>> clusters,
int depth,
java.util.Map<Cluster<?>,java.lang.String> colormap)
Recursively draw clusters
|
void |
fullRedraw()
Request a full redrawing of the visualization.
|
getClusterOrder, makeLayerElement
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, visualizationChanged
protected static final java.lang.String CSS_BRACKET
Clustering<OPTICSModel> clus
public Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
context
- Visualizer contexttask
- Visualization taskplot
- Plot to draw towidth
- Embedding widthheight
- Embedding heightproj
- Projectionpublic void fullRedraw()
Visualization
fullRedraw
in interface Visualization
fullRedraw
in class AbstractVisualization
private void drawClusters(Clustering<OPTICSModel> clustering, It<Cluster<OPTICSModel>> clusters, int depth, java.util.Map<Cluster<?>,java.lang.String> colormap)
clusters
- Current set of clustersdepth
- Recursion depthcolormap
- Color mappingprivate void addCSSClasses()
Copyright © 2019 ELKI Development Team. License information.