Package com.reportmill.graphics
Class RMAnimAgent
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.graphics.RMAnimAgent
-
- All Implemented Interfaces:
RMArchiver.Archiving
,java.lang.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.
-
-
Constructor Summary
Constructors Constructor Description RMAnimAgent()
Creates a new unitialized anim agent.RMAnimAgent(RMShape aShape)
Creates an anim agent for the given shape.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
This method is called to perform initializations before update(time) is called.java.lang.Object
fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.java.lang.String
getTitle()
Returns the string used to describe this anim agent to the user.void
setShape(RMShape aShape)
Sets the shape for this agent to the given shape.RXElement
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 Detail
-
_shape
public RMShape _shape
-
_delay
public float _delay
-
_duration
public float _duration
-
-
Constructor Detail
-
RMAnimAgent
public RMAnimAgent()
Creates a new unitialized anim agent.
-
RMAnimAgent
public RMAnimAgent(RMShape aShape)
Creates an anim agent for the given shape.
-
-
Method Detail
-
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 java.lang.String getTitle()
Returns the string used to describe this anim agent to the user.
-
toXML
public RXElement toXML(RXArchiver anArchiver)
XML archival.
-
fromXML
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.
-
-