Class ZoomHandler

    • Field Detail

      • m_Zooms

        protected Stack<Zoom> m_Zooms
        contains the zooms.
    • Constructor Detail

      • ZoomHandler

        public ZoomHandler()
        Initializes the handler.
    • Method Detail

      • push

        public void push​(double min,
                         double max)
        Adds the zoom to its internal list and updates the axis.
        Parameters:
        min - the minimum of the zoom
        max - the maximum of the zoom
      • push

        public void push​(Zoom zoom)
        Adds the zoom to its internal list and updates the axis.
        Parameters:
        zoom - the zoom to add
      • peek

        public Zoom peek()
        Peeks the topmost zoom.
        Returns:
        the topmost zoom
      • pop

        public Zoom pop()
        Pops the topmost zoom.
        Returns:
        the topmost zoom
      • clear

        public void clear()
        Removes all zooms.
      • isZoomed

        public boolean isZoomed()
        Returns true if at least one zoom is stored.
        Returns:
        true if a zoom is in place
      • toString

        public String toString()
        Returns a string representation of the handler.
        Overrides:
        toString in class Object
        Returns:
        a string representation