Package com.reportmill.graphics
Class RMAgentGravity
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.graphics.RMAnimAgent
com.reportmill.graphics.RMAgentGravity
- All Implemented Interfaces:
RMArchiver.Archiving,Cloneable
This class provides an anim agent to drop a shape over time as if it's pulled by gravity.
-
Field Summary
Fields inherited from class com.reportmill.graphics.RMAnimAgent
_delay, _duration, _shape -
Constructor Summary
ConstructorsConstructorDescriptionCreates an unitialized gravity agent.RMAgentGravity(RMShape aShape) Creates a gravity agent for the given shape. -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()Activates the agent.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.getTitle()Returns the string used to describe this anim agent to the user.toXML(RXArchiver anArchiver) XML archival.voidupdate(float aTime) Performs actual time based modifications.Methods inherited from class com.reportmill.graphics.RMAnimAgent
setShapeMethods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
Constructor Details
-
RMAgentGravity
public RMAgentGravity()Creates an unitialized gravity agent. -
RMAgentGravity
Creates a gravity agent for the given shape.
-
-
Method Details
-
activate
public void activate()Activates the agent.- Overrides:
activatein classRMAnimAgent
-
update
public void update(float aTime) Performs actual time based modifications.- Overrides:
updatein classRMAnimAgent
-
getTitle
Returns the string used to describe this anim agent to the user.- Overrides:
getTitlein classRMAnimAgent
-
toXML
XML archival.- Overrides:
toXMLin classRMAnimAgent
-
fromXML
XML unarchival.- Overrides:
fromXMLin classRMAnimAgent
-