Package javafx.scene.transform

Examples of javafx.scene.transform.Rotate


    final HBox hbox = new HBox(2);
    final int bands = UISession.getMediaPlayer().getAudioSpectrumNumBands() - 20;
    final Rectangle[] rects = new Rectangle[bands];
    for (int i = 0; i < rects.length; i++) {
      rects[i] = new Rectangle();
      rects[i].getTransforms().add(new Rotate(180, 0, 0)); //
      rects[i].setFill(Color.GRAY);
      rects[i].setArcHeight(screenHeight);
      hbox.getChildren().add(rects[i]);

    }
View Full Code Here


      border.setTranslateX(offsetX);
      border.setTranslateY(offsetY);
      val.setTranslateX(offsetX);
      val.setTranslateY(offsetY);
      valContainer.getTransforms().add(new Rotate(angle, centerX, centerY));
    }
    Bindings.bindBidirectional(border.fillProperty(), backgroundFillProperty);
    border.setStroke(Color.GRAY);
    border.setStrokeWidth(1d);
    valContainer.getChildren().addAll(border, val);
View Full Code Here

   
    border2.setTranslateX(offsetX);
    border2.setTranslateY(offsetY);
    double angle2 = 180d - getGeometericEndAngle();
   
    valContainer.getTransforms().add(new Rotate(angle2, centerX, centerY));
    Bindings.bindBidirectional(border2.fillProperty(), backgroundFillProperty);
    border2.setStroke(Color.GRAY);
    border2.setStrokeWidth(1d);
    valContainer.getChildren().add(border2);
    return valContainer;
View Full Code Here

    indicatorBase.setCacheHint(CacheHint.ROTATE);
    final double ix = centerX - (indicatorWidth / 1.2);
    final double iy = centerY - (indicatorHeight / 2);
   
    // indicator shape
    final Rotate indicatorRotate = new Rotate(this.angleProperty.get(), centerX, centerY);
    Bindings.bindBidirectional(indicatorRotate.angleProperty(), this.angleProperty);
    Shape indicatorShape;
    if (indicatorType == IndicatorType.KNOB) {
      indicatorShape = createIndicatorShape(indicatorType, ix, iy, indicatorWidth - pointDistance,
          indicatorHeight - pointDistance, pointDistance,
          centerX, centerY, fillProperty);
View Full Code Here

      final Rectangle tm = new Rectangle(x, y, width, height);
      tm.setSmooth(false);
      tm.setCache(true);
      tm.setCacheHint(CacheHint.QUALITY);
      Bindings.bindBidirectional(tm.fillProperty(), tickMarkFillProperty);
    tm.getTransforms().addAll(new Rotate(angle, centerX, centerY));
    return tm;
    }
View Full Code Here

    }

    public void init() {
        lives= 3;
        planePhysicalObject = new PlanePhysicalObject();
        rotate = new Rotate(0, Rotate.X_AXIS);
        getTransforms().clear();
        getTransforms().add(rotate);
        setPlacement();
    }
View Full Code Here

        setDelay(Duration.seconds(0.2));
    }

    @Override protected void starting() {
        super.starting();
        rotate = new Rotate(0,0,node.getBoundsInLocal().getHeight());
        timeline = TimelineBuilder.create()
            .keyFrames(
                new KeyFrame(Duration.millis(0),   
                    new KeyValue(node.opacityProperty(), 0, WEB_EASE),
                    new KeyValue(rotate.angleProperty(), 90, WEB_EASE)
View Full Code Here

    }

    @Override protected void starting() {
        super.starting();
        double endY = node.getScene().getHeight() - node.localToScene(0, 0).getY();
        rotate = new Rotate(0,0,0);
        timeline = TimelineBuilder.create()
            .keyFrames(
                new KeyFrame(Duration.millis(0),   
                    new KeyValue(rotate.angleProperty(), 0, Interpolator.EASE_BOTH)
                ),
View Full Code Here

        setDelay(Duration.seconds(0.2));
    }

    @Override protected void starting() {
        super.starting();
        rotate = new Rotate(0,
                node.getBoundsInLocal().getWidth(),
                node.getBoundsInLocal().getHeight());
        timeline = TimelineBuilder.create()
            .keyFrames(
                new KeyFrame(Duration.millis(0),   
View Full Code Here

        setDelay(Duration.seconds(0.2));
    }

    @Override protected void starting() {
        super.starting();
        rotate = new Rotate(0,
                node.getBoundsInLocal().getWidth(),
                node.getBoundsInLocal().getHeight());
        timeline = TimelineBuilder.create()
            .keyFrames(
                new KeyFrame(Duration.millis(0),   
View Full Code Here

TOP

Related Classes of javafx.scene.transform.Rotate

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.