All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sencha.gxt.fx.client.animation.MultiEffect Maven / Gradle / Ivy

There is a newer version: 3.1.1
Show newest version
package com.sencha.gxt.fx.client.animation;

import java.util.ArrayList;
import java.util.List;

import com.sencha.gxt.core.client.dom.XElement;

public class MultiEffect extends BaseEffect {

  protected List effects;

  public MultiEffect(XElement el) {
    super(el);
    effects = new ArrayList();
  }

  public void addEffects(Effect... effects) {
    for (int i = 0; i < effects.length; i++) {
      this.effects.add(effects[i]);
    }
  }

  public void addEffects(List effects) {
    for (Effect e : effects) {
      this.effects.add(e);
    }
  }

  @Override
  public void onCancel() {
    for (Effect e : effects) {
      e.onCancel();
    }
  }

  @Override
  public void onComplete() {
    for (Effect e : effects) {
      e.onComplete();
    }
  }

  @Override
  public void onStart() {
    for (Effect e : effects) {
      e.onStart();
    }
  }

  @Override
  public void onUpdate(double progress) {
    for (Effect e : effects) {
      e.onUpdate(progress);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy