Class AbstractConfigurationItem

  • Direct Known Subclasses:
    Pan, Zoom

    public abstract class AbstractConfigurationItem
    extends AbstractNode
    Abstract element used by pan and zoom object in order to enable to provide the configuration of ZoomPlugin.ID.
    Author:
    Andrea "Stock" Stocchero
    • Field Detail

      • DEFAULT_MODE

        public static final Mode DEFAULT_MODE
        Default mode directions, Mode.XY.
      • DEFAULT_SCALE_MODE

        public static final Mode DEFAULT_SCALE_MODE
        Default mode directions for the scale, Mode.XY.
      • DEFAULT_OVER_SCALE_MODE

        public static final Mode DEFAULT_OVER_SCALE_MODE
        Default mode directions, when over the scale, Mode.XY.
    • Method Detail

      • setMode

        public final void setMode​(Mode mode)
        Sets the element (panning or zooming) directions.
        Parameters:
        mode - the element (panning or zooming) directions
      • getMode

        public final Mode getMode()
        Returns the element (panning or zooming) directions.
        Returns:
        the element (panning or zooming) directions
      • setScaleMode

        public final void setScaleMode​(Mode mode)
        Enables panning over a scale for that axis (regardless of mode).
        Parameters:
        mode - panning over a scale for that axis (regardless of mode).
      • getScaleMode

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

        public final void setOverScaleMode​(Mode mode)
        Sets which of the enabled zooming directions should only be available when the mouse cursor is over one of scale.
        If under mouse hasn't scale, then return all other scales which 'mode' is different with overScaleMode.
        So 'overScaleMode' works as a limiter to scale the user-selected scale (in 'mode') only when the cursor is under the scale, and other directions in 'mode' works as before.
        Parameters:
        mode - which of the enabled zooming directions should only be available when the mouse cursor is over one of scale
      • getOverScaleMode

        public final 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 final ModeCallback getModeCallback()
        Returns the element (panning or zooming) directions callback, to set the mode at runtime.
        Returns:
        the element (panning or zooming) directions callback
      • setMode

        public final void setMode​(ModeCallback modeCallback)
        Sets the element (panning or zooming) directions callback, to set the mode at runtime.
        Parameters:
        modeCallback - the element (panning or zooming) directions callback
      • setMode

        public final void setMode​(NativeCallback modeCallback)
        Sets the element (panning or zooming) directions callback, to set the mode at runtime.
        Parameters:
        modeCallback - the element (panning or zooming) directions callback
      • getScaleModeCallback

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

        public final void setScaleMode​(ModeCallback modeCallback)
        Sets the element directions callback, to enable panning over a scale for that axis (regardless of mode).
        Parameters:
        modeCallback - the element directions callback
      • setScaleMode

        public final void setScaleMode​(NativeCallback modeCallback)
        Sets the element directions callback, to enable panning over a scale for that axis (regardless of mode).
        Parameters:
        modeCallback - the element directions callback
      • getOverScaleModeCallback

        public final 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
      • setOverScaleMode

        public final void setOverScaleMode​(ModeCallback modeCallback)
        Sets 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
        Parameters:
        modeCallback - the element (panning or zooming) directions callback
      • setOverScaleMode

        public final void setOverScaleMode​(NativeCallback modeCallback)
        Sets 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
        Parameters:
        modeCallback - the element (panning or zooming) directions callback
      • getProgressCallback

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

        public final void setProgressCallback​(ProgressCallback progressCallback)
        Sets the callback called while the user is zooming or panning.
        Parameters:
        progressCallback - the callback called while the user is zooming or panning
      • getCompletedCallback

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

        public final void setCompletedCallback​(CompletedCallback completeCallback)
        Sets the callback called once zooming or panning is completed.
        Parameters:
        completeCallback - the callback called once zooming or panning is completed
      • getRejectedCallback

        public final RejectedCallback getRejectedCallback()
        Returns the callback called once zooming or panning is completed.
        Returns:
        the callback called once zooming or panning is completed
      • setRejectedCallback

        public final void setRejectedCallback​(RejectedCallback rejectCallback)
        Sets the callback called once zooming or panning is rejected.
        Parameters:
        rejectCallback - the callback called once zooming or panning is rejected
      • getStartCallback

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

        public final void setStartCallback​(StartCallback startCallback)
        Sets the callback called once zooming or panning is started.
        Parameters:
        startCallback - the callback called once zooming or panning is started