Package aurelienribon.tweenengine

Examples of aurelienribon.tweenengine.TweenCallback


  private void initTimeline() {
    iterationTimeSlider.setMaximum(canvas.getTimeline().getDuration());
    totalTimeSlider.setMaximum(canvas.getTimeline().getFullDuration());

    canvas.getTimeline().addCallback(EventType.BEGIN, new TweenCallback() {
      @Override public void onEvent(EventType eventType, BaseTween source) {
        totalTimeSlider.setValue(0);
      }
    });

    canvas.getTimeline().addCallback(EventType.START, new TweenCallback() {
      @Override public void onEvent(EventType eventType, BaseTween source) {
        if (canvas.getTimeline().getState()%4 == 2 && canvas.getTimeline().isYoyo())
          iterationTimeSlider.setValue(canvas.getTimeline().getFullDuration());
        else if (canvas.getTimeline().getState()%2 == 0)
          iterationTimeSlider.setValue(0);
View Full Code Here


      boolean yoyo = yoyoChk.isSelected();

      if (rptCnt > 0 && yoyo) timeline.repeatYoyo(rptCnt, rpDelay);
      else if (rptCnt > 0) timeline.repeat(rptCnt, rpDelay);

      timeline.addCallback(EventType.COMPLETE, new TweenCallback() {
        @Override public void onEvent(EventType eventType, BaseTween source) {
          timeline = null;
        }
      });

      timeline.addCallback(EventType.BACK_COMPLETE, new TweenCallback() {
        @Override public void onEvent(EventType eventType, BaseTween source) {
          timeline = null;
        }
      });
View Full Code Here

          .delay(kf.getDelay(c))
        );
      }
    }

    timeline.setCallback(new TweenCallback() {
      @Override public void onEvent(int type, BaseTween<?> source) {
        for (Component c : kf.getCmpsToAddAfterTransition()) {
          panel.add(c, new Integer(1));
        }
View Full Code Here

    Tween.registerAccessor(Sprite.class, new SpriteTween());

    manager = new TweenManager();

    TweenCallback cb = new TweenCallback() {

      @Override
      public void onEvent(int type, BaseTween<?> source) {
        tweenCompleted();
View Full Code Here

   
    Tween.registerAccessor(Sprite.class, new SpriteTween());
   
    manager = new TweenManager();
   
    TweenCallback cb = new TweenCallback() {     
      @Override
      public void onEvent(int type, BaseTween<?> source) {
        tweenCompleted();
      }
    };
View Full Code Here

TOP

Related Classes of aurelienribon.tweenengine.TweenCallback

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.