Package com.reportmill.graphics
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
This class is the base class used for creating sophisticated animation effects, like gravity.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new unitialized anim agent.RMAnimAgent(RMShape aShape) Creates an anim agent for the given shape.
- 
Method SummaryModifier and TypeMethodDescriptionvoidactivate()This method is called to perform initializations before update(time) is called.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.getTitle()Returns the string used to describe this anim agent to the user.voidSets the shape for this agent to the given shape.toXML(RXArchiver anArchiver) XML archival.voidupdate(float aTime) This method is used to perform actual modifications to the specified shape.Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Field Details- 
_shape
- 
_delaypublic float _delay
- 
_durationpublic float _duration
 
- 
- 
Constructor Details- 
RMAnimAgentpublic RMAnimAgent()Creates a new unitialized anim agent.
- 
RMAnimAgentCreates an anim agent for the given shape.
 
- 
- 
Method Details- 
setShapeSets the shape for this agent to the given shape.
- 
activatepublic void activate()This method is called to perform initializations before update(time) is called.
- 
updatepublic void update(float aTime) This method is used to perform actual modifications to the specified shape.
- 
getTitleReturns the string used to describe this anim agent to the user.
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
 
-