Package com.reportmill.graphics
Class RMAnimUtils
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.graphics.RMAnimUtils
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class RMAnimUtils extends RMObject This class holds a number of convenient static methods used for animation stuff.
- 
- 
Constructor SummaryConstructors Constructor Description RMAnimUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddTime(java.util.List aList, float aTime)Adds a given time to the given list at the proper ordered index.static voidaddTime(java.util.List aList, java.lang.Number aTime)Adds a given time to the given list at the proper ordered index.static voidaddTimes(java.util.List aList, java.util.List times)Adds the list of times in list 2 to the given list of times in list 1 at the proper ordered indexes.static booleancontainsTime(java.util.List aList, float aTime)Returns whether a given list contains a given float time.static intindexOfTime(java.util.List aList, float aTime)Returns the index of a given time in the given list.static intindexOfTimeAfterTime(java.util.List aList, float aTime)Returns the index of the time in the given list that is closest but just past the given time.static intindexOfTimeBeforeTime(java.util.List aList, float aTime)Returns the index of the time in the given list that is closest without going past the given time.static voidremoveTimeBetweenTimes(java.util.List aList, float startTime, float endTime)Removes the times between the two given times (not including the two times).static java.lang.NumbertimeAfterTime(java.util.List aList, float aTime)Returns the time in the given list that is just after the given time (or null if no such time).static java.lang.NumbertimeBeforeTime(java.util.List aList, float aTime)Returns the time in the given list that is just before the given time (or null if no such time).- 
Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Method Detail- 
containsTimepublic static boolean containsTime(java.util.List aList, float aTime)Returns whether a given list contains a given float time.
 - 
indexOfTimepublic static int indexOfTime(java.util.List aList, float aTime)Returns the index of a given time in the given list.
 - 
indexOfTimeBeforeTimepublic static int indexOfTimeBeforeTime(java.util.List aList, float aTime)Returns the index of the time in the given list that is closest without going past the given time.
 - 
indexOfTimeAfterTimepublic static int indexOfTimeAfterTime(java.util.List aList, float aTime)Returns the index of the time in the given list that is closest but just past the given time.
 - 
timeBeforeTimepublic static java.lang.Number timeBeforeTime(java.util.List aList, float aTime)Returns the time in the given list that is just before the given time (or null if no such time).
 - 
timeAfterTimepublic static java.lang.Number timeAfterTime(java.util.List aList, float aTime)Returns the time in the given list that is just after the given time (or null if no such time).
 - 
addTimepublic static void addTime(java.util.List aList, float aTime)Adds a given time to the given list at the proper ordered index.
 - 
addTimepublic static void addTime(java.util.List aList, java.lang.Number aTime)Adds a given time to the given list at the proper ordered index.
 - 
addTimespublic static void addTimes(java.util.List aList, java.util.List times)Adds the list of times in list 2 to the given list of times in list 1 at the proper ordered indexes.
 - 
removeTimeBetweenTimespublic static void removeTimeBetweenTimes(java.util.List aList, float startTime, float endTime)Removes the times between the two given times (not including the two times).
 
- 
 
-