Class Wheel


  • public final class Wheel
    extends AbstractNode
    Base object to map wheel options for ZoomPlugin.ID plugin configuration.
    It represents the container for WHEEL options.
    Author:
    Andrea "Stock" Stocchero
    • Field Detail

      • DEFAULT_ENABLED

        public static final boolean DEFAULT_ENABLED
        Default enabled, false.
        See Also:
        Constant Field Values
      • DEFAULT_SPEED

        public static final double DEFAULT_SPEED
        Default speed, 0.1.
        See Also:
        Constant Field Values
    • Method Detail

      • setEnabled

        public void setEnabled​(boolean enabled)
        Sets true to enable element for wheel zooming.
        Parameters:
        enabled - true to enable element for wheel zooming
      • isEnabled

        public boolean isEnabled()
        Returns true to enable element for wheel zooming.
        Returns:
        true to enable element for wheel zooming
      • setSpeed

        public void setSpeed​(double speed)
        Sets the speed of element via mouse wheel (percentage of element on a wheel event).
        Must be a value from 0 and 1.
        Parameters:
        speed - the speed of element via mouse wheel
      • getSpeed

        public double getSpeed()
        Returns the speed of element via mouse wheel (percentage of element on a wheel event).
        Returns:
        the speed of element via mouse wheel
      • setModifierKey

        public void setModifierKey​(ModifierKey modifierKey)
        Sets the modifier key to activate zooming by wheeling.
        Parameters:
        modifierKey - the modifier key to activate zooming by wheeling
      • getModifierKey

        public ModifierKey getModifierKey()
        Returns the modifier key to activate zooming by wheeling.
        Returns:
        the modifier key to activate zooming by wheeling