Example #1
0
 public synchronized void addAnimation(Animation anm) {
   if (anm != null) {
     anm.Listener = asl;
     playAnimations.add(anm);
     isRunning = true;
     size++;
   }
 }
Example #2
0
 public AnimationStorage(ArrayList<Animation> f) {
   this.asl = new AnimationStorageListener(this);
   if (f != null) {
     playAnimations = f;
   } else {
     playAnimations = new ArrayList<Animation>(CollectionUtils.INITIAL_CAPACITY);
   }
   for (Animation a : playAnimations) {
     if (a != null) {
       a.Listener = asl;
     }
   }
   this.size = playAnimations.size();
   this.loopOverToPlay = true;
   this.loopOverToRemove = false;
 }