Class Zoom


  • public final class Zoom
    extends AbstractConfigurationItem
    Base object to map zoom options for ZoomPlugin.ID plugin configuration.
    It represents the container for ZOOM options.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getWheel

        public Wheel getWheel()
        Returns the wheel-to-zoom effect.
        Returns:
        the wheel-to-zoom effect
      • getDrag

        public Drag getDrag()
        Returns the drag-to-zoom effect.
        Returns:
        the drag-to-zoom effect
      • getPinch

        public Pinch getPinch()
        Returns the pinch-to-zoom effect.
        Returns:
        the pinch-to-zoom effect
      • getMode

        public default Mode getMode()
        Returns the element (panning or zooming) directions.
        Returns:
        the element (panning or zooming) directions
      • getScaleMode

        public default Mode getScaleMode()
        Returns panning over a scale for that axis (regardless of mode).
        Returns:
        panning over a scale for that axis (regardless of mode).
      • getOverScaleMode

        public default Mode getOverScaleMode()
        Returns which of the enabled zooming directions should only be available when the mouse cursor is over one of scale.
        Returns:
        which of the enabled zooming directions should only be available when the mouse cursor is over one of scale
      • getModeCallback

        public default ModeCallback getModeCallback()
        Returns the element (panning or zooming) directions callback, to set the mode at runtime.
        Returns:
        the element (panning or zooming) directions callback
      • getScaleModeCallback

        public default ModeCallback getScaleModeCallback()
        Returns the element directions callback, to enable panning over a scale for that axis (regardless of mode).
        Returns:
        the element directions callback
      • getOverScaleModeCallback

        public default ModeCallback getOverScaleModeCallback()
        Returns the element (panning or zooming) directions callback, to set the mode at runtime, which of the enabled zooming directions should only be available when the mouse cursor is over one of scale
        Returns:
        the element (panning or zooming) directions callback
      • getProgressCallback

        public default ProgressCallback getProgressCallback()
        Returns the callback called while the user is zooming or panning.
        Returns:
        the callback called while the user is zooming or panning
      • getCompletedCallback

        public default CompletedCallback getCompletedCallback()
        Returns the callback called once zooming or panning is completed.
        Returns:
        the callback called once zooming or panning is completed
      • getRejectedCallback

        public default RejectedCallback getRejectedCallback()
        Returns the callback called once zooming or panning is rejected.
        Returns:
        the callback called once zooming or panning is rejected
      • getStartCallback

        public default StartCallback getStartCallback()
        Returns the callback called once zooming or panning is started.
        Returns:
        the callback called once zooming or panning is started