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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new unitialized anim agent.RMAnimAgent
(RMShape aShape) Creates an anim agent for the given shape. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
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.void
Sets the shape for this agent to the given shape.toXML
(RXArchiver anArchiver) XML archival.void
update
(float aTime) This method is used to perform actual modifications to the specified shape.Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
Field Details
-
_shape
-
_delay
public float _delay -
_duration
public float _duration
-
-
Constructor Details
-
RMAnimAgent
public RMAnimAgent()Creates a new unitialized anim agent. -
RMAnimAgent
Creates an anim agent for the given shape.
-
-
Method Details
-
setShape
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
Returns the string used to describe this anim agent to the user. -
toXML
XML archival. -
fromXML
XML unarchival.
-