Package org.xtext.tortoiseshell.lib.view

Examples of org.xtext.tortoiseshell.lib.view.Animation


          Point _oldPosition_2 = ((MoveEvent)event).getOldPosition();
          Tortoise _tortoise_3 = ((MoveEvent)event).getTortoise();
          Point _position = _tortoise_3.getPosition();
          Tortoise _tortoise_4 = ((MoveEvent)event).getTortoise();
          int _delay = _tortoise_4.getDelay();
          Animation _animation = new Animation(_oldPosition_2, _position, line, _delay);
          this.animator.addAnimation(_animation);
        } else {
          Point _oldPosition_3 = ((MoveEvent)event).getOldPosition();
          Tortoise _tortoise_5 = ((MoveEvent)event).getTortoise();
          Point _position_1 = _tortoise_5.getPosition();
          Tortoise _tortoise_6 = ((MoveEvent)event).getTortoise();
          int _delay_1 = _tortoise_6.getDelay();
          Animation _animation_1 = new Animation(_oldPosition_3, _position_1, _delay_1);
          this.animator.addAnimation(_animation_1);
        }
      }
    }
    if (!_matched) {
      if (event instanceof TurnEvent) {
        _matched=true;
        double _oldAngle = ((TurnEvent)event).getOldAngle();
        Tortoise _tortoise = ((TurnEvent)event).getTortoise();
        double _angleInRadians = _tortoise.getAngleInRadians();
        Tortoise _tortoise_1 = ((TurnEvent)event).getTortoise();
        int _delay = _tortoise_1.getDelay();
        Animation _animation = new Animation(_oldAngle, _angleInRadians, _delay);
        this.animator.addAnimation(_animation);
      }
    }
  }
View Full Code Here


      if (this.isStop) {
        this.isStop = false;
        this.isScheduled = false;
      } else {
        final long now = System.currentTimeMillis();
        Animation currentAnimation = this.animationQueue.peek();
        while (((!Objects.equal(currentAnimation, null)) && (now >= (this.lastStart + currentAnimation.getDelay())))) {
          {
            Animation _poll = this.animationQueue.poll();
            TortoiseFigure _tortoiseFigure = this.view.getTortoiseFigure();
            _poll.set(_tortoiseFigure, 1);
            int _delay = currentAnimation.getDelay();
            long _plus = (this.lastStart + _delay);
            this.lastStart = _plus;
            Animation _peek = this.animationQueue.peek();
            currentAnimation = _peek;
          }
        }
        boolean _notEquals = (!Objects.equal(currentAnimation, null));
        if (_notEquals) {
View Full Code Here

TOP

Related Classes of org.xtext.tortoiseshell.lib.view.Animation

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.