Class RMTimeline
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.graphics.RMTimeline
- All Implemented Interfaces:
- RMPropertyChanger,- PropertyChangeListener,- Cloneable,- EventListener
An animation object that holds a list of key frames.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new timeline.RMTimeline(Object anOwner) Creates a new timeline with owner.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddKeyFrame(RMKeyFrame aKeyFrame) Adds a given key frame.voidaddKeyFrame(RMKeyFrame aKeyFrame, int anIndex) Adds a given key frame at given index.protected voidaddKeyFrameKeyValue(RMKeyFrame aKeyFrame, RMKeyValue aKeyValue) Adds a key frame key value, so that a key value list entry is created.addKeyFrameKeyValue(Object aTarget, String aKey, Object aValue, int aTime) Adds a new key frame key value foraddKeyFrameKeyValue(Object aTarget, String aKey, Object aValue, int aTime, Object anOldValue, int anOldTime) Adds a new key frame key value forclone()Standard clone implementation.Standard clone implementation.voidfromXML(Object aTarget, RXArchiver anArchiver, RXElement anElement) XML unarchival for anim and shape.intgetIndex(RMKeyFrame aKeyFrame) Return index for given key frame.getKeyFrame(int anIndex) Returns an individual key frame at given index.getKeyFrameAt(int aTime) Returns the key frame at the given time.getKeyFrameAt(int aTime, boolean doCreate) Returns the key frame at the given time, with an option to create it if missing.intReturns the number of key frames.Returns the list of key frames.getKeyValueList(Object aTarget, String aKey) Returns a key value list for a given target and value.getKeyValueList(Object aTarget, String aKey, boolean doCreate) Returns a key value list for a given target and value, with an option to create if missing.getOwner()Returns the timeline owner.intgetTime()Returns the current time of the timeline (in milliseconds).booleanisEmpty()Returns whether timeline is empty.voidpropertyChange(PropertyChangeEvent anEvent) Implement to catch key value changes and forward to this key frame's property change listeners.removeKeyFrame(int anIndex) Removes a keyframe at given index.intremoveKeyFrame(RMKeyFrame aKeyFrame) Removes the given key frame.protected voidremoveKeyFrameKeyValue(RMKeyFrame aKeyFrame, RMKeyValue aKeyValue) Removes a key frame key value, so that a key value list entry is removed.voidremoveKeyFrameKeyValues(Object aTarget, String aKey, int aStartTime, int anEndTime, boolean isInclusive) Removes key frame key values for target and key between two times (with option to include those times).voidscaleRecords(int aStartTime, float aFactor) This method scales all records from a given start time through a length to a new length.voidSets the timeline owner.voidsetTime(int aTime) Sets the current time of the timeline (in milliseconds).voidshiftRecords(int fromTime, int byTime) This method shifts key frame values at or beyond a given time by the given amount.toString()Standard toString implementation.voidtoXML(RXArchiver anArchiver, RXElement anElement) XML archival (for shape).Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
RMTimelinepublic RMTimeline()Creates a new timeline.
- 
RMTimelineCreates a new timeline with owner.
 
- 
- 
Method Details- 
getOwnerReturns the timeline owner.
- 
setOwnerSets the timeline owner.
- 
isEmptypublic boolean isEmpty()Returns whether timeline is empty.
- 
getKeyFrameCountpublic int getKeyFrameCount()Returns the number of key frames.
- 
getKeyFrameReturns an individual key frame at given index.
- 
getKeyFramesReturns the list of key frames.
- 
addKeyFrameAdds a given key frame.
- 
addKeyFrameAdds a given key frame at given index. This should be protected - but undo system current needs it public.
- 
removeKeyFrameRemoves a keyframe at given index.
- 
removeKeyFrameRemoves the given key frame.
- 
getIndexReturn index for given key frame.
- 
getKeyFrameAtReturns the key frame at the given time.
- 
getKeyFrameAtReturns the key frame at the given time, with an option to create it if missing.
- 
getKeyValueListReturns a key value list for a given target and value.
- 
getKeyValueListReturns a key value list for a given target and value, with an option to create if missing.
- 
getTimepublic int getTime()Returns the current time of the timeline (in milliseconds).
- 
setTimepublic void setTime(int aTime) Sets the current time of the timeline (in milliseconds).
- 
addKeyFrameKeyValueAdds a key frame key value, so that a key value list entry is created.
- 
removeKeyFrameKeyValueRemoves a key frame key value, so that a key value list entry is removed.
- 
addKeyFrameKeyValueAdds a new key frame key value for
- 
addKeyFrameKeyValuepublic RMKeyValue addKeyFrameKeyValue(Object aTarget, String aKey, Object aValue, int aTime, Object anOldValue, int anOldTime) Adds a new key frame key value for
- 
removeKeyFrameKeyValuespublic void removeKeyFrameKeyValues(Object aTarget, String aKey, int aStartTime, int anEndTime, boolean isInclusive) Removes key frame key values for target and key between two times (with option to include those times).
- 
shiftRecordspublic void shiftRecords(int fromTime, int byTime) This method shifts key frame values at or beyond a given time by the given amount.
- 
scaleRecordspublic void scaleRecords(int aStartTime, float aFactor) This method scales all records from a given start time through a length to a new length.
- 
propertyChangeImplement to catch key value changes and forward to this key frame's property change listeners.- Specified by:
- propertyChangein interface- PropertyChangeListener
 
- 
cloneStandard clone implementation.- Overrides:
- clonein class- RMListenerList
 
- 
cloneStandard clone implementation.
- 
toXMLXML archival (for shape).
- 
fromXMLXML unarchival for anim and shape.
- 
toStringStandard toString implementation.
 
-