Class RMKeyValueList
java.lang.Object
com.inductiveautomation.rm.graphics.RMKeyValueList
An animation object that keeps track of Key-Values at Key Frame times for a target/key pair.
-
Constructor Summary
ConstructorsConstructorDescriptionRMKeyValueList
(Object aTarget, String aKey) Creates a new key value list for given target and key. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addKeyValue
(RMKeyValue aKeyValue, int aTime) Adds a key value and time to key values and times list.boolean
containsTime
(int aTime) Returns whether key value list contains the given time.getKey()
Returns the list key.getKeyValue
(int anIndex) Returns the individual key value at given index.int
Returns the number of key values.Returns the list target.int
getTime
(int anIndex) Returns the individual time at given index.removeKeyValue
(int anIndex) Removes the key value and time at given index.int
removeKeyValue
(RMKeyValue aKeyValue) Removes a given key value and its corresponding time.int
removeTime
(int aTime) Removes a given time and its corresponding key value.void
setTime
(int aTime, int theLastTime) Sets the time based on key-value-time entries.
-
Constructor Details
-
RMKeyValueList
Creates a new key value list for given target and key.
-
-
Method Details
-
getTarget
Returns the list target. -
getKey
Returns the list key. -
getKeyValueCount
public int getKeyValueCount()Returns the number of key values. -
getKeyValue
Returns the individual key value at given index. -
getTime
public int getTime(int anIndex) Returns the individual time at given index. -
addKeyValue
Adds a key value and time to key values and times list. -
removeKeyValue
Removes the key value and time at given index. -
removeKeyValue
Removes a given key value and its corresponding time. -
removeTime
public int removeTime(int aTime) Removes a given time and its corresponding key value. -
containsTime
public boolean containsTime(int aTime) Returns whether key value list contains the given time. -
setTime
public void setTime(int aTime, int theLastTime) Sets the time based on key-value-time entries.
-