Class SelectionCubeVisualization.Instance

    • Field Detail

      • MARKER

        public static final java.lang.String MARKER
        Generic tag to indicate the type of element. Used in IDs, CSS-Classes etc.
        See Also:
        Constant Field Values
      • CSS_CUBE

        public static final java.lang.String CSS_CUBE
        CSS class for the filled cube
        See Also:
        Constant Field Values

        public static final java.lang.String CSS_CUBEFRAME
        CSS class for the cube frame
        See Also:
        Constant Field Values
    • Constructor Detail

      • Instance

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

      • addCSSClasses

        private void addCSSClasses​(SVGPlot svgp)
        Adds the required CSS-Classes
        svgp - SVG-Plot
      • setSVGRect

        private void setSVGRect​(SVGPlot svgp,
                                Projection2D proj)
        Generates a cube and a frame depending on the selection stored in the context
        svgp - The plot
        proj - The projection