Package edu.umd.cs.piccolo.activities

Examples of edu.umd.cs.piccolo.activities.PTransformActivity


      if (currentActivity != null) {
        currentActivity.terminate(PActivity.TERMINATE_WITHOUT_FINISHING);
      }

      currentActivity = new PTransformActivity(duration, PUtil.DEFAULT_ACTIVITY_STEP_RATE, t,
          destTransform);

      addActivity(currentActivity);
      return currentActivity;
    }
View Full Code Here


        public void setTransform(AffineTransform aTransform) {
          PXNode.this.setTransform(aTransform);
        }
      };

      PTransformActivity ta = new PTransformActivity(duration,
          PUtil.DEFAULT_ACTIVITY_STEP_RATE, t, destTransform);

      /*
       * Sequences the animation to occur after
       */
      if (busyAnimatingUntilTime > System.currentTimeMillis()) {
        ta.setStartTime(busyAnimatingUntilTime);
      } else {
        busyAnimatingUntilTime = System.currentTimeMillis();
      }
      busyAnimatingUntilTime += ta.getDuration();

      UIEnvironment.getInstance().addActivity(ta);
      return ta;
    }
  }
View Full Code Here

TOP

Related Classes of edu.umd.cs.piccolo.activities.PTransformActivity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.