Class RMKeyFrame
- java.lang.Object
- 
- com.inductiveautomation.rm.base.RMListenerList
- 
- com.inductiveautomation.rm.base.RMObject
- 
- com.inductiveautomation.rm.graphics.RMKeyFrame
 
 
 
- 
- All Implemented Interfaces:
- RMPropertyChanger,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.lang.Comparable<RMKeyFrame>,- java.util.EventListener
 
 public class RMKeyFrame extends RMObject implements java.beans.PropertyChangeListener, java.lang.Comparable<RMKeyFrame> An animation object that holds an object key/value for a given time.
- 
- 
Constructor SummaryConstructors Constructor Description RMKeyFrame(int aTime)Creates a new key frame.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddKeyValue(RMKeyValue aKeyValue)Adds a new key value.voidaddKeyValue(RMKeyValue aKeyValue, int anIndex)Adds a new key value at given index.RMKeyValueaddKeyValue(java.lang.Object aTarget, java.lang.String aKey, java.lang.Object aValue)Adds a new key value for given target, key and value.RMKeyFrameclone()Standard clone method.intcompareTo(RMKeyFrame aKeyFrame)Standard compare implementation.RMKeyValuegetKeyValue(int anIndex)Returns the individual key value at index.RMKeyValuegetKeyValue(java.lang.Object aTarget, java.lang.String aKey)Returns the key value for given object and key, if present.intgetKeyValueCount()Returns the number of key values.java.util.List<RMKeyValue>getKeyValues()Returns the list of key values.intgetTime()Returns the time.RMTimelinegetTimeline()Returns the timeline that owns this key frame (if present).voidpropertyChange(java.beans.PropertyChangeEvent anEvent)Implement to catch key value changes and forward to this key frame's property change listeners.RMKeyValueremoveKeyValue(int anIndex)Removes a key value at given index.intremoveKeyValue(RMKeyValue aKVal)Removes a key value.protected voidsetTimeline(RMTimeline aTimeline)Sets the timeline that owns this key frame (if present).java.lang.StringtoString()Standard to string implementation.- 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getTimelinepublic RMTimeline getTimeline() Returns the timeline that owns this key frame (if present).
 - 
setTimelineprotected void setTimeline(RMTimeline aTimeline) Sets the timeline that owns this key frame (if present).
 - 
getTimepublic int getTime() Returns the time.
 - 
getKeyValueCountpublic int getKeyValueCount() Returns the number of key values.
 - 
getKeyValuepublic RMKeyValue getKeyValue(int anIndex) Returns the individual key value at index.
 - 
getKeyValuespublic java.util.List<RMKeyValue> getKeyValues() Returns the list of key values.
 - 
addKeyValuepublic void addKeyValue(RMKeyValue aKeyValue) Adds a new key value.
 - 
addKeyValuepublic void addKeyValue(RMKeyValue aKeyValue, int anIndex) Adds a new key value at given index.
 - 
removeKeyValuepublic RMKeyValue removeKeyValue(int anIndex) Removes a key value at given index.
 - 
removeKeyValuepublic int removeKeyValue(RMKeyValue aKVal) Removes a key value.
 - 
getKeyValuepublic RMKeyValue getKeyValue(java.lang.Object aTarget, java.lang.String aKey) Returns the key value for given object and key, if present.
 - 
addKeyValuepublic RMKeyValue addKeyValue(java.lang.Object aTarget, java.lang.String aKey, java.lang.Object aValue) Adds a new key value for given target, key and value.
 - 
propertyChangepublic void propertyChange(java.beans.PropertyChangeEvent anEvent) Implement to catch key value changes and forward to this key frame's property change listeners.- Specified by:
- propertyChangein interface- java.beans.PropertyChangeListener
 
 - 
compareTopublic int compareTo(RMKeyFrame aKeyFrame) Standard compare implementation.- Specified by:
- compareToin interface- java.lang.Comparable<RMKeyFrame>
 
 - 
clonepublic RMKeyFrame clone() Standard clone method.- Overrides:
- clonein class- RMListenerList
 
 
- 
 
-