public class ClusterHullVisualization extends AbstractScatterplotVisualization
Modifier and Type | Class and Description |
---|---|
static class |
ClusterHullVisualization.Factory
Factory for visualizers to generate an SVG-Element containing the convex
hull or alpha shape of a cluster.
|
Modifier and Type | Field and Description |
---|---|
(package private) double |
alpha
Alpha value
|
static String |
CLUSTERHULL
Generic tags to indicate the type of element.
|
(package private) Clustering<Model> |
clustering
The result we work on
|
private static String |
NAME
A short name characterizing this Visualizer.
|
proj, rel, sample
context, layer, pendingRedraw, svgp, task
Constructor and Description |
---|
ClusterHullVisualization(VisualizationTask task,
double alpha)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
addCSSClasses(SVGPlot svgp,
int clusterID,
double opac)
Adds the required CSS-Classes
|
protected void |
redraw()
Perform a full redraw.
|
resultChanged, setupCanvas
contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultRemoved, synchronizedRedraw
private static final String NAME
public static final String CLUSTERHULL
Clustering<Model> clustering
double alpha
public ClusterHullVisualization(VisualizationTask task, double alpha)
task
- VisualizationTaskalpha
- Alpha valueprotected void redraw()
AbstractVisualization
redraw
in class AbstractVisualization
private void addCSSClasses(SVGPlot svgp, int clusterID, double opac)
svgp
- SVG-Plot