Examples of ParallelTransition


Examples of javafx.animation.ParallelTransition

    public static ParallelTransition horizontalTransition(@Nonnull Node node, double start_x, double end_x, double mills) {
        TranslateTransition translate = new TranslateTransition(Duration.millis(mills));
        translate.setFromX(start_x);
        translate.setToX(end_x);
        ParallelTransition pt = new ParallelTransition(node, translate);
        return pt;
    }
View Full Code Here

Examples of javafx.animation.ParallelTransition

    public static ParallelTransition verticalTransition(@Nonnull Node node, double start_y, double end_y, double mills) {
        TranslateTransition translate = new TranslateTransition(Duration.millis(mills));
        translate.setFromY(start_y);
        translate.setToY(end_y);
        ParallelTransition pt = new ParallelTransition(node, translate);
        return pt;
    }
View Full Code Here

Examples of javafx.animation.ParallelTransition

    public static ParallelTransition horizontalTransition(@Nonnull Node node, double start_x, double end_x, double mills) {
        TranslateTransition translate = new TranslateTransition(Duration.millis(mills));
        translate.setFromX(start_x);
        translate.setToX(end_x);
        ParallelTransition pt = new ParallelTransition(node, translate);
        return pt;
    }
View Full Code Here

Examples of javafx.animation.ParallelTransition

    public static ParallelTransition verticalTransition(@Nonnull Node node, double start_y, double end_y, double mills) {
        TranslateTransition translate = new TranslateTransition(Duration.millis(mills));
        translate.setFromY(start_y);
        translate.setToY(end_y);
        ParallelTransition pt = new ParallelTransition(node, translate);
        return pt;
    }
View Full Code Here

Examples of javafx.animation.ParallelTransition

      }
        }).build();
      anim.add(fadeCenter);
  }

  final ParallelTransition transition = ParallelTransitionBuilder
    .create().children(anim).build();

  transition.play();
    }
View Full Code Here

Examples of javafx.animation.ParallelTransition

      // anim.add(radius);

      RadialMenu.this.centerGroup.setVisible(true);
  }

  final ParallelTransition transition = ParallelTransitionBuilder
    .create().children(anim).build();

  this.itemGroup.setVisible(true);
  transition.play();
    }
View Full Code Here

Examples of javafx.animation.ParallelTransition

            mainButtonFadeOut.setToValue(options.getButtonAlpha());
            transitions.add(mainButtonFadeOut);
        }

        // Play all transitions in parallel
        ParallelTransition selectTransition = new ParallelTransition();
        selectTransition.getChildren().addAll(transitions);
        selectTransition.play();

        // Set menu state back to closed
        setState(State.CLOSED);
        mainMenuButton.setOpen(false);
    }
View Full Code Here

Examples of javafx.animation.ParallelTransition

       
        FadeTransition fadeValueIn = new FadeTransition(Duration.millis(425), value);
        fadeValueIn.setFromValue(0.0);
        fadeValueIn.setToValue(1.0);               
       
        ParallelTransition parallelIn = new ParallelTransition(fadeInfoTextIn, fadeValueIn);

        ParallelTransition parallelOut = new ParallelTransition(fadeInfoTextOut, fadeValueOut);
        parallelOut.setOnFinished(event -> {
            double currentValue = (valueIndicatorRotate.getAngle() + getSkinnable().getStartAngle() - 180) / angleStep + getSkinnable().getMinValue();
            value.setText(String.format(Locale.US, "%." + getSkinnable().getDecimals() + "f", currentValue));
            value.setTranslateX((size - value.getLayoutBounds().getWidth()) * 0.5);
            if (getSkinnable().getTarget() < getSkinnable().getValue()) {
                getSkinnable().setInfoText("COOLING");
View Full Code Here

Examples of javafx.animation.ParallelTransition

        fadeUnitIn.setFromValue(0.0);
        fadeUnitIn.setToValue(1.0);
        FadeTransition fadeValueIn = new FadeTransition(Duration.millis(425), valueText);
        fadeValueIn.setFromValue(0.0);
        fadeValueIn.setToValue(1.0);
        ParallelTransition parallelIn = new ParallelTransition(fadeUnitIn, fadeValueIn);

        ParallelTransition parallelOut = new ParallelTransition(fadeUnitOut, fadeValueOut);
        parallelOut.setOnFinished(event -> {
            unitText.setText("Interactive");
            valueText.setText("");
            resizeText();
        });
View Full Code Here

Examples of javafx.animation.ParallelTransition

        fadeUnitIn.setFromValue(0.0);
        fadeUnitIn.setToValue(1.0);
        FadeTransition fadeValueIn = new FadeTransition(Duration.millis(425), value);
        fadeValueIn.setFromValue(0.0);
        fadeValueIn.setToValue(1.0);
        ParallelTransition parallelIn = new ParallelTransition(fadeUnitIn, fadeValueIn);

        ParallelTransition parallelOut = new ParallelTransition(fadeUnitOut, fadeValueOut);
        parallelOut.setOnFinished(event -> {
            unit.setText("Interactive");
            value.setText("");
            resizeText();
        });
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.