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 Summary
Nested 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 Summary
Constructors -
Method Summary
Modifier 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.RMObject
copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
Constructor Details
-
RMShapeAnim
Creates a new anim object for the given shape.
-
-
Method Details
-
getShape
Returns the shape this anim works for. -
setShape
Sets the shape this anim works for. -
getRecordListCount
public int getRecordListCount()Returns the number of record lists for the shape. -
getRecordList
Returns the specific record list at the given index. -
getRecordList
Returns the anim RecordList for a given named attribute (or null if none exists yet). -
getRecordList
Returns the anim RecordList for a given named attribute, with an option to create one if it doesn't exist yet. -
isEmpty
public boolean isEmpty()Returns whether this shape doesn't have any real animation. -
addRecord
Adds a record for an attribute/float-value pair. -
addRecord
Adds a record for an attribute/value pair. -
addRecord
Adds a record for an attribute/value pair at a given time. -
removeRecordsAtTime
public void removeRecordsAtTime(float aTime) Removes any records at a given time. -
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) Shifts records starting at a given start time by a given amount of time. -
scaleRecords
public void scaleRecords(float start, float length, float newLength) Scales records starting at a given start type over a given length to a new length. -
setTime
public void setTime(float aTime) Resets shape attributes from anim record values for given time. -
loadKeyFrames
Loads the given list with all unique anim Record times (list is ordered by time and avoids duplicates). -
getAttributesAtTime
Returns a List of attribute strings for any attribute that has a Record for the given time. -
getAgentCount
public int getAgentCount()Returns the number of agents for this shape. -
getAgent
Returns the specific agent at the given index. -
getAgents
Returns the list of agents. -
addAgent
Adds an agent to the agent list. -
equals
Standard equals implementation. -
clone
Standard clone implementation. -
getMethod
-