Package javafx.animation

Examples of javafx.animation.FadeTransition


        }

    }

    private void fadeBackToInteractive() {
        FadeTransition fadeUnitOut = new FadeTransition(Duration.millis(425), unit);
        fadeUnitOut.setFromValue(1.0);
        fadeUnitOut.setToValue(0.0);
        FadeTransition fadeValueOut = new FadeTransition(Duration.millis(425), value);
        fadeValueOut.setFromValue(1.0);
        fadeValueOut.setToValue(0.0);

        PauseTransition pause = new PauseTransition(Duration.millis(50));

        FadeTransition fadeUnitIn = new FadeTransition(Duration.millis(425), unit);
        fadeUnitIn.setFromValue(0.0);
        fadeUnitIn.setToValue(1.0);
        FadeTransition fadeValueIn = new FadeTransition(Duration.millis(425), value);
        fadeValueIn.setFromValue(0.0);
        fadeValueIn.setToValue(1.0);
        ParallelTransition parallelIn = new ParallelTransition(fadeUnitIn, fadeValueIn);

        ParallelTransition parallelOut = new ParallelTransition(fadeUnitOut, fadeValueOut);
        parallelOut.setOnFinished(event -> {
            unit.setText("Interactive");
View Full Code Here


        super.setOpacity(0);
        stage.showingProperty().addListener(new ChangeListener<Boolean>() {
            @Override
            public void changed(ObservableValue<? extends Boolean> ov, Boolean t, Boolean t1) {
                if (t1.booleanValue()) {
                    FadeTransition fadeTransition = new FadeTransition(Duration.seconds(2), Undecorator.this);
                    fadeTransition.setToValue(1);
                    fadeTransition.play();
                }
            }
        });
    }
View Full Code Here

    /**
     * Launch the fade out transition. Must be invoked when the
     * application/window is supposed to be closed
     */
    public void setFadeOutTransition() {
        FadeTransition fadeTransition = new FadeTransition(Duration.seconds(1), Undecorator.this);
        fadeTransition.setToValue(0);
        fadeTransition.play();
        fadeTransition.setOnFinished(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent t) {
                stage.hide();
                if (dockFeedbackPopup != null && dockFeedbackPopup.isShowing()) {
                    dockFeedbackPopup.hide();
View Full Code Here

   
    TranslateTransition tt = new TranslateTransition(new Duration(3000), text2);
    tt.setFromX(-220);
    tt.setToX(0);
   
    FadeTransition ft = new FadeTransition(new Duration(2000), logo);
    ft.setFromValue(0);
    ft.setToValue(1.0);
   
    ScaleTransition st = new ScaleTransition(new Duration(2000),logo);
    st.setFromX(0);
    st.setToX(1);
   
View Full Code Here

        loggedUser.setAddress(address.getText());
        animateMessage();
    }

    private void animateMessage() {
        FadeTransition ft = new FadeTransition(new Duration(3000), success);
        ft.setFromValue(0.0);
        ft.setToValue(1);
        ft.play();
    }   
View Full Code Here

    Bounds leftBounds = left.getBoundsInParent();
   
    Bounds rightBounds = right.getBoundsInParent();
   
   
    FadeTransition fadeOut = FadeTransitionBuilder.create()
      .duration(new Duration(100))
      .fromValue(1)
      .toValue(0.3)
      .build();
   
    FadeTransition fadeIn = FadeTransitionBuilder.create()
      .duration(new Duration(100))
      .fromValue(0.3)
      .toValue(1)
      .build();
   
View Full Code Here

        loggedUser.setAddress(address.getText());
        animateMessage();
    }

    private void animateMessage() {
        FadeTransition ft = new FadeTransition(new Duration(3000), success);
        ft.setFromValue(0.0);
        ft.setToValue(1);
        ft.play();
    }   
View Full Code Here

    ctx.bindValue(uiProp.observe(lastname), BeanProperties.value("lastname").observeDetail(master));
    ctx.bindValue(uiProp.observe(street), BeanProperties.value("street").observeDetail(master));
    ctx.bindValue(uiProp.observe(zip), BeanProperties.value("zip").observeDetail(master));
    ctx.bindValue(uiProp.observe(city), BeanProperties.value("city").observeDetail(master));
   
    fadeOutTransition = new FadeTransition(Duration.millis(500), personroot);
        fadeOutTransition.setFromValue(1.0f);
        fadeOutTransition.setToValue(0.0f);
        fadeOutTransition.setAutoReverse(true);
       
        fadeInTransition = new FadeTransition(Duration.millis(500), personroot);
        fadeInTransition.setFromValue(0.0f);
        fadeInTransition.setToValue(1.0f);
        fadeInTransition.setAutoReverse(true);
  }
View Full Code Here

TOP

Related Classes of javafx.animation.FadeTransition

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.