Package edu.umd.cs.piccolo.activities
Interface PTransformActivity.Target
- Enclosing class:
- PTransformActivity
public static interface PTransformActivity.Target
Target Objects that want to get transformed by the transform
activity must implement this interface. See PNode.animateToTransform()
for one way to do this.
-
Method Summary
Modifier and TypeMethodDescriptionvoidgetSourceMatrix(double[] aSource) This method is called right before the transform activity starts.voidsetTransform(AffineTransform aTransform) This will be called by the transform activity for each new transform that it computes while it is stepping.
-
Method Details
-
setTransform
This will be called by the transform activity for each new transform that it computes while it is stepping.- Parameters:
aTransform- the transform to be applied to the target.
-
getSourceMatrix
void getSourceMatrix(double[] aSource) This method is called right before the transform activity starts. That way an object is always animated from its current position.- Parameters:
aSource- array to be populated with the target's gurrent matrix
-