Package javafx.scene.layout

Examples of javafx.scene.layout.Region


        bb.setHeight(10);
        bb.setIterations(10);
        blurView.setEffect(bb);
        blurView.setOpacity(0.9);

        colorGlass = new Region();
        colorGlass.getStyleClass().add("modal-dialog-color-glass-pane");
        getChildren().add(colorGlass);


        setOnMouseClicked((MouseEvent t) -> {
View Full Code Here


    public static void setupClass() throws Throwable {
        setupApplication();
        setupStages(new StageSetupCallback() {
            @Override
            public void setupStages(Stage primaryStage) {
                primaryStage.setScene(new Scene(new Region(), 600, 400));
                setupStagesClass();
            }
        });
    }
View Full Code Here

    public static void setupSpec() throws Throwable {
        setupApplication();
        setupStages(new StageSetupCallback() {
            @Override
            public void setupStages(Stage primaryStage) {
                primaryStage.setScene(new Scene(new Region(), 600, 400));
                setupStagesClass();
            }
        });
    }
View Full Code Here

        windowInWindowInWindow.setTitle("windowInWindowInWindow");
        windowInWindowInWindow.initOwner(windowInWindow);

        otherWindow = new Stage();
        otherWindow.setTitle("otherWindow");
        scene = new Scene(new Region(), 600, 400);
        otherWindow.setScene(scene);

        window.show();
        windowInWindow.show();
        windowInWindowInWindow.show();
View Full Code Here

    public void setup() throws Throwable {
        stageSetup = new StageSetupImpl();
        FXTestUtils.invokeAndWait(() -> {
            primaryStage = new Stage();
            primaryStage.initStyle(StageStyle.UNDECORATED);
            primaryStage.setScene(new Scene(new Region(), 600, 400));
        }, 5);
    }
View Full Code Here

    public static void setupSpec() throws Throwable {
        setupApplication();
        setupStages(new StageSetupCallback() {
            @Override
            public void setupStages(Stage primaryStage) {
                primaryStage.setScene(new Scene(new Region(), 600, 400));
                setupStagesClass();
            }
        });
    }
View Full Code Here

                        setText(null);
                        setGraphic(null);

                        if (!empty && item != null) {
                            // Make a region, so that -fx-shape can be applied from CSS.
                            Region rectangle = new Region();
                            rectangle.setMaxWidth(Control.USE_PREF_SIZE);
                            rectangle.setMaxHeight(Control.USE_PREF_SIZE);
                            rectangle.setRotate(item ? 90 : 270);
                            rectangle.getStyleClass().add("arrow");
                            setGraphic(rectangle);
                        }
                    }
                };
                cell.setAlignment(Pos.CENTER);
View Full Code Here

            aspectRatio = getSkinnable().getPrefHeight() / getSkinnable().getPrefWidth();
        }
    }

    private void initGraphics() {
        main = new Region();
        main.getStyleClass().setAll("main");
        main.setOpacity(1);
       
        mainFrameOut = new Region();
       
        mainFrame = new Region();
        mainFrameIn = new Region();
        setStyle();
       
        setDots();
       
        mainForeground = new Region();
        mainForeground.getStyleClass().setAll("frontFrame");
        mainForeground.setOpacity(1);
       
        pane = new Pane();
        pane.getChildren().setAll(main,mainFrameOut,mainFrame,mainFrameIn,dots,mainForeground);
View Full Code Here

                if (newValue != null && newValue != oldValue) {
                    if (newValue == MacOSDefaultIcons.SHARE) {
                        StackPane stack = new StackPane();
                        String iconBase = MacOSDefaultIcons.SHARE.getStyleName();
                        stack.getStyleClass().add("aquaicon");
                        Region svgIcon = new Region();
                        svgIcon.getStyleClass().add(iconBase + "-square");
                        stack.getChildren().add(svgIcon);
                        Region svgIcon2 = new Region();
                        svgIcon2.getStyleClass().add(iconBase + "-arrow");
                        stack.getChildren().add(svgIcon2);
                        getSkinnable().setGraphic(stack);
                    } else {
                        Region svgIcon = new Region();
                        svgIcon.getStyleClass().add("aqua-" + newValue.getStyleName());
                        svgIcon.getStyleClass().add("aquaicon");
                        getSkinnable().setGraphic(svgIcon);
                        getSkinnable().getStyleClass().add("button-" + newValue.getStyleName());
                    }
                    getSkinnable().requestLayout();
                }
View Full Code Here

            @Override public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
                if (newValue != null && newValue != oldValue) {
                    if (newValue.booleanValue()) {
                        if (searchIconPath == null) {
                            searchIconPath = new Region();
                            searchIconPath.getStyleClass().add("search-icon");
                        }
                        getChildren().add(searchIconPath);
                    } else if (oldValue != null && searchIconPath != null) {
                        getChildren().remove(searchIconPath);
                    }
                    getSkinnable().requestLayout();
                }
            }
        });

        showSearchIconProperty().addListener(new ChangeListener<Boolean>() {

            @Override public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {

                if (newValue != null) {
                    if (newValue.booleanValue()) {
                        if (cancelSearchIconPath == null) {
                            cancelSearchIconPath = new Region();
                            cancelSearchIconPath.getStyleClass().add("cancel-search-icon");

                            cancelSearchIconPath.setOnMouseClicked(new EventHandler<MouseEvent>() {
                                @Override public void handle(MouseEvent event) {
                                    getSkinnable().setText("");
View Full Code Here

TOP

Related Classes of javafx.scene.layout.Region

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.