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

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

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

BorderPane.heightProperty介绍

暂无

代码示例

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

DoubleBinding heightBinding = root.heightProperty()
    .subtract(root.bottomProperty().getValue().getBoundsInParent().getHeight());
canvas.widthProperty().bind(root.widthProperty());

代码示例来源:origin: com.github.giulianini.jestures/jestures

private void initUserCanvas() {
  this.userCanvas = new Canvas(this.recorderPane.getMinWidth(), this.recorderPane.getMinHeight());
  this.userCanvas.widthProperty().bind(this.recorderPane.widthProperty());
  this.userCanvas.heightProperty().bind(this.recorderPane.heightProperty());
  this.userCanvasContext = this.userCanvas.getGraphicsContext2D();
}

代码示例来源:origin: com.bitplan.gui/com.bitplan.javafx

/**
 * helper function for images
 * @param icon
 * @return the BoderPane that wraps the given icon
 */
public BorderPane wrapImageView(ImageView icon) {
 BorderPane pane = new BorderPane();
 pane.setCenter(icon);
 // resize images automatically
 // https://stackoverflow.com/a/12635224/1497139
 icon.setPreserveRatio(true);
 icon.fitHeightProperty().bind(pane.heightProperty());
 icon.fitWidthProperty().bind(pane.widthProperty());
 return pane;
}

代码示例来源:origin: com.github.giulianini.jestures/jestures

private void initLiveCanvas() {
  this.liveCanvas = new Canvas(this.recorderPane.getMinWidth(), this.recorderPane.getMinHeight());
  this.liveCanvas.widthProperty().bind(this.recorderPane.widthProperty());
  this.liveCanvas.heightProperty().bind(this.recorderPane.heightProperty());
  this.liveCanvasContext = this.liveCanvas.getGraphicsContext2D();
  this.liveCanvasStackPane.getChildren().setAll(this.liveCanvas);
}

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

clip.centerYProperty().bind(new DoubleBinding() {
    bind(root.heightProperty());

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

root.heightProperty().addListener((ChangeListener<Number>) (observable, oldValue, newValue) -> layoutItems());
root.widthProperty().addListener((ChangeListener<Number>) (observable, oldValue, newValue) -> layoutItems());
pagination.currentPageIndexProperty().addListener((ChangeListener<Number>) (observable, oldValue, newValue) -> layoutItems());

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

detailsView.prefHeightProperty().bind(rootLayout.heightProperty());

相关文章