Class RMInvocation
java.lang.Object
com.inductiveautomation.rm.graphics.RMInvocation
- All Implemented Interfaces:
Cloneable
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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Implemented by any class that can interpolate themselves for animation purposes. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an uninitialized invocation.RMInvocation
(Object aTarget, String anAction, Object aValue) Creates a new invocation for the given object, method name and value. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Standard clone implementation.Returns the action for this invocation.getArg()
Returns the arg for this invocation.Returns the class of this invocation's arg.getInterpolation
(double aFraction, RMInvocation other) Returns an invocation by blending this invocation with given invocation using the given fraction of this invocation.Returns the target for this invocation.void
invoke()
Invoke method.void
Sets the arg for this invocation.toString()
Returns a string representation of this invocation.
-
Constructor Details
-
RMInvocation
public RMInvocation()Creates an uninitialized invocation. -
RMInvocation
Creates a new invocation for the given object, method name and value.
-
-
Method Details
-
getTarget
Returns the target for this invocation. -
getAction
Returns the action for this invocation. -
getArg
Returns the arg for this invocation. -
setArg
Sets the arg for this invocation. -
getArgClass
Returns the class of this invocation's arg. -
invoke
public void invoke()Invoke method. -
getInterpolation
Returns an invocation by blending this invocation with given invocation using the given fraction of this invocation. -
clone
Standard clone implementation. -
toString
Returns a string representation of this invocation.
-