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
,java.lang.Cloneable
public class RMAgentGravity extends RMAnimAgent
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
Constructors Constructor Description RMAgentGravity()
Creates an unitialized gravity agent.RMAgentGravity(RMShape aShape)
Creates a gravity agent for the given shape.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
Activates the agent.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.RXElement
toXML(RXArchiver anArchiver)
XML archival.void
update(float aTime)
Performs actual time based modifications.-
Methods inherited from class com.reportmill.graphics.RMAnimAgent
setShape
-
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
-
-
-
Constructor Detail
-
RMAgentGravity
public RMAgentGravity()
Creates an unitialized gravity agent.
-
RMAgentGravity
public RMAgentGravity(RMShape aShape)
Creates a gravity agent for the given shape.
-
-
Method Detail
-
activate
public void activate()
Activates the agent.- Overrides:
activate
in classRMAnimAgent
-
update
public void update(float aTime)
Performs actual time based modifications.- Overrides:
update
in classRMAnimAgent
-
getTitle
public java.lang.String getTitle()
Returns the string used to describe this anim agent to the user.- Overrides:
getTitle
in classRMAnimAgent
-
toXML
public RXElement toXML(RXArchiver anArchiver)
XML archival.- Overrides:
toXML
in classRMAnimAgent
-
fromXML
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.- Overrides:
fromXML
in classRMAnimAgent
-
-