当前位置: 首页>>代码示例>>Java>>正文


Java BorderPane.setBottom方法代码示例

本文整理汇总了Java中javafx.scene.layout.BorderPane.setBottom方法的典型用法代码示例。如果您正苦于以下问题:Java BorderPane.setBottom方法的具体用法?Java BorderPane.setBottom怎么用?Java BorderPane.setBottom使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javafx.scene.layout.BorderPane的用法示例。


在下文中一共展示了BorderPane.setBottom方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: overlay

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
private static Parent overlay(int version, int display,
        YCbCr params, int yCode, String suffix) {
    double ye = params.fromLumaCode(yCode);

    Label label = new Label(getLabel(version, display, params, yCode,
            suffix));
    label.setFont(font(40));
    label.setTextFill(gray(max(0.25, min(0.5, ye))));

    BorderPane.setMargin(label, new Insets(20));
    BorderPane layout = new BorderPane();
    layout.setBackground(EMPTY);
    layout.setBottom(label);
    return layout;
}
 
开发者ID:testing-av,项目名称:testing-video,代码行数:16,代码来源:Calibrate2160pHDR10_LGOLED.java

示例2: GoogleEntryDetailsView

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
public GoogleEntryDetailsView(GoogleEntry entry) {
    super(requireNonNull(entry));

    this.entry = entry;

    Label notificationLabel = new Label("Notification:");

    Label addButton = new Label("Add a notification");
    addButton.getStyleClass().add("link");
    addButton.setOnMouseClicked(evt -> createReminder());
    addButton.disableProperty().bind(entry.getCalendar().readOnlyProperty());

    VBox center = new VBox();

    BorderPane notificationPane = new BorderPane();
    notificationPane.setCenter(center);
    notificationPane.setBottom(addButton);

    GridPane box = (GridPane) getChildren().get(0);
    box.add(notificationLabel, 0, 5);
    box.add(notificationPane, 1, 5);

    GridPane.setValignment(notificationLabel, VPos.TOP);
    getStyleClass().add("details-view");

    if (entry.isUseDefaultReminder()) {
        GoogleCalendar calendar = (GoogleCalendar) entry.getCalendar();
        reminders.addAll(calendar.getDefaultReminders());
    }

    reminders.addAll(entry.getReminders());
    reminders.addListener((Observable obs) -> buildItems(center));
    buildItems(center);
}
 
开发者ID:dlemmermann,项目名称:CalendarFX,代码行数:35,代码来源:GoogleEntryDetailsView.java

示例3: getContentPane

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
@Override protected Parent getContentPane() {
    VBox content = new VBox();
    content.getStyleClass().add("marathon-module");
    FormPane form = new FormPane("marathon-module-form", 2);
    if (moduleInfo.isNeedModuleFile()) {
    // @formatter:off
    form.addFormField("Module function name: ", moduleNameField)
        .addFormField("Description: ", descriptionArea)
        .addFormField("Module Directory: ", moduleDirComboBox)
        .addFormField("Module File: ", moduleFileComboBox);
    // @formatter:on
    } else {
     // @formatter:off
        form.addFormField("Module function name: ", moduleNameField)
            .addFormField("Description: ", descriptionArea);
     // @formatter:on
    }

    content.getChildren().addAll(form, errorMessageLabel);
    BorderPane borderPane = new BorderPane();
    borderPane.setCenter(content);
    borderPane.setBottom(buttonBar);
    return borderPane;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:25,代码来源:MarathonModuleStage.java

示例4: start

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
@Override
public void start(Stage primaryStage) throws Exception {
	Slider slider = new Slider();

	BorderPane root = new BorderPane(slider);
	Button b = new Button("Start");
	root.setBottom(b);

	Scene s = new Scene(root, 800, 600);
	primaryStage.setScene(s);
	primaryStage.show();

	RController rController = ServiceUtils.getService(RControllerFactory.class).get().create(s);
	b.setOnAction(e -> {
		RNode<Node> rNode = rController.cssFirst(".slider").get();
		rNode.click();
		rNode.dragBy(Duration.ofMillis(1000), 200, 0);
	});
}
 
开发者ID:BestSolution-at,项目名称:FX-Test,代码行数:20,代码来源:SampleDrag.java

示例5: makeInfoGUI

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
/**
    * Make Information Dialog
    * @return BorderPane
    */
   public void makeInfoGUI() {
       root = new Group();
       Scene scene = new Scene(root, 360, 185, Color.WHITE);
       ImagePattern pattern = new ImagePattern(new Image("icon/bk2.jpg"));
       scene.setFill(pattern);
       setTitle("Information");
       setScene(scene);
       Image appIcon = new Image("icon/INFO.png");
       getIcons().add(appIcon);
       BorderPane bp = new BorderPane();

       textArea = new TextArea(message);
       textArea.setEditable(false);
       textArea.setWrapText(true);
       textArea.setMaxWidth(320);
       textArea.setMaxHeight(130);
       HBox hBox = new HBox();
       hBox.setSpacing(5);
       hBox.setPadding(new Insets(5,0,0,0));
       hBox.setAlignment(Pos.BOTTOM_RIGHT);
       hBox.getChildren().addAll(okButton);
       bp.setCenter(textArea);
       bp.setBottom(hBox);
       root.getChildren().add(bp);
       sizeToScene();
       setX(owner.getX() + Math.abs(owner.getWidth() - scene.getWidth()) / 2.0);
setY(owner.getY() + Math.abs(owner.getHeight() - scene.getHeight()) / 2.0);
   }
 
开发者ID:ztan5,项目名称:TechnicalAnalysisTool,代码行数:33,代码来源:TatMessageBox.java

示例6: getContentPane

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
@Override protected Parent getContentPane() {
    BorderPane borderPane = new BorderPane();
    borderPane.setId("check-list-input-stage");
    FormPane form = new FormPane("check-list-input-stage-form", 2);
    form.addFormField(labelText, inputTextField);
    borderPane.setCenter(form);
    borderPane.setBottom(buttonBar);
    return borderPane;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:10,代码来源:CheckListView.java

示例7: getContentPane

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
@Override protected Parent getContentPane() {
    addButtonsToVerticalButtonBar();
    BorderPane content = new BorderPane();
    content.getStyleClass().add("run-history-stage");
    content.setId("RunHistoryStage");
    content.setCenter(historyPane);
    content.setBottom(buttonBar);
    return content;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:10,代码来源:RunHistoryStage.java

示例8: makeConfirmGUI

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
/**
    * Make Confirmation Dialog
    * @return BorderPane
    */
   public void makeConfirmGUI() {
       root = new Group();
       Scene scene = new Scene(root, 360, 185, Color.WHITE);
       ImagePattern pattern = new ImagePattern(new Image("icon/bk2.jpg"));
       scene.setFill(pattern);
       setScene(scene);
       setTitle("Confirmation");
       Image appIcon = new Image("icon/CONFIRM.png");
       getIcons().add(appIcon);
       BorderPane bp = new BorderPane();
       textArea = new TextArea(message);
       textArea.setEditable(false);
       textArea.setWrapText(true);
       textArea.setPrefWidth(320);
       textArea.setPrefHeight(130);
       HBox hBox = new HBox();
       hBox.setSpacing(5);
       hBox.setPadding(new Insets(5,0,0,0));
       hBox.setAlignment(Pos.BOTTOM_RIGHT);
       hBox.getChildren().addAll(yesButton, noButton);
       bp.setCenter(textArea);
       bp.setBottom(hBox);
       root.getChildren().add(bp);
       sizeToScene();
       setX(owner.getX() + Math.abs(owner.getWidth() - scene.getWidth()) / 2.0);
setY(owner.getY() + Math.abs(owner.getHeight() - scene.getHeight()) / 2.0);
   }
 
开发者ID:ztan5,项目名称:TechnicalAnalysisTool,代码行数:32,代码来源:TatMessageBox.java

示例9: RTSView

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
public RTSView(EventBus bus, Camera camera, Collection<Sprite> sprites) {
	this.bus = bus;
	this.camera = camera;
	pane = new BorderPane();
	//TODO: read all the sprites, then add all the sprites on the root as nodes
	NodeManager menuBarManager = new MenuBarManager();
	pane.setTop(menuBarManager.getNode());

	NodeManager stackPaneManager = new StackPaneManager(sprites);
	pane.setCenter(stackPaneManager.getNode());

	NodeManager gridPaneManager = new GridPaneManager();
	pane.setBottom(gridPaneManager.getNode());




	scene = new Scene(pane, WIDTH, HEIGHT);
	// selected sprite
	Canvas selectionCanvas = new Canvas(WIDTH / 2, HEIGHT - CANVAS_HEIGHT);
	Button selectedSpriteButton = new Button();
	for(Sprite sprite : sprites){
		//TODO: get the skill component of each sprite
		if (sprite!=null&&sprite.getComponent(Images.TYPE).isPresent()){
			LtubImage LTUBImageSprite  = sprite.getComponent(Images.TYPE).get().image();
			Image imageSprite = LTUBImageSprite.getFXImage();
			selectedSpriteButton.setGraphic(new ImageView(imageSprite));
		}
	}

	initHandlers();
}
 
开发者ID:LtubSalad,项目名称:voogasalad-ltub,代码行数:33,代码来源:RTSView.java

示例10: TestApplication

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
public TestApplication(Stage parent, Properties props) {
    initOwner(parent);
    MPFUtils.replaceEnviron(props);
    String model = props.getProperty(Constants.PROP_PROJECT_LAUNCHER_MODEL);
    if (model == null || model.equals("")) {
        commandField.setText("Select a launcher and set the parameters required.");
        show();
    } else {
        IRuntimeLauncherModel launcherModel = LauncherModelHelper.getLauncherModel(model);
        launchCommand = launcherModel.createLauncher(props);
    }
    initModality(Modality.APPLICATION_MODAL);
    BorderPane content = new BorderPane();
    VBox builder = new VBox();
    builder.setSpacing(5);
    outputArea.setEditable(false);
    errorArea.setEditable(false);
    VBox.setVgrow(errorArea, Priority.ALWAYS);
    builder.getChildren().addAll(new Label("Command"), commandField, new Label("Standard Output & Error"), outputArea,
            new Label("Message"), errorArea);
    closeButton.setOnAction((event) -> {
        if (launchCommand != null) {
            launchCommand.destroy();
        }
        close();
    });
    content.setCenter(builder);
    content.setBottom(new HBox(5, FXUIUtils.createFiller(), closeButton));
    setScene(new Scene(content));
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:31,代码来源:TestApplication.java

示例11: EditorStage

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
public EditorStage(Dictionary dictionary, DialogFactory dialogFactory, Stage settingsStage) {

        markdownParser = new MarkdownParser();
        tabFactory = new TabFactory(dictionary, dialogFactory, this);

        settings = new Settings(tabFactory);

        tabFactory.setMarkdownParser(markdownParser);

        ToolBarMenus toolBarMenus = new ToolBarMenus(dictionary);
        menuToolbar = new EditorMenuToolBar(tabFactory, dialogFactory, dictionary, toolBarMenus, markdownParser,this, settingsStage);
        toolBar = new EditorToolBar(dictionary, tabFactory);
        tabFactory.setEditorToolBar(toolBar);

        BorderPane root = new BorderPane(tabFactory.getTabPane());
        root.setTop(menuToolbar);
        root.setBottom(toolBar);
        StackPane container = new StackPane(root);

        Scene scene = new Scene(container, 800, 800);
        scene.getStylesheets().add("css/window.css");
        this.setScene(scene);

        this.setTitle(dictionary.STAGE_EDITOR_TITLE);
        this.getIcons().add(new Image("assets/favicon.png"));
        this.show();
        this.centerOnScreen();

        this.setOnCloseRequest(event -> getOnCloseAction(tabFactory, event));

    }
 
开发者ID:jdesive,项目名称:textmd,代码行数:32,代码来源:EditorStage.java

示例12: createDemoNode

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
public static Node createDemoNode() {
    XYZDataset dataset = createDataset();
    Chart3D chart = createChart(dataset);
    Chart3DViewer viewer = new Chart3DViewer(chart);
    BorderPane node = new BorderPane();
    node.setCenter(viewer);
    HBox container = new HBox();
    CheckBox checkBox = new CheckBox("Logarithmic Axis?");
    checkBox.setSelected(true);
    checkBox.setOnAction((e) -> {
        XYZPlot plot = (XYZPlot) chart.getPlot();
        if (checkBox.isSelected()) {
            LogAxis3D logAxis = new LogAxis3D("Y (log scale)");
            logAxis.setTickLabelOrientation(LabelOrientation.PERPENDICULAR);
            logAxis.receive(new ChartStyler(chart.getStyle()));
            plot.setYAxis(logAxis);
        } else {
            NumberAxis3D yAxis = new NumberAxis3D("Y");
            yAxis.setTickLabelOrientation(LabelOrientation.PERPENDICULAR);
            yAxis.receive(new ChartStyler(chart.getStyle()));
            plot.setYAxis(yAxis);
        }
    });
    container.setAlignment(Pos.CENTER);
    container.setPadding(new Insets(4.0, 4.0, 4.0, 4.0));
    container.getChildren().add(checkBox);
    node.setBottom(container);
    return node;
}
 
开发者ID:jfree,项目名称:jfree-fxdemos,代码行数:30,代码来源:ScatterPlot3DFXDemo2.java

示例13: getContentPane

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
@Override protected Parent getContentPane() {
    BorderPane root = new BorderPane();

    root.getStyleClass().add("MarathonFileChooser");
    root.setId("marathon-file-chooser");
    if (doesAllowChildren) {
        if (!fileChooserInfo.isFileCreation()) {
            propertiesView = new AddPropertiesView(new TestPropertiesInfo(fileChooserInfo.getFileToSave()));
            TitledPane titledPane = new TitledPane("Properties", propertiesView);
            centerPane.getChildren().addAll(splitPane, titledPane);
            root.setPrefWidth(540);
            root.setPrefHeight(580);
        } else {
            root.setPrefWidth(540);
            root.setPrefHeight(380);
            centerPane.getChildren().addAll(splitPane);
        }
    } else {
        root.setPrefWidth(540);
        root.setPrefHeight(380);
        centerPane.getChildren().add(childrenListView);
    }
    root.setCenter(centerPane);
    root.setBottom(buttonBar);
    return root;
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:27,代码来源:MarathonFileChooser.java

示例14: PreviewPaneSkin

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
public PreviewPaneSkin(PreviewPane control) {
    super(control);

    Slider slider = new Slider();
    slider.setMin(ZoomPane.MIN_ZOOM_VALUE);
    slider.setMax(ZoomPane.MAX_ZOOM_VALUE);
    slider.valueProperty().bindBidirectional(control.getZoomPane().zoomProperty());

    BorderPane center = new BorderPane();
    center.setCenter(control.getZoomPane());
    center.getStyleClass().add("center");

    PrintablePage page = control.getPrintablePage();

    FontAwesomeIconView backIcon = new FontAwesomeIconView(FontAwesomeIcon.CHEVRON_LEFT);
    FontAwesomeIconView forwardIcon = new FontAwesomeIconView(FontAwesomeIcon.CHEVRON_RIGHT);

    Button backBtn = new Button();
    backBtn.setGraphic(backIcon);
    backBtn.setOnAction(evt -> page.back());
    backBtn.disableProperty().bind(Bindings.equal(1, page.pageNumberProperty()));

    Button nextBtn = new Button();
    nextBtn.setGraphic(forwardIcon);
    nextBtn.setOnAction(evt -> page.next());
    nextBtn.disableProperty().bind(Bindings.equal(page.pageNumberProperty(), page.totalPagesProperty()));

    Label pagesLbl = new Label();
    pagesLbl.textProperty().bind(Bindings.createStringBinding(() -> page.getPageNumber() + "/" + page.getTotalPages(), page.pageNumberProperty(), page.totalPagesProperty()));

    HBox bottom = new HBox(new Label(Messages.getString("PreviewPaneSkin.ZOOM_LABEL")), slider, backBtn, pagesLbl, nextBtn);
    bottom.setAlignment(Pos.CENTER_RIGHT);
    bottom.getStyleClass().add("footer");

    BorderPane container = new BorderPane();
    container.getStyleClass().add("container");
    container.setCenter(center);
    container.setBottom(bottom);

    getChildren().add(container);
}
 
开发者ID:dlemmermann,项目名称:CalendarFX,代码行数:42,代码来源:PreviewPaneSkin.java

示例15: constructContainer

import javafx.scene.layout.BorderPane; //导入方法依赖的package包/类
@Override
public Parent constructContainer()
{
	bp = new BorderPane();
	bp.setId("userviewbg");
	
	back = new BackButton(getFXController(),"Zur�ck");
	
	tabPane = new TabPane();
	tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
	tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
		   @Override
		   public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
		      refreshView();
		   }
		});
	 
    	    
    Center = new VBox();
    Search = new HBox();
    Top = new VBox();
    
    
    txtSearch = new TextField();
    txtSearch.setPromptText("Suche nach Doors");
    txtSearch.setMinWidth(740);
    txtSearch.setMinHeight(50);;
    btnSearch = new AppButton("Suchen");
    btnCreate = new AppButton("++Erstellen++");
    btnCreate.setMinWidth(590);
    btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
    
    StackShowList.setSpacing(20);
    Center.setSpacing(20);
    
    
    sMain = new ScrollPane();
    sMain.setContent(Center);
    
    Search.getChildren().addAll(txtSearch,btnSearch);
    Center.getChildren().addAll(StackShowList,btnCreate);
    
	back = new AppButton("Zur�ck");
	back.setOnAction(e-> getFXController().showView("doorsavepathselectionview"));
	
	
	Bottom = new VBox();

	Bottom.getChildren().addAll(back);
	Top.getChildren().addAll(Search,tabPane);
	
	bp.setTop(Top);
	bp.setCenter(sMain);
	bp.setBottom(Bottom);
	
	getFXController().getModel("serverstack").registerView(this);
	
	return bp;
}
 
开发者ID:CoffeeCodeSwitzerland,项目名称:Lernkartei_2017,代码行数:60,代码来源:SaveDownloadstackLocalView.java


注:本文中的javafx.scene.layout.BorderPane.setBottom方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。