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

x33g5p2x  于2022-01-29 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(97)

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

Region.layoutChildren介绍

暂无

代码示例

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

@Override
protected void layoutChildren() {
  super.layoutChildren();
  this.textNode.relocate(0, 0);
  DecorationStrategy decorationStrategy2 = this.decorationStrategy.get();
  if (decorationStrategy2 != null) {
    decorationStrategy2.layout(this, this.textNode);
  }
}

代码示例来源:origin: nl.cloudfarming.client/calendar-api

@Override
protected void layoutChildren() {
  super.layoutChildren();
  double visibleWidth = getVisibleWidth();
  double x = 0;

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls

@Override
  protected void layoutChildren() {
    super.layoutChildren();

    Insets pad = getPadding();
    double width = getWidth() * this.leftRightRatio;
    double height = getHeight() - (pad.getTop() + pad.getBottom());

    this.left.resizeRelocate(pad.getLeft(), pad.getTop(), width, height);
    this.right.resizeRelocate(getWidth() - pad.getRight() - width, pad.getTop(), width, height);

    this.top.resizeRelocate(this.left.getLayoutX() + this.left.getWidth(), this.left.getLayoutY(), getWidth() - width * 2, height / 2);
    this.bottom.resizeRelocate(this.left.getLayoutX() + this.left.getWidth(), this.top.getLayoutY() + this.top.getHeight(), getWidth() - width * 2, height / 2);
  }
}

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

@Override
  protected void layoutChildren() {
    super.layoutChildren();

    Insets pad = getPadding();
    double width = getWidth() * this.leftRightRatio;
    double height = getHeight() - (pad.getTop() + pad.getBottom());

    this.left.resizeRelocate(pad.getLeft(), pad.getTop(), width, height);
    this.right.resizeRelocate(getWidth() - pad.getRight() - width, pad.getTop(), width, height);

    this.top.resizeRelocate(this.left.getLayoutX() + this.left.getWidth(), this.left.getLayoutY(), getWidth() - width * 2, height / 2);
    this.bottom.resizeRelocate(this.left.getLayoutX() + this.left.getWidth(), this.top.getLayoutY() + this.top.getHeight(), getWidth() - width * 2, height / 2);
  }
}

代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls

@Override
protected void layoutChildren() {
  super.layoutChildren();

相关文章