Class Scaler


  • public class Scaler
    extends java.lang.Object
    • Method Detail

      • fromLog

        public static Scaler fromLog​(IvMLog log,
                                     double fadeDurationInUserTime,
                                     double animationDurationInUserTime,
                                     IvMCanceller canceller)
      • fromValues

        public static Scaler fromValues​(double animationDuration)
      • logTime2UserTime

        public java.lang.Double logTime2UserTime​(java.lang.Double logTime)
        Parameters:
        logTime - The time in log timestamps.
        Returns:
        The time in user time (from 0 to the duration of the animation in seconds)
      • logTime2UserTime

        public java.lang.Double logTime2UserTime​(java.lang.Long logTime)
      • userTime2LogTime

        public java.lang.Double userTime2LogTime​(java.lang.Double userTime)
      • userTime2Fraction

        public java.lang.Double userTime2Fraction​(java.lang.Double userTime)
      • getMinInUserTime

        public double getMinInUserTime()
      • getMaxInUserTime

        public double getMaxInUserTime()
      • getMinInLogTime

        public double getMinInLogTime()
      • getMaxInLogTime

        public double getMaxInLogTime()
      • getInitialisationInLogTime

        public double getInitialisationInLogTime()
      • isCorrectTime

        public boolean isCorrectTime()
        Returns:
        whether the timing is derived from the log (true) or randomly generated (false).