Class RMShapeAnim

java.lang.Object
com.reportmill.base.RMObject
com.reportmill.shape.RMShapeAnim
All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

public class RMShapeAnim extends RMObject
This class holds animation record information for an RMShape.
  • Constructor Details

    • RMShapeAnim

      public RMShapeAnim(RMShape aShape)
      Creates a new anim object for the given shape.
  • Method Details

    • getShape

      public RMShape getShape()
      Returns the shape this anim works for.
    • setShape

      public void setShape(RMShape aShape)
      Sets the shape this anim works for.
    • getRecordListCount

      public int getRecordListCount()
      Returns the number of record lists for the shape.
    • getRecordList

      public RMShapeAnim.RecordList getRecordList(int anIndex)
      Returns the specific record list at the given index.
    • getRecordList

      public RMShapeAnim.RecordList getRecordList(String anAttr)
      Returns the anim RecordList for a given named attribute (or null if none exists yet).
    • getRecordList

      public RMShapeAnim.RecordList 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.
    • isEmpty

      public boolean isEmpty()
      Returns whether this shape doesn't have any real animation.
    • addRecord

      public void addRecord(String anAttr, float aValue)
      Adds a record for an attribute/float-value pair.
    • addRecord

      public void addRecord(String anAttr, Object aValue)
      Adds a record for an attribute/value pair.
    • addRecord

      public void addRecord(String anAttr, float aTime, Object aValue)
      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

      public void loadKeyFrames(List aList)
      Loads the given list with all unique anim Record times (list is ordered by time and avoids duplicates).
    • getAttributesAtTime

      public List getAttributesAtTime(float aTime)
      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

      public RMAnimAgent getAgent(int anIndex)
      Returns the specific agent at the given index.
    • getAgents

      public List getAgents()
      Returns the list of agents.
    • addAgent

      public void addAgent(RMAnimAgent anAgent)
      Adds an agent to the agent list.
    • equals

      public boolean equals(Object anObj)
      Standard equals implementation.
      Overrides:
      equals in class Object
    • clone

      public Object clone()
      Standard clone implementation.
      Overrides:
      clone in class RMObject
    • getMethod

      public static String getMethod(String aName)