本文整理了Java中javafx.scene.layout.BorderPane.setId()
方法的一些代码示例,展示了BorderPane.setId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BorderPane.setId()
方法的具体详情如下:
包路径:javafx.scene.layout.BorderPane
类名称: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");
内容来源于网络,如有侵权,请联系作者删除!