Package com.reportmill.shape
Class RMShapeAnim.RecordList
- java.lang.Object
- 
- java.util.AbstractCollection<E>
- 
- java.util.AbstractList<E>
- 
- java.util.ArrayList
- 
- com.reportmill.shape.RMShapeAnim.RecordList
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable,- java.lang.Iterable,- java.util.Collection,- java.util.List,- java.util.RandomAccess
 - Enclosing class:
- RMShapeAnim
 
 public class RMShapeAnim.RecordList extends java.util.ArrayListAn inner class to represent a List of Records for a given attribute.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description RecordList(RMShapeAnim anAnim, java.lang.String anAttr)Creates a new record list for anim and attribute name.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRecord(float aTime, java.lang.Object aValue)Adds a new time/value pair.voidaddRecord(RMShapeAnim.Record aRec, boolean ensurePrevious)Adds a new time/value pair, installing a preview value if needed.booleanequals(java.lang.Object anObj)Standard equals implementation.RMShapeAnimgetAnim()Returns the anim for this record list.java.lang.StringgetAttribute()Returns the attribute name for this record list.RMShapeAnim.RecordgetRecord(int anIndex)Returns the specific record at the given index.RMShapeAnim.RecordgetRecordAtTime(float aTime)Returns the specific record at the given time.RMShapegetShape()Returns the shape for this attribute record list.java.lang.Objectremove(int anIndex)Removes the specific record at the given index.voidremoveRecordAtTime(float aTime)Removes the specific record at a given time (if it exists).voidremoveRecordsBetweenTimes(float startTime, float endTime, boolean inclusive)Removes any records between the given two times (not inclusive).voidscaleRecords(float start, float length, float newLength)This method scales all records from a given start time through a length to a new length.voidsetTime(float aTime)Updates the record list shape for the given time.voidshiftRecords(float fromTime, float byTime)This method shifts all records at or beyond a given time by the given amount.- 
Methods inherited from class java.util.ArrayListadd, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
 
- 
 
- 
- 
- 
Constructor Detail- 
RecordListpublic RecordList(RMShapeAnim anAnim, java.lang.String anAttr) Creates a new record list for anim and attribute name.
 
- 
 - 
Method Detail- 
getShapepublic RMShape getShape() Returns the shape for this attribute record list.
 - 
getAnimpublic RMShapeAnim getAnim() Returns the anim for this record list.
 - 
getAttributepublic java.lang.String getAttribute() Returns the attribute name for this record list.
 - 
getRecordpublic RMShapeAnim.Record getRecord(int anIndex) Returns the specific record at the given index.
 - 
getRecordAtTimepublic RMShapeAnim.Record getRecordAtTime(float aTime) Returns the specific record at the given time.
 - 
addRecordpublic void addRecord(float aTime, java.lang.Object aValue)Adds a new time/value pair.
 - 
addRecordpublic void addRecord(RMShapeAnim.Record aRec, boolean ensurePrevious) Adds a new time/value pair, installing a preview value if needed.
 - 
removepublic java.lang.Object remove(int anIndex) Removes the specific record at the given index.- Specified by:
- removein interface- java.util.List
- Overrides:
- removein class- java.util.ArrayList
 
 - 
removeRecordAtTimepublic void removeRecordAtTime(float aTime) Removes the specific record at a given time (if it exists).
 - 
removeRecordsBetweenTimespublic void removeRecordsBetweenTimes(float startTime, float endTime, boolean inclusive)Removes any records between the given two times (not inclusive).
 - 
shiftRecordspublic void shiftRecords(float fromTime, float byTime)This method shifts all records at or beyond a given time by the given amount.
 - 
scaleRecordspublic 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.
 - 
setTimepublic void setTime(float aTime) Updates the record list shape for the given time.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.- Specified by:
- equalsin interface- java.util.Collection
- Specified by:
- equalsin interface- java.util.List
- Overrides:
- equalsin class- java.util.ArrayList
 
 
- 
 
-