Class RMAnimUtils

java.lang.Object
com.reportmill.base.RMObject
com.reportmill.graphics.RMAnimUtils
All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

public class RMAnimUtils extends RMObject
This class holds a number of convenient static methods used for animation stuff.
  • Constructor Details

    • RMAnimUtils

      public RMAnimUtils()
  • Method Details

    • containsTime

      public static boolean containsTime(List aList, float aTime)
      Returns whether a given list contains a given float time.
    • indexOfTime

      public static int indexOfTime(List aList, float aTime)
      Returns the index of a given time in the given list.
    • indexOfTimeBeforeTime

      public static int indexOfTimeBeforeTime(List aList, float aTime)
      Returns the index of the time in the given list that is closest without going past the given time.
    • indexOfTimeAfterTime

      public static int indexOfTimeAfterTime(List aList, float aTime)
      Returns the index of the time in the given list that is closest but just past the given time.
    • timeBeforeTime

      public static Number timeBeforeTime(List aList, float aTime)
      Returns the time in the given list that is just before the given time (or null if no such time).
    • timeAfterTime

      public static Number timeAfterTime(List aList, float aTime)
      Returns the time in the given list that is just after the given time (or null if no such time).
    • addTime

      public static void addTime(List aList, float aTime)
      Adds a given time to the given list at the proper ordered index.
    • addTime

      public static void addTime(List aList, Number aTime)
      Adds a given time to the given list at the proper ordered index.
    • addTimes

      public static void addTimes(List aList, List times)
      Adds the list of times in list 2 to the given list of times in list 1 at the proper ordered indexes.
    • removeTimeBetweenTimes

      public static void removeTimeBetweenTimes(List aList, float startTime, float endTime)
      Removes the times between the two given times (not including the two times).