Package org.spoutcraft.api.animation

Examples of org.spoutcraft.api.animation.PropertyAnimation.start()


      Point end = new Point(x, z);
      PropertyAnimation ani = new PropertyAnimation(this, "scrollpos");
      ani.setStartValue(start);
      ani.setEndValue(end);
      ani.setDuration(duration);
      ani.start();
    }
  }

  public Point getCenterCoord() {
    return mapOutsideToCoords(new Point((int) (getWidth() / 2), (int) (getHeight() / 2)));
View Full Code Here


    } else {
      PropertyAnimation ani = new PropertyAnimation(this, "scale");
      ani.setStartNumber(this.scale);
      ani.setEndNumber(newscale);
      ani.setDuration(duration);
      ani.start();
    }
  }

  public void zoomBy(double d) {
    double newscale = scale * d;
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.