Package javafx.scene

Examples of javafx.scene.Group


));
animation.play();
}
});

return new Group(cube);
}
View Full Code Here


    pane.setDepthTest(DepthTest.DISABLE);
    final Node curNode = pane.getCenter();
   
    pane.setCenter(null);
   
    final Group area = new Group();
    area.setDepthTest(DepthTest.ENABLE);
   
    Bounds b = curNode.getBoundsInParent();
    newNode.resizeRelocate(b.getMinX(), b.getMinY(), b.getWidth(), b.getHeight());
    area.getChildren().add(newNode);
    area.getChildren().add(curNode);
   
    newNode.setTranslateZ(0.1);
    curNode.setTranslateZ(-0.1);
    newNode.setRotationAxis(Rotate.Y_AXIS);
    newNode.setRotate(180);
View Full Code Here

public class View extends FXViewPart {
  public static final String ID = "at.bestsolution.efxclipse.runtime.examples.rcp.view";

  @Override
  protected Scene createFxScene() {
    Group root = new Group();
    Scene scene = new Scene(root, 800, 600, Color.BLACK);
    Rectangle colors = new Rectangle(scene.getWidth(), scene.getHeight(), new LinearGradient(0f, 1f, 1f, 0f, true, CycleMethod.NO_CYCLE, new Stop[] { new Stop(0, Color.web("#f8bd55")), new Stop(0.14, Color.web("#c0fe56")), new Stop(0.28, Color.web("#5dfbc1")),
        new Stop(0.43, Color.web("#64c2f8")), new Stop(0.57, Color.web("#be4af7")), new Stop(0.71, Color.web("#ed5fc2")), new Stop(0.85, Color.web("#ef504c")), new Stop(1, Color.web("#f2660f")), }));

    Group circles = new Group();
    for (int i = 0; i < 30; i++) {
      Circle circle = new Circle(150, Color.web("white", 0.05));
      circle.setStrokeType(StrokeType.OUTSIDE);
      circle.setStroke(Color.web("white", 0.16));
      circle.setStrokeWidth(4);
      circles.getChildren().add(circle);
    }
    circles.setEffect(new BoxBlur(10, 10, 3));

    Group blendModeGroup = new Group(new Group(new Rectangle(scene.getWidth(), scene.getHeight(), Color.BLACK), circles), colors);
    colors.setBlendMode(BlendMode.OVERLAY);
    root.getChildren().add(blendModeGroup);

    Timeline timeline = new Timeline();
    for (Node circle : circles.getChildren()) {
View Full Code Here

*/
public class Application extends AbstractJFXApplication {

  @Override
  protected void jfxStart(IApplicationContext context, javafx.application.Application jfxApplication, Stage primaryStage) {
    Group root = new Group();
    Scene scene = new Scene(root, 800, 600, Color.BLACK);
    primaryStage.setScene(scene);

    Rectangle colors = new Rectangle(scene.getWidth(), scene.getHeight(),
        new LinearGradient(0f, 1f, 1f, 0f, true, CycleMethod.NO_CYCLE,
            new Stop[] { new Stop(0, Color.web("#f8bd55")),
                new Stop(0.14, Color.web("#c0fe56")),
                new Stop(0.28, Color.web("#5dfbc1")),
                new Stop(0.43, Color.web("#64c2f8")),
                new Stop(0.57, Color.web("#be4af7")),
                new Stop(0.71, Color.web("#ed5fc2")),
                new Stop(0.85, Color.web("#ef504c")),
                new Stop(1, Color.web("#f2660f")), }));

    Group circles = new Group();
    for (int i = 0; i < 30; i++) {
      Circle circle = new Circle(150, Color.web("white", 0.05));
      circle.setStrokeType(StrokeType.OUTSIDE);
      circle.setStroke(Color.web("white", 0.16));
      circle.setStrokeWidth(4);
      circles.getChildren().add(circle);
    }
    circles.setEffect(new BoxBlur(10, 10, 3));

    Group blendModeGroup = new Group(new Group(new Rectangle(
        scene.getWidth(), scene.getHeight(), Color.BLACK), circles),
        colors);
    colors.setBlendMode(BlendMode.OVERLAY);
    root.getChildren().add(blendModeGroup);

View Full Code Here

    }

    @Override
    protected AnchorPane getWidgetNode() {
      if (contentArea == null) {
        menuGroup = new Group();
        menuGroup.setVisible(false);
        menuGroup.setManaged(false);
       
        expandGroup = new StackPane();
        expandGroup.setStyle("-fx-background-color: gray");
View Full Code Here

      getWidget().setId(id);
    }

    @Override
    protected Group createWidget() {
      return new Group();
    }
View Full Code Here

TOP

Related Classes of javafx.scene.Group

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.