Package javafx.animation

Examples of javafx.animation.Timeline.play()


            Timeline tm = new Timeline(new KeyFrame(Duration.seconds(1.0),
                    new KeyValue(tlNode.layoutXProperty(), xPos),
                    new KeyValue(tlNode.layoutYProperty(), yPos)));

            tm.play();
//            tlNode.relocate(xPos, yPos);
        }
        maxY.set(Math.max(maxY.get(), localMax));
        return localMax - minY;
    }
View Full Code Here


      public void handle(ActionEvent event) {
        tick(tickCount++);
      }
    }));
    tickTimer.setCycleCount(Timeline.INDEFINITE);
    tickTimer.play();
    requestFocus();
    setOnKeyPressed(this);
    setOnKeyTyped(this);
  }
View Full Code Here

                actionButton.setText("View claim transaction");
                ColorAdjust effect = new ColorAdjust();
                coverImage.setEffect(effect);
                if (priorMode != Mode.CLAIMED) {
                    Timeline timeline = new Timeline(new KeyFrame(GuiUtils.UI_ANIMATION_TIME.multiply(3), new KeyValue(effect.saturationProperty(), -0.9)));
                    timeline.play();
                } else {
                    effect.setSaturation(-0.9);
                }
                break;
        }
View Full Code Here

                                                                                        // at
                                                                                        // 40s
          new KeyValue(circle.translateXProperty(), random() * 800), new KeyValue(circle.translateYProperty(), random() * 600)));
    }
    // play 40s of animation
    timeline.play();
    return scene;
  }

  @Override
  protected void setFxFocus() {
View Full Code Here

              new KeyValue(circle.translateXProperty(),
                  random() * 800), new KeyValue(circle
                  .translateYProperty(), random() * 600)));
    }
    // play 40s of animation
    timeline.play();
   
    primaryStage.setTitle("Hello OSGi World");
    primaryStage.show();
 
}
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.