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