Class RMAnimAgent

java.lang.Object
com.reportmill.base.RMObject
com.reportmill.graphics.RMAnimAgent
All Implemented Interfaces:
RMArchiver.Archiving, Cloneable
Direct Known Subclasses:
RMAgentFadeIn, RMAgentGravity, RMAgentTypewriter

public class RMAnimAgent extends RMObject
This class is the base class used for creating sophisticated animation effects, like gravity.
  • Field Details

    • _shape

      public RMShape _shape
    • _delay

      public float _delay
    • _duration

      public float _duration
  • Constructor Details

    • RMAnimAgent

      public RMAnimAgent()
      Creates a new unitialized anim agent.
    • RMAnimAgent

      public RMAnimAgent(RMShape aShape)
      Creates an anim agent for the given shape.
  • Method Details

    • setShape

      public void setShape(RMShape aShape)
      Sets the shape for this agent to the given shape.
    • activate

      public void activate()
      This method is called to perform initializations before update(time) is called.
    • update

      public void update(float aTime)
      This method is used to perform actual modifications to the specified shape.
    • getTitle

      public String getTitle()
      Returns the string used to describe this anim agent to the user.
    • toXML

      public RXElement toXML(RXArchiver anArchiver)
      XML archival.
    • fromXML

      public Object fromXML(RXArchiver anArchiver, RXElement anElement)
      XML unarchival.