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, plotwidth
context, 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)
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, makeLayerElement
contextChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedraw
private 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()
AbstractVisualization
redraw
in class AbstractVisualization
private void drawClusters(List<Cluster<OPTICSModel>> clusters, int depth)
clusters
- Current set of clustersdepth
- Recursion depthprivate void addCSSClasses()