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 Summary
Constructors Constructor Description RMKeyFrame(int aTime)Creates a new key frame.
-
Method Summary
All 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.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
-
Methods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
-
-
-
Method Detail
-
getTimeline
public RMTimeline getTimeline()
Returns the timeline that owns this key frame (if present).
-
setTimeline
protected void setTimeline(RMTimeline aTimeline)
Sets the timeline that owns this key frame (if present).
-
getTime
public int getTime()
Returns the time.
-
getKeyValueCount
public int getKeyValueCount()
Returns the number of key values.
-
getKeyValue
public RMKeyValue getKeyValue(int anIndex)
Returns the individual key value at index.
-
getKeyValues
public java.util.List<RMKeyValue> getKeyValues()
Returns the list of key values.
-
addKeyValue
public void addKeyValue(RMKeyValue aKeyValue)
Adds a new key value.
-
addKeyValue
public void addKeyValue(RMKeyValue aKeyValue, int anIndex)
Adds a new key value at given index.
-
removeKeyValue
public RMKeyValue removeKeyValue(int anIndex)
Removes a key value at given index.
-
removeKeyValue
public int removeKeyValue(RMKeyValue aKVal)
Removes a key value.
-
getKeyValue
public RMKeyValue getKeyValue(java.lang.Object aTarget, java.lang.String aKey)
Returns the key value for given object and key, if present.
-
addKeyValue
public 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.
-
propertyChange
public 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 interfacejava.beans.PropertyChangeListener
-
compareTo
public int compareTo(RMKeyFrame aKeyFrame)
Standard compare implementation.- Specified by:
compareToin interfacejava.lang.Comparable<RMKeyFrame>
-
clone
public RMKeyFrame clone()
Standard clone method.- Overrides:
clonein classRMListenerList
-
-