java.lang.Object
cz.fidentis.analyst.gui.elements.histogram.scales.FunctionScale
cz.fidentis.analyst.gui.elements.histogram.scales.LinearScale
All Implemented Interfaces:
Scale<Double,Double>

public class LinearScale extends FunctionScale
Class for performing linear scaling of values.
  • Constructor Details

    • LinearScale

      public LinearScale()
      Creates a new instance.
    • LinearScale

      public LinearScale(Double minZoom, Double maxZoom)
      Creates a new instance with limitations on zooming.
      Parameters:
      minZoom - minimal zoom level
      maxZoom - maximal zoom level
  • Method Details

    • createMapFunction

      protected Function<Double,Double> createMapFunction(double domainStart, double domainEnd, double rangeStart, double rangeEnd)
      Description copied from class: FunctionScale
      Creates a map function based on two points - (domainStart, rangeStart) and (domainEnd, rangeEnd).
      Specified by:
      createMapFunction in class FunctionScale
      Parameters:
      domainStart - domain start
      domainEnd - domain end
      rangeStart - range start
      rangeEnd - range end
      Returns:
      mapping function
    • createInverseMapFunction

      protected Function<Double,Double> createInverseMapFunction(double domainStart, double domainEnd, double rangeStart, double rangeEnd)
      Description copied from class: FunctionScale
      Creates an inverse map function based on two points - (domainStart, rangeStart) and (domainEnd, rangeEnd).
      Specified by:
      createInverseMapFunction in class FunctionScale
      Parameters:
      domainStart - domain start
      domainEnd - domain end
      rangeStart - range start
      rangeEnd - range end
      Returns:
      inverse mapping function