Examples of translateXProperty()


Examples of javafx.scene.Node.translateXProperty()

    long startTimeMs = annimation.startTime-minTime;
    long endTimeMs = annimation.endTime-minTime;
   
    final Node node = annimation.createVisualRepresentation();
   
    KeyValue keyValueStartX = new KeyValue(node.translateXProperty(), annimation.startx);
    KeyValue keyValueStartY = new KeyValue(node.translateYProperty(), annimation.starty);
    KeyValue keyValueEndX = new KeyValue(node.translateXProperty(),annimation.endx);
    KeyValue keyValueEndY = new KeyValue(node.translateYProperty(), annimation.endy);
   
View Full Code Here

Examples of javafx.scene.Node.translateXProperty()

   
    final Node node = annimation.createVisualRepresentation();
   
    KeyValue keyValueStartX = new KeyValue(node.translateXProperty(), annimation.startx);
    KeyValue keyValueStartY = new KeyValue(node.translateYProperty(), annimation.starty);
    KeyValue keyValueEndX = new KeyValue(node.translateXProperty(),annimation.endx);
    KeyValue keyValueEndY = new KeyValue(node.translateYProperty(), annimation.endy);
   

    KeyFrame keyFrame1 = new KeyFrame(Duration.millis(startTimeMs),
          new EventHandler<ActionEvent>(){
View Full Code Here

Examples of javafx.scene.control.Button.translateXProperty()

    BindableTransition transition = new BindableTransition(duration);
    transition.setCycleCount(1000);
    transition.setAutoReverse(true);
    shadow.offsetXProperty().bind(transition.fractionProperty().multiply(32));
    shadow.offsetYProperty().bind(transition.fractionProperty().multiply(32));
    button.translateXProperty().bind(transition.fractionProperty().multiply(-32));
    transition.play();
   
    StackPane pane = new StackPane();
    pane.getChildren().add(button);
   
View Full Code Here

Examples of javafx.scene.shape.Circle.translateXProperty()

    frame.getStyleClass().add("magnifier-frame");
    frame.radiusProperty().bind(localRadius.add(frameWidthProperty));
   
    final Circle cClip = new Circle();
    cClip.radiusProperty().bind(localRadius);
    cClip.translateXProperty().bind(localRadius);
    cClip.translateYProperty().bind(localRadius);

    viewer = new Viewer(localRadius, localRadius);
    viewer.setClip(cClip);
View Full Code Here

Examples of javafx.scene.shape.Circle.translateXProperty()

    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

Examples of javafx.scene.shape.Circle.translateXProperty()

          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
    timeline.play();
    return scene;
  }
View Full Code Here

Examples of javafx.scene.shape.Circle.translateXProperty()

    Timeline timeline = new Timeline();
    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(),
View Full Code Here

Examples of javafx.scene.shape.Circle.translateXProperty()

              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
    timeline.play();
View Full Code Here

Examples of javafx.scene.shape.Rectangle.translateXProperty()

    rectangle.setFill(color);
    rectangle.setArcHeight(20);
    rectangle.setArcWidth(20);
    final Text text = new Text(getDisplayText());
    text.setFontSmoothingType(FontSmoothingType.LCD);
    text.translateXProperty().bind(rectangle.translateXProperty());
    text.translateYProperty().bind(rectangle.translateYProperty().add(rectangle.getHeight()/2).add(text.getBoundsInLocal().getHeight()/4));
    pane.getChildren().add(rectangle);
    pane.getChildren().add(text);
    return pane;
  }
View Full Code Here

Examples of javafx.scene.shape.Rectangle.translateXProperty()

                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.5)),
                    new ReadOnlyDoubleWrapper(1.0)));
            r.translateXProperty().bind(size.multiply(-0.5));
            r.translateYProperty().bind(size.multiply(-0.5));
            r.translateZProperty().bind(size.multiply(0.5));
           
            getChildren().add(r);
        }
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.