Package 

Class LinearZoomManager

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.wormhole.interfaces.ISlideInputManager , it.unibo.alchemist.boundary.wormhole.interfaces.ZoomManager

    
    public final class LinearZoomManager
    extends AbstractSlideInputManager implements ZoomManager
                        

    A LinearZoomManager converts the sliding of any physical/virtual device/control into a zoom rate through a linear function. Zoom = amount of slides * rate.

    • Method Summary

      Modifier and Type Method Description
      double getZoom() Gets the zoom rate.
      void setZoom(double z) Sets the zoom rate.
      • Methods inherited from class it.unibo.alchemist.boundary.wormhole.implementation.AbstractSlideInputManager

        dec, inc
      • Methods inherited from class it.unibo.alchemist.boundary.wormhole.interfaces.ISlideInputManager

        dec, inc
      • Methods inherited from class it.unibo.alchemist.boundary.wormhole.interfaces.ZoomManager

        setZoom
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinearZoomManager

        LinearZoomManager(double z)
        Same of LinearZoomManager but rate is 1, and minimum and maximum are +/- MAX_VALUE .
        Parameters:
        z - is the desired initial zoom
      • LinearZoomManager

        LinearZoomManager(double zoom, double rate, double min, double max)
        Initialize a new LinearZoomManager instance with the parameters in input.
        Parameters:
        zoom - is the desired initial zoom
        rate - is the linear factor
        min - minimum allowed zoom
        max - maximum allowed zoom
    • Method Detail

      • getZoom

         double getZoom()

        Gets the zoom rate.

      • setZoom

         void setZoom(double z)

        Sets the zoom rate.