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 Type
    Method
    Description
    void
    getSourceMatrix(double[] aSource)
    This method is called right before the transform activity starts.
    void
    This will be called by the transform activity for each new transform that it computes while it is stepping.
  • Method Details

    • setTransform

      void setTransform(AffineTransform aTransform)
      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