Package javafx.animation

Examples of javafx.animation.Timeline.play()


      public void changed(ObservableValue<? extends String> observable, String oldValue,
          String newValue) {
        helpTextTimeline.stop();
        if (newValue != null && newValue.length() > 0 &&
            !newValue.equals(RS.rbLabel(UGateUtil.HELP_TEXT_DEFAULT_KEY))) {
          helpTextTimeline.play();
        }
      }
    });
    helpTextPane.setContent(helpText);
    defaultUserImg = RS.imgView(RS.IMG_LOCK);
View Full Code Here


            setVisible(false);
            getChildren().
                    clear();
        },
                new KeyValue(opacityProperty(), 0, Interpolator.EASE_BOTH)));
        timeline.play();

    }

    public void show(Node dialogPane) {
        addBlurLayer();
View Full Code Here

        Timeline timeline = new Timeline(new KeyFrame(DURATION_SHOW, (ActionEvent t) -> {
            setCache(false);
        },new KeyValue(opacityProperty(), 1, Interpolator.EASE_BOTH)));

        timeline.play();
    }

    private void addBlurLayer() {
        setVisible(false);
        getChildren().removeAll(blurView, colorGlass);
View Full Code Here

        service.start();

        Timeline timeline = new Timeline(new KeyFrame(Duration.seconds(10), event -> service.restart()));
        timeline.setCycleCount(Timeline.INDEFINITE);
        timeline.play();
    }

    public class GetOrdersService extends Service<ObservableList<StackPane>> {

        /**
 
View Full Code Here

                                                                                @Override
                                                                                public void handle(Event t) {
                                                                                    stage.hide();
                                                                                }
                                                                            }, new KeyValue(opacity, 0d)));
                                                            fadeOut.play();
                                                        }
                                                    }, new KeyValue(opacity, 1d)));
                                    display.play();
                                }
                            }, new KeyValue(opacity, 1d)));
View Full Code Here

                    closedTabTimeline = createTimeline(tabRegion, Duration.millis(ANIMATION_SPEED * 1.5F), 0.0F, new EventHandler<ActionEvent>() {
                        @Override public void handle(ActionEvent event) {     
                            handleClosedTab(tab, closedTab);
                        }
                    });
                    closedTabTimeline.play();   
                } else {
                    handleClosedTab(tab, closedTab);
                }
            }
            closedTab.put(tab, closedTabTimeline);
View Full Code Here

                        setupPopupMenu();
                    }
                    requestLayout();
                }
            }, keyValue));
            timeline.play();
        }

        private void hideControlButtons() {
            setAnimationLock(true);
            Timeline timeline = new Timeline();
View Full Code Here

                    // to allow for the clip offset to move properly (otherwise
                    // it jumps too early - before the animation is done).
                    requestLayout();
                }
            }, keyValue));
            timeline.play();
        }

        private void setupPopupMenu() {
            if (popup == null) {
                popup = new ContextMenu();
View Full Code Here

        Timeline timeline = new Timeline();
        timeline.getKeyFrames().setAll(kf1, kf2, kf3);
        faderMap.put(NODE, timeline);
        timeline.setOnFinished(actionEvent -> { faderMap.remove(NODE); });
        timeline.play();
    }
    private void stopFadingIfNeeded(final Node NODE) {
        if (faderMap.keySet().contains(NODE)) {
            faderMap.get(NODE).stop();
            faderMap.remove(NODE);
View Full Code Here

        final KeyFrame kfY = new KeyFrame(animationDuration, kvY);

        timeline.getKeyFrames().add(kfO);
        timeline.getKeyFrames().add(kfY);

        timeline.play();
    }
   
    public void addTile(Tile tile){
        double layoutX = tile.getLocation().getLayoutX(CELL_SIZE) - (tile.getMinWidth() / 2);
        double layoutY = tile.getLocation().getLayoutY(CELL_SIZE) - (tile.getMinHeight() / 2);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.