Class RMAnimUtils
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.graphics.RMAnimUtils
- All Implemented Interfaces:
- RMPropertyChanger,- Cloneable
This class holds a number of convenient static methods used for animation stuff.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic 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<? extends Number> aList, float aTime) Returns whether a given list contains a given float time.static intindexOfTime(List<? extends Number> aList, float aTime) Returns the index of a given time in the given list.static intindexOfTimeAfterTime(List<? extends Number> 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<? extends Number> 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<? extends Number> aList, float startTime, float endTime) Removes the times between the two given times (not including the two times).static NumbertimeAfterTime(List<? extends Number> 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<? extends Number> 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.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange, toStringMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
RMAnimUtilspublic RMAnimUtils()
 
- 
- 
Method Details- 
containsTimeReturns whether a given list contains a given float time.
- 
indexOfTimeReturns the index of a given time in the given list.
- 
indexOfTimeBeforeTimeReturns the index of the time in the given list that is closest without going past the given time.
- 
indexOfTimeAfterTimeReturns the index of the time in the given list that is closest but just past the given time.
- 
timeBeforeTimeReturns the time in the given list that is just before the given time (or null if no such time).
- 
timeAfterTimeReturns the time in the given list that is just after the given time (or null if no such time).
- 
addTimeAdds a given time to the given list at the proper ordered index.
- 
addTimesAdds 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(List<? extends Number> aList, float startTime, float endTime) Removes the times between the two given times (not including the two times).
 
-