Class ClusterAlphaHullVisualization.Instance

    • Field Detail

      • CLUSTERHULL

        public static final java.lang.String CLUSTERHULL
        Prefix for IDs, CSS classes etc.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Instance

        public Instance​(VisualizerContext context,
                        VisualizationTask task,
                        VisualizationPlot plot,
                        double width,
                        double height,
                        Projection proj)
        Constructor
        Parameters:
        context - Visualizer context
        task - Visualization task
        plot - Plot to draw to
        width - Embedding width
        height - Embedding height
        proj - Projection
    • Method Detail

      • addRecursively

        private double addRecursively​(java.util.ArrayList<double[]> hull,
                                      Hierarchy<Cluster<Model>> hier,
                                      Cluster<Model> clus)
        Recursively add a cluster and its children for alpha shapes.
        Parameters:
        hull - Hull to add to
        hier - Cluster hierarchy
        clus - Current cluster
        Returns:
        Weight for visualization
      • addCSSClasses

        private void addCSSClasses​(SVGPlot svgp,
                                   int clusterID,
                                   double opac)
        Adds the required CSS-Classes
        Parameters:
        svgp - SVG-Plot