Class AbstractScatterplotVisualization

    • Constructor Detail

      • AbstractScatterplotVisualization

        public AbstractScatterplotVisualization​(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

      • setupCanvas

        protected org.w3c.dom.Element setupCanvas()
        Setup our canvas.
        Returns:
        Canvas
      • setupCanvas

        public static org.w3c.dom.Element setupCanvas​(SVGPlot svgp,
                                                      Projection2D proj,
                                                      double margin,
                                                      double width,
                                                      double height)
        Utility function to setup a canvas element for the visualization.
        Parameters:
        svgp - Plot element
        proj - Projection to use
        margin - Margin to use
        width - Width
        height - Height
        Returns:
        wrapper element with appropriate view box.