public class EMClusterVisualization.Instance extends AbstractScatterplotVisualization
Modifier and Type | Field and Description |
---|---|
private int |
drawStyle |
static String |
EMBORDER
Generic tags to indicate the type of element.
|
private static double |
KAPPA
Kappa constant,
|
private int |
opacStyle |
private int |
softBorder |
private int |
times
StyleParameter:
|
proj, rel, sample
context, layer, svgp, task
Constructor and Description |
---|
Instance(VisualizationTask task,
VisualizationPlot plot,
double width,
double height,
Projection proj)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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(String sname,
Vector cent,
Polygon chres)
Approximate the hull using arcs.
|
protected void |
drawHullLines(String sname,
Vector cent,
Polygon chres)
Approximate by convex hull.
|
protected void |
drawSphere2D(String sname,
Vector cent,
Vector[] pc)
Draw by approximating a sphere via cubic splines
|
void |
fullRedraw()
Request a full redrawing of the visualization.
|
protected Polygon |
makeHull(Vector[] pc)
Build a convex hull to approximate the sphere.
|
protected Polygon |
makeHullComplex(Vector[] pc)
Build a convex hull to approximate the sphere.
|
setupCanvas, setupCanvas, visualizationChanged
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved
public static final String EMBORDER
private static final double KAPPA
private int times
private int opacStyle
private int softBorder
private int drawStyle
public Instance(VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
task
- VisualizationTaskplot
- Plot to draw towidth
- Embedding widthheight
- Embedding heightproj
- Projectionpublic void fullRedraw()
Visualization
fullRedraw
in interface Visualization
fullRedraw
in class AbstractVisualization
protected void drawSphere2D(String sname, Vector cent, Vector[] pc)
sname
- CSS class namecent
- centerpc
- Principal componentsprotected void drawHullLines(String sname, Vector cent, Polygon chres)
sname
- CSS namecent
- centerchres
- Polygon around centerprotected Polygon makeHull(Vector[] pc)
pc
- Principal componentsprotected Polygon makeHullComplex(Vector[] pc)
pc
- Principal componentsprotected void drawHullArc(String sname, Vector cent, Polygon chres)
sname
- CSS namecent
- Centerchres
- PolygonCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.