本文整理了Java中javafx.scene.layout.BorderPane.setAlignment()
方法的一些代码示例,展示了BorderPane.setAlignment()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BorderPane.setAlignment()
方法的具体详情如下:
包路径:javafx.scene.layout.BorderPane
类名称:BorderPane
方法名:setAlignment
暂无
代码示例来源:origin: torakiki/pdfsam
@Inject
public OpenWithDialog(StylesConfig styles, List<Module> modules) {
initModality(Modality.WINDOW_MODAL);
initStyle(StageStyle.UTILITY);
setResizable(false);
setTitle(DefaultI18nContext.getInstance().i18n("Open with"));
this.modules = modules.stream().sorted(comparing(m -> m.descriptor().getName())).collect(toList());
messageTitle.getStyleClass().add("-pdfsam-open-with-dialog-title");
BorderPane containerPane = new BorderPane();
containerPane.getStyleClass().addAll(Style.CONTAINER.css());
containerPane.getStyleClass().addAll("-pdfsam-open-with-dialog", "-pdfsam-open-with-container");
containerPane.setTop(messageTitle);
BorderPane.setAlignment(messageTitle, Pos.TOP_CENTER);
filesList.setPrefHeight(150);
containerPane.setCenter(filesList);
buttons.getStyleClass().addAll(Style.CONTAINER.css());
containerPane.setBottom(buttons);
BorderPane.setAlignment(buttons, Pos.CENTER);
Scene scene = new Scene(containerPane);
scene.getStylesheets().addAll(styles.styles());
scene.setOnKeyReleased(new HideOnEscapeHandler(this));
setScene(scene);
eventStudio().addAnnotatedListeners(this);
}
代码示例来源:origin: com.github.giulianini.jestures/jestures
/**
* Create a {@link JFXListView} for the templates.
*
* @param listView
* the {@link JFXListView}
* @param imageProfile
* the {@link Image} profile
* @param index
* the {@link Integer} index
*/
// CHECKSTYLE:OFF AH DI MI TOCCA FARE COSI
public static void addVectorToListView(final JFXListView<BorderPane> listView, final Image imageProfile,
final int index) {
final BorderPane pane = new BorderPane();
final Label label = new Label(" " + index);
final ImageView imageView = new ImageView(imageProfile);
JFXDepthManager.setDepth(pane, 1);
label.setId("player-listView-label");
pane.setId("player-listView-border");
imageView.setFitHeight(150);
imageView.setFitWidth(200);
BorderPane.setAlignment(imageView, Pos.CENTER);
BorderPane.setAlignment(label, Pos.CENTER_LEFT);
pane.setCenter(imageView);
pane.setLeft(label);
listView.getItems().add(pane);
listView.scrollTo(index);
}
// CHECKSTYLE:ON
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
BorderPane.setAlignment(this.buttonArea, Pos.BOTTOM_RIGHT);
HBox box = new HBox(this.buttonArea);
box.getStyleClass().add("efx-dialog-button-area"); //$NON-NLS-1$
box.setAlignment(Pos.CENTER_RIGHT);
setBottom(box);
BorderPane.setAlignment(this.buttonArea, Pos.BOTTOM_RIGHT);
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
BorderPane.setAlignment(this.buttonArea, Pos.BOTTOM_RIGHT);
HBox box = new HBox(this.buttonArea);
box.getStyleClass().add("efx-dialog-button-area"); //$NON-NLS-1$
box.setAlignment(Pos.CENTER_RIGHT);
setBottom(box);
BorderPane.setAlignment(this.buttonArea, Pos.BOTTOM_RIGHT);
内容来源于网络,如有侵权,请联系作者删除!