Class ScaleLimit


  • public final class ScaleLimit
    extends ScaleRange
    Entity of ZoomPlugin.ID configuration in order to set minimum and maximum values of the scales for pan or zoom.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • setOriginalMin

        public final void setOriginalMin​(boolean enable)
        Sets true to use whatever minimum limit the scale had when the chart was first displayed.
        Parameters:
        enable - true to use whatever minimum limit the scale had when the chart was first displayed
      • isOriginalMin

        public final boolean isOriginalMin()
        Returns true to use whatever minimum limit the scale had when the chart was first displayed.
        Returns:
        true to use whatever minimum limit the scale had when the chart was first displayed
      • setOriginalMax

        public final void setOriginalMax​(boolean enable)
        Sets true to use whatever maximum limit the scale had when the chart was first displayed.
        Parameters:
        enable - true to use whatever maximum limit the scale had when the chart was first displayed
      • isOriginalMax

        public final boolean isOriginalMax()
        Returns true to use whatever maximum limit the scale had when the chart was first displayed.
        Returns:
        true to use whatever maximum limit the scale had when the chart was first displayed
      • setMinRange

        public void setMinRange​(double min)
        Sets the minimum allowed range.
        This defines the max zoom level.
        Parameters:
        min - the minimum allowed range.
        This defines the max zoom level.
      • getMinRange

        public double getMinRange()
        Returns the minimum allowed range.
        This defines the max zoom level.
        Returns:
        the minimum allowed range.
        This defines the max zoom level.
      • getMin

        public default double getMin()
        Returns the minimum value of range as double.
        Returns:
        the minimum value of range as double
      • getMax

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