public class ClusterHullVisualization.Instance extends AbstractScatterplotVisualization
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CLUSTERHULLGeneric tags to indicate the type of element. | 
proj, rel, samplecontext, layer, svgp, task| Constructor and Description | 
|---|
| Instance(VisualizerContext context,
        VisualizationTask task,
        VisualizationPlot plot,
        double width,
        double height,
        Projection proj)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| private void | addCSSClasses(SVGPlot svgp,
             int clusterID,
             double opac)Adds the required CSS-Classes | 
| private double | addRecursively(java.util.ArrayList<double[]> hull,
              Hierarchy<Cluster<Model>> hier,
              Cluster<Model> clus)Recursively add a cluster and its children. | 
| private DoubleObjPair<Polygon> | buildHullsRecursively(Cluster<Model> clu,
                     Hierarchy<Cluster<Model>> hier,
                     java.util.Map<java.lang.Object,DoubleObjPair<Polygon>> hulls)Recursively step through the clusters to build the hulls. | 
| void | fullRedraw()Request a full redrawing of the visualization. | 
setupCanvas, setupCanvas, visualizationChangedaddListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemovedpublic static final java.lang.String CLUSTERHULL
public Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
context - Visualizer contexttask - Visualization taskplot - Plot to draw towidth - Embedding widthheight - Embedding heightproj - Projectionpublic void fullRedraw()
VisualizationfullRedraw in interface VisualizationfullRedraw in class AbstractVisualizationprivate DoubleObjPair<Polygon> buildHullsRecursively(Cluster<Model> clu, Hierarchy<Cluster<Model>> hier, java.util.Map<java.lang.Object,DoubleObjPair<Polygon>> hulls)
clu - Current clusterhier - Clustering hierarchyhulls - Hull mapprivate double addRecursively(java.util.ArrayList<double[]> hull,
                              Hierarchy<Cluster<Model>> hier,
                              Cluster<Model> clus)
hull - Hull to add tohier - Cluster hierarchyclus - Current clusterprivate void addCSSClasses(SVGPlot svgp, int clusterID, double opac)
svgp - SVG-PlotCopyright © 2019 ELKI Development Team. License information.