Package com.reportmill.graphics
Class RMInvocation
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.graphics.RMInvocation
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class RMInvocation extends RMObject This class represent a method call and is used to set values on another object, either by calling a "setFoo()" method or by directly setting the value of a public instance variable. The action string is always of the form "setFoo:". If the target object has a setFoo() method, that method will get called. If not, but it has a "foo" or "_foo" instance variable, that variable will get stuffed with the value.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceRMInvocation.Blending
 - 
Constructor SummaryConstructors Constructor Description RMInvocation()Creates an uninitialized invocation.RMInvocation(RMShapeAnim.RecordList aRecList, RMShapeAnim.Record aRecord)Creates a new invocation for the given record list and record.RMInvocation(java.lang.Object target, java.lang.String action, java.lang.Object value)Creates a new invocation for the given object, method name and value.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RMInvocationblend(RMInvocation other, float fraction)Returns an invocation by blending this invocation with given invocation using the given fraction of this invocation.java.lang.Objectclone()Standard clone implementation.java.lang.ObjectgetArg()Returns the arg for this invocaiton.java.lang.ClassgetArgClass()Returns the class of this invocation's arg.floatgetArgFloatValue()Returns the arg for this invocation as a float.java.lang.StringgetFunctionString()Returns the function string used for interpolating args for this invocation.java.lang.ObjectgetTargetArg()Returns the result of executing this invocation on its target.java.lang.ObjectgetTargetArg(java.lang.Object anObj)Returns the result of executing this invocation on a given object.voidinvoke()Invoke method.voidinvoke(java.lang.Object target)Invoke method on given target.voidsetAction(java.lang.String action)Sets the action or method name for this invocation.voidsetArg(java.lang.Object anObj)Sets the arg for this invocation.voidsetFunctionString(java.lang.String aString)Sets the fuction string used for interpolating args for this invocation.java.lang.StringtoString()Returns a string representation of this invocation.- 
Methods inherited from class com.reportmill.base.RMObjectcopy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Constructor Detail- 
RMInvocationpublic RMInvocation() Creates an uninitialized invocation.
 - 
RMInvocationpublic RMInvocation(java.lang.Object target, java.lang.String action, java.lang.Object value)Creates a new invocation for the given object, method name and value.
 - 
RMInvocationpublic RMInvocation(RMShapeAnim.RecordList aRecList, RMShapeAnim.Record aRecord) Creates a new invocation for the given record list and record.
 
- 
 - 
Method Detail- 
setActionpublic void setAction(java.lang.String action) Sets the action or method name for this invocation.
 - 
getArgpublic java.lang.Object getArg() Returns the arg for this invocaiton.
 - 
setArgpublic void setArg(java.lang.Object anObj) Sets the arg for this invocation.
 - 
getArgFloatValuepublic float getArgFloatValue() Returns the arg for this invocation as a float.
 - 
getTargetArgpublic java.lang.Object getTargetArg() Returns the result of executing this invocation on its target.
 - 
getTargetArgpublic java.lang.Object getTargetArg(java.lang.Object anObj) Returns the result of executing this invocation on a given object.
 - 
getArgClasspublic java.lang.Class getArgClass() Returns the class of this invocation's arg.
 - 
getFunctionStringpublic java.lang.String getFunctionString() Returns the function string used for interpolating args for this invocation.
 - 
setFunctionStringpublic void setFunctionString(java.lang.String aString) Sets the fuction string used for interpolating args for this invocation.
 - 
invokepublic void invoke() Invoke method.
 - 
invokepublic void invoke(java.lang.Object target) Invoke method on given target.
 - 
blendpublic RMInvocation blend(RMInvocation other, float fraction) Returns an invocation by blending this invocation with given invocation using the given fraction of this invocation.
 - 
clonepublic java.lang.Object clone() Standard clone implementation.
 - 
toStringpublic java.lang.String toString() Returns a string representation of this invocation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-