Class RMShapeAnim.RecordList

All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess
Enclosing class:
RMShapeAnim

public class RMShapeAnim.RecordList extends ArrayList
An inner class to represent a List of Records for a given attribute.
See Also:
  • Constructor Details

    • RecordList

      public RecordList(RMShapeAnim anAnim, String anAttr)
      Creates a new record list for anim and attribute name.
  • Method Details

    • getShape

      public RMShape getShape()
      Returns the shape for this attribute record list.
    • getAnim

      public RMShapeAnim getAnim()
      Returns the anim for this record list.
    • getAttribute

      public String getAttribute()
      Returns the attribute name for this record list.
    • getRecord

      public RMShapeAnim.Record getRecord(int anIndex)
      Returns the specific record at the given index.
    • getRecordAtTime

      public RMShapeAnim.Record getRecordAtTime(float aTime)
      Returns the specific record at the given time.
    • addRecord

      public void addRecord(float aTime, Object aValue)
      Adds a new time/value pair.
    • addRecord

      public void addRecord(RMShapeAnim.Record aRec, boolean ensurePrevious)
      Adds a new time/value pair, installing a preview value if needed.
    • remove

      public Object remove(int anIndex)
      Removes the specific record at the given index.
      Specified by:
      remove in interface List
      Overrides:
      remove in class ArrayList
    • removeRecordAtTime

      public void removeRecordAtTime(float aTime)
      Removes the specific record at a given time (if it exists).
    • removeRecordsBetweenTimes

      public void removeRecordsBetweenTimes(float startTime, float endTime, boolean inclusive)
      Removes any records between the given two times (not inclusive).
    • shiftRecords

      public void shiftRecords(float fromTime, float byTime)
      This method shifts all records at or beyond a given time by the given amount.
    • scaleRecords

      public void scaleRecords(float start, float length, float newLength)
      This method scales all records from a given start time through a length to a new length.
    • setTime

      public void setTime(float aTime)
      Updates the record list shape for the given time.
    • equals

      public boolean equals(Object anObj)
      Standard equals implementation.
      Specified by:
      equals in interface Collection
      Specified by:
      equals in interface List
      Overrides:
      equals in class ArrayList