Package com.reportmill.shape
Class RMShapeAnim
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.shape.RMShapeAnim
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class RMShapeAnim extends RMObject This class holds animation record information for an RMShape.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRMShapeAnim.RecordAn inner class to represent a time/value snapshot for an attribute.classRMShapeAnim.RecordListAn inner class to represent a List of Records for a given attribute.
 - 
Constructor SummaryConstructors Constructor Description RMShapeAnim(RMShape aShape)Creates a new anim object for the given shape.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAgent(RMAnimAgent anAgent)Adds an agent to the agent list.voidaddRecord(java.lang.String anAttr, float aValue)Adds a record for an attribute/float-value pair.voidaddRecord(java.lang.String anAttr, float aTime, java.lang.Object aValue)Adds a record for an attribute/value pair at a given time.voidaddRecord(java.lang.String anAttr, java.lang.Object aValue)Adds a record for an attribute/value pair.java.lang.Objectclone()Standard clone implementation.booleanequals(java.lang.Object anObj)Standard equals implementation.RMAnimAgentgetAgent(int anIndex)Returns the specific agent at the given index.intgetAgentCount()Returns the number of agents for this shape.java.util.ListgetAgents()Returns the list of agents.java.util.ListgetAttributesAtTime(float aTime)Returns a List of attribute strings for any attribute that has a Record for the given time.static java.lang.StringgetMethod(java.lang.String aName)RMShapeAnim.RecordListgetRecordList(int anIndex)Returns the specific record list at the given index.RMShapeAnim.RecordListgetRecordList(java.lang.String anAttr)Returns the anim RecordList for a given named attribute (or null if none exists yet).RMShapeAnim.RecordListgetRecordList(java.lang.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.intgetRecordListCount()Returns the number of record lists for the shape.RMShapegetShape()Returns the shape this anim works for.booleanisEmpty()Returns whether this shape doesn't have any real animation.voidloadKeyFrames(java.util.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.voidsetShape(RMShape aShape)Sets 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 Detail- 
RMShapeAnimpublic RMShapeAnim(RMShape aShape) Creates a new anim object for the given shape.
 
- 
 - 
Method Detail- 
getShapepublic RMShape getShape() Returns the shape this anim works for.
 - 
setShapepublic void setShape(RMShape aShape) Sets the shape this anim works for.
 - 
getRecordListCountpublic int getRecordListCount() Returns the number of record lists for the shape.
 - 
getRecordListpublic RMShapeAnim.RecordList getRecordList(int anIndex) Returns the specific record list at the given index.
 - 
getRecordListpublic RMShapeAnim.RecordList getRecordList(java.lang.String anAttr) Returns the anim RecordList for a given named attribute (or null if none exists yet).
 - 
getRecordListpublic RMShapeAnim.RecordList getRecordList(java.lang.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.
 - 
isEmptypublic boolean isEmpty() Returns whether this shape doesn't have any real animation.
 - 
addRecordpublic void addRecord(java.lang.String anAttr, float aValue)Adds a record for an attribute/float-value pair.
 - 
addRecordpublic void addRecord(java.lang.String anAttr, java.lang.Object aValue)Adds a record for an attribute/value pair.
 - 
addRecordpublic void addRecord(java.lang.String anAttr, float aTime, java.lang.Object aValue)Adds 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.
 - 
loadKeyFramespublic void loadKeyFrames(java.util.List aList) Loads the given list with all unique anim Record times (list is ordered by time and avoids duplicates).
 - 
getAttributesAtTimepublic java.util.List getAttributesAtTime(float aTime) Returns 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.
 - 
getAgentpublic RMAnimAgent getAgent(int anIndex) Returns the specific agent at the given index.
 - 
getAgentspublic java.util.List getAgents() Returns the list of agents.
 - 
addAgentpublic void addAgent(RMAnimAgent anAgent) Adds an agent to the agent list.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.- Overrides:
- equalsin class- java.lang.Object
 
 - 
clonepublic java.lang.Object clone() Standard clone implementation.
 - 
getMethodpublic static java.lang.String getMethod(java.lang.String aName) 
 
- 
 
-