
public class ClusterMeanVisualization extends AbstractScatterplotVisualization
| Modifier and Type | Class and Description |
|---|---|
static class |
ClusterMeanVisualization.Factory
Factory for visualizers to generate an SVG-Element containing a marker for
the mean in a KMeans-Clustering
|
| Modifier and Type | Field and Description |
|---|---|
(package private) Clustering<Model> |
clustering
Clustering to visualize.
|
private static String |
CSS_MEAN
CSS class name for center of the means
|
private static String |
CSS_MEAN_CENTER
CSS class name for center of the means
|
private static String |
CSS_MEAN_STAR
CSS class name for center of the means
|
private static String |
NAME
A short name characterizing this Visualizer.
|
(package private) boolean |
stars
Draw stars
|
proj, rel, samplecontext, layer, pendingRedraw, svgp, task| Constructor and Description |
|---|
ClusterMeanVisualization(VisualizationTask task,
boolean stars)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
addCSSClasses(SVGPlot svgp)
Adds the required CSS-Classes
|
protected void |
redraw()
Perform a full redraw.
|
resultChanged, setupCanvascontentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultRemoved, synchronizedRedrawprivate static final String NAME
private static final String CSS_MEAN_CENTER
private static final String CSS_MEAN
private static final String CSS_MEAN_STAR
Clustering<Model> clustering
boolean stars
public ClusterMeanVisualization(VisualizationTask task, boolean stars)
task - Visualization taskstars - Draw starsprotected void redraw()
AbstractVisualizationredraw in class AbstractVisualizationprivate void addCSSClasses(SVGPlot svgp)
svgp - SVG-Plot