Class ScaleRange

  • Direct Known Subclasses:
    ScaleLimit

    public class ScaleRange
    extends NativeObjectContainer
    Entity of ZoomPlugin.ID configuration in order to set minimum and maximum values of the scales for pan or zoom.
    The values to set to the properties depends on the type of scales are used.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • ScaleRange

        public ScaleRange()
        Creates new scale range element.
      • ScaleRange

        public ScaleRange​(double min)
        Creates scale range element with the minimum value.
        Parameters:
        min - the minimum value of range
      • ScaleRange

        public ScaleRange​(double min,
                          double max)
        Creates scale range element with the minimum and maximum values.
        Parameters:
        min - the minimum value of range
        max - the maximum value of range
    • Method Detail

      • setMin

        public final void setMin​(double min)
        Sets the minimum value of range.
        Parameters:
        min - the minimum value of range
      • getMin

        public final double getMin()
        Returns the minimum value of range.
        Returns:
        the minimum value of range
      • setMax

        public final void setMax​(double max)
        Sets the maximum value of range.
        Parameters:
        max - the maximum value of range
      • getMax

        public final double getMax()
        Returns the maximum value of range.
        Returns:
        the maximum value of range