Package ca.nengo.ui.lib.world.activities

Examples of ca.nengo.ui.lib.world.activities.Fader


  public void fadeAndDestroy() {
    if (isDestroyed()) {
      return;
    }

    PActivity fadeOutActivity = new Fader(this, 100, 0);
    if (fadeInActivity != null) {

      if ((fadeInActivity.getStartTime() + fadeInActivity.getDuration()) > System
          .currentTimeMillis())
        fadeOutActivity.startAfter(fadeInActivity);

    }
    if (fadeInPhase2Activity != null) {
      fadeInPhase2Activity.terminate(PActivity.TERMINATE_WITHOUT_FINISHING);
    }
View Full Code Here


  /**
   * Fades in, in an animated sequence
   */
  public void fadeIn() {
    setTransparency(0);
    fadeInActivity = new Fader(this, 100, 1f);
    UIEnvironment.getInstance().addActivity(fadeInActivity);

    // /*
    // * fade in more slowly in the second phase.
    // */
 
View Full Code Here

        TransientMessage.this.setVisible(true);
        Point2D startingOffset = getOffset();
        animateToPositionScaleRotation(startingOffset.getX(),
            startingOffset.getY() - 50, 1, 0, ANIMATE_MSG_DURATION);

        PActivity fadeOutActivity = new Fader(TransientMessage.this,
            ANIMATE_MSG_DURATION, 0f);
        UIEnvironment.getInstance().addActivity(fadeOutActivity);

        PActivity removeActivity = new PActivity(0) {
View Full Code Here

TOP

Related Classes of ca.nengo.ui.lib.world.activities.Fader

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.