Package org.spoutcraft.api.animation

Examples of org.spoutcraft.api.animation.PropertyAnimation


      setScrollPosition(Orientation.HORIZONTAL, scrollX - (int) (getWidth() / 2));
      setScrollPosition(Orientation.VERTICAL, scrollZ - (int) (getHeight() / 2));
    } else {
      Point start = getCenterCoord();
      Point end = new Point(x, z);
      PropertyAnimation ani = new PropertyAnimation(this, "scrollpos");
      ani.setStartValue(start);
      ani.setEndValue(end);
      ani.setDuration(duration);
      ani.start();
    }
  }
View Full Code Here


      Point center = getCenterCoord();
      this.scale = newscale;
      scrollTo(center);
      updateLOD();
    } else {
      PropertyAnimation ani = new PropertyAnimation(this, "scale");
      ani.setStartNumber(this.scale);
      ani.setEndNumber(newscale);
      ani.setDuration(duration);
      ani.start();
    }
  }
View Full Code Here

TOP

Related Classes of org.spoutcraft.api.animation.PropertyAnimation

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.