Package com.reportmill.shape
Class RMShapeAnim
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.shape.RMShapeAnim
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
This class holds animation record information for an RMShape.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classAn inner class to represent a time/value snapshot for an attribute.classAn inner class to represent a List of Records for a given attribute.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAgent(RMAnimAgent anAgent) Adds an agent to the agent list.voidAdds a record for an attribute/float-value pair.voidAdds a record for an attribute/value pair at a given time.voidAdds a record for an attribute/value pair.clone()Standard clone implementation.booleanStandard equals implementation.getAgent(int anIndex) Returns the specific agent at the given index.intReturns the number of agents for this shape.Returns the list of agents.getAttributesAtTime(float aTime) Returns a List of attribute strings for any attribute that has a Record for the given time.static StringgetRecordList(int anIndex) Returns the specific record list at the given index.getRecordList(String anAttr) Returns the anim RecordList for a given named attribute (or null if none exists yet).getRecordList(String anAttr, boolean create) Returns the anim RecordList for a given named attribute, with an option to create one if it doesn't exist yet.intReturns the number of record lists for the shape.getShape()Returns the shape this anim works for.booleanisEmpty()Returns whether this shape doesn't have any real animation.voidloadKeyFrames(List aList) Loads the given list with all unique anim Record times (list is ordered by time and avoids duplicates).voidremoveRecordsAtTime(float aTime) Removes any records at a given time.voidremoveRecordsBetweenTimes(float startTime, float endTime, boolean inclusive) Removes any records between the given two times (not inclusive).voidscaleRecords(float start, float length, float newLength) Scales records starting at a given start type over a given length to a new length.voidSets the shape this anim works for.voidsetTime(float aTime) Resets shape attributes from anim record values for given time.voidshiftRecords(float fromTime, float byTime) Shifts records starting at a given start time by a given amount of time.Methods inherited from class com.reportmill.base.RMObjectcopy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Constructor Details- 
RMShapeAnimCreates a new anim object for the given shape.
 
- 
- 
Method Details- 
getShapeReturns the shape this anim works for.
- 
setShapeSets the shape this anim works for.
- 
getRecordListCountpublic int getRecordListCount()Returns the number of record lists for the shape.
- 
getRecordListReturns the specific record list at the given index.
- 
getRecordListReturns the anim RecordList for a given named attribute (or null if none exists yet).
- 
getRecordListReturns the anim RecordList for a given named attribute, with an option to create one if it doesn't exist yet.
- 
isEmptypublic boolean isEmpty()Returns whether this shape doesn't have any real animation.
- 
addRecordAdds a record for an attribute/float-value pair.
- 
addRecordAdds a record for an attribute/value pair.
- 
addRecordAdds a record for an attribute/value pair at a given time.
- 
removeRecordsAtTimepublic void removeRecordsAtTime(float aTime) Removes any records at a given time.
- 
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) Shifts records starting at a given start time by a given amount of time.
- 
scaleRecordspublic void scaleRecords(float start, float length, float newLength) Scales records starting at a given start type over a given length to a new length.
- 
setTimepublic void setTime(float aTime) Resets shape attributes from anim record values for given time.
- 
loadKeyFramesLoads the given list with all unique anim Record times (list is ordered by time and avoids duplicates).
- 
getAttributesAtTimeReturns a List of attribute strings for any attribute that has a Record for the given time.
- 
getAgentCountpublic int getAgentCount()Returns the number of agents for this shape.
- 
getAgentReturns the specific agent at the given index.
- 
getAgentsReturns the list of agents.
- 
addAgentAdds an agent to the agent list.
- 
equalsStandard equals implementation.
- 
cloneStandard clone implementation.
- 
getMethod
 
-