Class RMKeyValueList

java.lang.Object
com.inductiveautomation.rm.graphics.RMKeyValueList

public class RMKeyValueList extends Object
An animation object that keeps track of Key-Values at Key Frame times for a target/key pair.
  • Constructor Details

    • RMKeyValueList

      public RMKeyValueList(Object aTarget, String aKey)
      Creates a new key value list for given target and key.
  • Method Details

    • getTarget

      public Object getTarget()
      Returns the list target.
    • getKey

      public String getKey()
      Returns the list key.
    • getKeyValueCount

      public int getKeyValueCount()
      Returns the number of key values.
    • getKeyValue

      public RMKeyValue getKeyValue(int anIndex)
      Returns the individual key value at given index.
    • getTime

      public int getTime(int anIndex)
      Returns the individual time at given index.
    • addKeyValue

      public void addKeyValue(RMKeyValue aKeyValue, int aTime)
      Adds a key value and time to key values and times list.
    • removeKeyValue

      public RMKeyValue removeKeyValue(int anIndex)
      Removes the key value and time at given index.
    • removeKeyValue

      public int removeKeyValue(RMKeyValue aKeyValue)
      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.