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:
Serializable
,Cloneable
,Iterable
,Collection
,List
,RandomAccess
- Enclosing class:
- RMShapeAnim
An inner class to represent a List of Records for a given attribute.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionRecordList
(RMShapeAnim anAnim, String anAttr) Creates a new record list for anim and attribute name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Standard equals implementation.getAnim()
Returns the anim for this record list.Returns the attribute name for this record list.getRecord
(int anIndex) Returns the specific record at the given index.getRecordAtTime
(float aTime) Returns the specific record at the given time.getShape()
Returns the shape for this attribute record list.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.Methods inherited from class java.util.ArrayList
add, 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
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Constructor Details
-
RecordList
Creates a new record list for anim and attribute name.
-
-
Method Details
-
getShape
Returns the shape for this attribute record list. -
getAnim
Returns the anim for this record list. -
getAttribute
Returns the attribute name for this record list. -
getRecord
Returns the specific record at the given index. -
getRecordAtTime
Returns the specific record at the given time. -
addRecord
Adds a new time/value pair. -
addRecord
Adds a new time/value pair, installing a preview value if needed. -
remove
Removes the specific record at the given index. -
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
Standard equals implementation.
-