Exemple #1
0
 public void setScale(double newscale, boolean animated, int duration) {
   if (!animated) {
     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();
   }
 }