Package javafx.util

Examples of javafx.util.Duration


    return FadeTransitionBuilder.create()
      .node(curNode)
      .interpolator(Interpolator.EASE_BOTH)
      .fromValue(1.0)
      .toValue(0.0)
      .duration(new Duration(1000))
      .build();
  }
View Full Code Here


//    newNode.setEffect(new DropShadow(2, 2, 2, Color.RED));
   
    TranslateTransitionBuilder slide = TranslateTransitionBuilder.create()
      .interpolator(Interpolator.EASE_BOTH)
      .byX(deltaX)
      .duration(new Duration(300));
   
    ScaleTransitionBuilder zoomOut = ScaleTransitionBuilder.create()
      .duration(new Duration(300))
      .toX(0.7)
      .toY(0.7)
      .interpolator(Interpolator.EASE_BOTH);
    ScaleTransitionBuilder zoomIn = ScaleTransitionBuilder.create()
      .duration(new Duration(300))
      .toX(1)
      .toY(1)
      .interpolator(Interpolator.EASE_BOTH);
   
    return SequentialTransitionBuilder.create()
View Full Code Here

      FadeTransitionBuilder.create()
        .node(label)
        .interpolator(Interpolator.EASE_IN)
        .fromValue(0)
        .toValue(1)
        .duration(new Duration(800))
        .build(),
      PauseTransitionBuilder.create()
        .duration(new Duration(500))
        .build(),
      FadeTransitionBuilder.create()
        .node(label)
        .interpolator(Interpolator.EASE_OUT)
        .fromValue(1)
        .toValue(0)
        .duration(new Duration(1000))
        .build()
    ).build();
  }
View Full Code Here

        pane.getChildren().remove(label);
        pane.getChildren().add(label);
      }
     
      a.stop();
      a.playFrom(new Duration(800));
      return;
    }
   
    pane.getChildren().add(label);
   
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

    for (Node circle : circles.getChildren()) {
      timeline.getKeyFrames().addAll(new KeyFrame(Duration.ZERO, // set
                                    // start
                                    // position
                                    // at 0
          new KeyValue(circle.translateXProperty(), random() * 800), new KeyValue(circle.translateYProperty(), random() * 600)), new KeyFrame(new Duration(40000), // set
                                                                                        // end
                                                                                        // position
                                                                                        // at
                                                                                        // 40s
          new KeyValue(circle.translateXProperty(), random() * 800), new KeyValue(circle.translateYProperty(), random() * 600)));
 
View Full Code Here

          new KeyFrame(Duration.ZERO, // set start position at 0
              new KeyValue(circle.translateXProperty(),
                  random() * 800),
              new KeyValue(circle.translateYProperty(),
                  random() * 600)),
          new KeyFrame(new Duration(40000), // set end position at 40s
              new KeyValue(circle.translateXProperty(),
                  random() * 800), new KeyValue(circle
                  .translateYProperty(), random() * 600)));
    }
    // play 40s of animation
View Full Code Here

TOP

Related Classes of javafx.util.Duration

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.