NV
- Type of the NumberVector being visualized.public class EMClusterVisualization.Instance<NV extends NumberVector<?>> extends AbstractScatterplotVisualization
Modifier and Type | Field and Description |
---|---|
(package private) Clustering<EMModel<NV>> |
clustering
The result we work on
|
private int |
drawStyle |
static String |
EMBORDER
Generic tags to indicate the type of element.
|
private static double |
KAPPA |
private int |
opacStyle |
private int |
softBorder |
private int |
times
StyleParameter:
|
proj, rel, sample
context, layer, pendingRedraw, svgp, task
Constructor and Description |
---|
EMClusterVisualization.Instance(VisualizationTask task)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
addCSSClasses(SVGPlot svgp)
Adds the required CSS-Classes
|
private void |
drawArc(SVGPath path,
Vector cent,
Vector pre,
Vector nex,
Vector oPrev,
Vector oNext,
double scale)
Draw an arc to simulate the hyper ellipse.
|
protected void |
drawHullArc(int cnum,
Vector cent,
Polygon chres) |
protected void |
drawHullLines(int cnum,
Vector cent,
Polygon chres) |
protected void |
drawSphere2D(int cnum,
Vector cent,
Vector[] pc) |
protected Polygon |
makeHull(Vector[] pc) |
protected Polygon |
makeHullComplex(Vector[] pc) |
protected void |
redraw()
Perform a full redraw.
|
resultChanged, setupCanvas
contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultRemoved, synchronizedRedraw
public static final String EMBORDER
Clustering<EMModel<NV extends NumberVector<?>>> clustering
private static final double KAPPA
private int times
private int opacStyle
private int softBorder
private int drawStyle
public EMClusterVisualization.Instance(VisualizationTask task)
task
- VisualizationTaskprotected void redraw()
AbstractVisualization
redraw
in class AbstractVisualization
private void drawArc(SVGPath path, Vector cent, Vector pre, Vector nex, Vector oPrev, Vector oNext, double scale)
path
- Path to draw tocent
- Centerpre
- Previous pointnex
- Next pointscale
- Scaling factorprivate void addCSSClasses(SVGPlot svgp)
svgp
- SVG-Plot