public class RMShapeAnim.RecordList
extends java.util.ArrayList
Constructor and Description |
---|
RecordList(RMShapeAnim anAnim,
java.lang.String anAttr)
Creates a new record list for anim and attribute name.
|
Modifier and Type | Method and Description |
---|---|
void |
addRecord(float aTime,
java.lang.Object aValue)
Adds a new time/value pair.
|
void |
addRecord(RMShapeAnim.Record aRec,
boolean ensurePrevious)
Adds a new time/value pair, installing a preview value if needed.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
RMShapeAnim |
getAnim()
Returns the anim for this record list.
|
java.lang.String |
getAttribute()
Returns the attribute name for this record list.
|
RMShapeAnim.Record |
getRecord(int anIndex)
Returns the specific record at the given index.
|
RMShapeAnim.Record |
getRecordAtTime(float aTime)
Returns the specific record at the given time.
|
RMShape |
getShape()
Returns the shape for this attribute record list.
|
java.lang.Object |
remove(int anIndex)
Removes the specific record at the given index.
|
void |
removeRecordAtTime(float aTime)
Removes the specific record at a given time (if it exists).
|
void |
removeRecordsBetweenTimes(float startTime,
float endTime,
boolean inclusive)
Removes any records between the given two times (not inclusive).
|
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.
|
void |
setTime(float aTime)
Updates the record list shape for the given time.
|
void |
shiftRecords(float fromTime,
float byTime)
This method shifts all records at or beyond a given time by the given amount.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public RecordList(RMShapeAnim anAnim, java.lang.String anAttr)
public RMShape getShape()
public RMShapeAnim getAnim()
public java.lang.String getAttribute()
public RMShapeAnim.Record getRecord(int anIndex)
public RMShapeAnim.Record getRecordAtTime(float aTime)
public void addRecord(float aTime, java.lang.Object aValue)
public void addRecord(RMShapeAnim.Record aRec, boolean ensurePrevious)
public java.lang.Object remove(int anIndex)
remove
in interface java.util.List
remove
in class java.util.ArrayList
public void removeRecordAtTime(float aTime)
public void removeRecordsBetweenTimes(float startTime, float endTime, boolean inclusive)
public void shiftRecords(float fromTime, float byTime)
public void scaleRecords(float start, float length, float newLength)
public void setTime(float aTime)
public boolean equals(java.lang.Object anObj)
equals
in interface java.util.Collection
equals
in interface java.util.List
equals
in class java.util.AbstractList