javafx.scene.layout.BorderPane.setId()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中javafx.scene.layout.BorderPane.setId()方法的一些代码示例,展示了BorderPane.setId()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BorderPane.setId()方法的具体详情如下:
包路径:javafx.scene.layout.BorderPane
类名称:BorderPane
方法名:setId

BorderPane.setId介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

BorderPane root = new BorderPane();
root.getChildren().add(btn);
root.setId("ROOTNODE");
Circle circ = new Circle(100,100,100);
circ.setRadius(60);
root.setClip(circ);

代码示例来源: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: ch.sahits.game/OpenPatricianDisplay

PlaceHolder ph = new PlaceHolder((WRAPPING_WIDTH - 200)/2, 1);
centered.setLeft(ph);
centered.setId("portrait");

相关文章