
D - Distance type (actually unused)public class OPTICSClusterVisualization<D extends Distance<D>> extends AbstractOPTICSVisualization<D>
| Modifier and Type | Class and Description |
|---|---|
static class |
OPTICSClusterVisualization.Factory
Factory class for OPTICS plot selections.
|
| Modifier and Type | Field and Description |
|---|---|
(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.
|
optics, plotheight, plotwidthcontext, layer, pendingRedraw, svgp, task| Constructor and Description |
|---|
OPTICSClusterVisualization(VisualizationTask task)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
addCSSClasses()
Adds the required CSS-Classes
|
private void |
drawClusters(List<Cluster<OPTICSModel>> clusters,
int depth,
Map<Cluster<?>,String> colormap)
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.
|
getClusterOrder, makeLayerElementcontentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedrawprivate static final Logging logger
private static final String NAME
protected static final String CSS_BRACKET
public static final String CLUSTERING
Clustering<OPTICSModel> clus
public OPTICSClusterVisualization(VisualizationTask task)
task - Visualization taskprotected static Clustering<OPTICSModel> findOPTICSClustering(Result result)
result - Result to start searching atprotected void redraw()
AbstractVisualizationredraw in class AbstractVisualizationprivate void drawClusters(List<Cluster<OPTICSModel>> clusters, int depth, Map<Cluster<?>,String> colormap)
clusters - Current set of clustersdepth - Recursion depthcolormap - Color mappingprivate void addCSSClasses()