Class RMKeyFrame

All Implemented Interfaces:
RMPropertyChanger, PropertyChangeListener, Cloneable, Comparable<RMKeyFrame>, EventListener

public class RMKeyFrame extends RMObject implements PropertyChangeListener, Comparable<RMKeyFrame>
An animation object that holds an object key/value for a given time.
  • Constructor Details

    • RMKeyFrame

      public RMKeyFrame(int aTime)
      Creates a new key frame.
  • Method Details

    • 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 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(Object aTarget, String aKey)
      Returns the key value for given object and key, if present.
    • addKeyValue

      public RMKeyValue addKeyValue(Object aTarget, String aKey, Object aValue)
      Adds a new key value for given target, key and value.
    • propertyChange

      public void propertyChange(PropertyChangeEvent anEvent)
      Implement to catch key value changes and forward to this key frame's property change listeners.
      Specified by:
      propertyChange in interface PropertyChangeListener
    • compareTo

      public int compareTo(RMKeyFrame aKeyFrame)
      Standard compare implementation.
      Specified by:
      compareTo in interface Comparable<RMKeyFrame>
    • clone

      public RMKeyFrame clone()
      Standard clone method.
      Overrides:
      clone in class RMListenerList
    • toString

      public String toString()
      Standard to string implementation.
      Overrides:
      toString in class RMObject