Package com.reportmill.graphics
Class RMAnimUtils
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.graphics.RMAnimUtils
- All Implemented Interfaces:
RMArchiver.Archiving,Cloneable
This class holds a number of convenient static methods used for animation stuff.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAdds a given time to the given list at the proper ordered index.static voidAdds a given time to the given list at the proper ordered index.static voidAdds the list of times in list 2 to the given list of times in list 1 at the proper ordered indexes.static booleancontainsTime(List aList, float aTime) Returns whether a given list contains a given float time.static intindexOfTime(List aList, float aTime) Returns the index of a given time in the given list.static intindexOfTimeAfterTime(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(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(List aList, float startTime, float endTime) Removes the times between the two given times (not including the two times).static NumbertimeAfterTime(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 NumbertimeBeforeTime(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.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
Constructor Details
-
RMAnimUtils
public RMAnimUtils()
-
-
Method Details
-
containsTime
Returns whether a given list contains a given float time. -
indexOfTime
Returns the index of a given time in the given list. -
indexOfTimeBeforeTime
Returns the index of the time in the given list that is closest without going past the given time. -
indexOfTimeAfterTime
Returns the index of the time in the given list that is closest but just past the given time. -
timeBeforeTime
Returns the time in the given list that is just before the given time (or null if no such time). -
timeAfterTime
Returns the time in the given list that is just after the given time (or null if no such time). -
addTime
Adds a given time to the given list at the proper ordered index. -
addTime
Adds a given time to the given list at the proper ordered index. -
addTimes
Adds the list of times in list 2 to the given list of times in list 1 at the proper ordered indexes. -
removeTimeBetweenTimes
Removes the times between the two given times (not including the two times).
-