Package net.edzard.kinetic

Examples of net.edzard.kinetic.Animation


 
  public void testAnimatingPosition() {
   
    final Circle e = Kinetic.createCircle(pos1, 10);
   
    final Animation animation = Kinetic.createAnimation(layer, new Drawable() {
      @Override
      public void draw(Frame frame) {
        e.setPosition(pos2);
        assertEquals("Position cannot be set", pos2, e.getPosition());
      }
    });
   
    assertEquals("Position cannot be set", pos1, e.getPosition());
    animation.start();
    layer.draw();
    animation.stop();
    assertEquals("Animated position does not match", pos2, e.getPosition());
 
View Full Code Here

TOP

Related Classes of net.edzard.kinetic.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.