Class AxisVisibilityVisualization.Instance

    • Field Detail

      • SELECTAXISVISIBILITY

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

        public static final java.lang.String SAV_BUTTON
        CSS class for a tool button
        See Also:
        Constant Field Values
      • SAV_BORDER

        public static final java.lang.String SAV_BORDER
        CSS class for a button border
        See Also:
        Constant Field Values
      • SAV_CROSS

        public static final java.lang.String SAV_CROSS
        CSS class for a button cross
        See Also:
        Constant Field Values
      • controlsize

        double controlsize
        Active area size
      • buttonsize

        double buttonsize
        Button size
      • ypos

        double ypos
        Vertical position
    • Constructor Detail

      • Instance

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

      • makeButtonForVisible

        protected void makeButtonForVisible​(int anum,
                                            int apos)
        Make a button for a visible axis
        Parameters:
        anum - Axis number
        apos - Axis position in plot
      • makeButtonsForHidden

        private void makeButtonsForHidden​(int vnum,
                                          int first,
                                          int count,
                                          int dim)
        Insert buttons for hidden dimensions.
        Parameters:
        vnum - Column number (= next visible axis number)
        first - First invisible axis
        count - Number of invisible axes
        dim - Number of total dimensions
      • addEventListener

        private void addEventListener​(org.w3c.dom.Element tag,
                                      int axis)
        Add an event listener to the Element
        Parameters:
        tag - Element to add the listener
        axis - Axis number (including hidden axes)
      • addCSSClasses

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