本文整理了Java中javafx.scene.Node.autosize()
方法的一些代码示例,展示了Node.autosize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.autosize()
方法的具体详情如下:
包路径:javafx.scene.Node
类名称:Node
方法名:autosize
暂无
代码示例来源:origin: jfoenixadmin/JFoenix
child.autosize();
child.setRotate(rotate % 180 == 0 ? rotate : -rotate);
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
e.getValue().autosize();
double w = e.getValue().getBoundsInLocal().getWidth();
e.getValue().autosize();
double w = e.getValue().getBoundsInLocal().getWidth();
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
if (collect.size() == 1) {
Node graphicsNode = collect.get(0);
graphicsNode.autosize();
graphicsNode.relocate(0, 0);
} else {
double start = 0;
for (Node n : collect) {
n.autosize();
n.relocate(start, 0);
start += n.prefWidth(-1);
if (collect.size() == 1) {
Node graphicsNode = collect.get(0);
graphicsNode.autosize();
graphicsNode.relocate(getWidth()-graphicsNode.prefWidth(-1), 0);
double start = 0;
for (Node n : collect) {
n.autosize();
n.relocate(getWidth()-n.prefWidth(-1) - start, 0);
start += n.prefWidth(-1);
if (collect.size() == 1) {
Node graphicsNode = collect.get(0);
graphicsNode.autosize();
graphicsNode.relocate(0, getHeight() - graphicsNode.prefHeight(-1));
} else {
double start = 0;
for (Node n : collect) {
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
if (collect.size() == 1) {
Node graphicsNode = collect.get(0);
graphicsNode.autosize();
graphicsNode.relocate(0, 0);
} else {
double start = 0;
for (Node n : collect) {
n.autosize();
n.relocate(start, 0);
start += n.prefWidth(-1);
if (collect.size() == 1) {
Node graphicsNode = collect.get(0);
graphicsNode.autosize();
graphicsNode.relocate(getWidth()-graphicsNode.prefWidth(-1), 0);
double start = 0;
for (Node n : collect) {
n.autosize();
n.relocate(getWidth()-n.prefWidth(-1) - start, 0);
start += n.prefWidth(-1);
if (collect.size() == 1) {
Node graphicsNode = collect.get(0);
graphicsNode.autosize();
graphicsNode.relocate(0, getHeight() - graphicsNode.prefHeight(-1));
} else {
double start = 0;
for (Node n : collect) {
代码示例来源:origin: stackoverflow.com
getChildren().add(node);
node.relocate(x + 10, y - node.prefHeight(Integer.MAX_VALUE) / 2);
node.autosize();
代码示例来源:origin: com.jfoenix/jfoenix
child.autosize();
child.setRotate(rotate % 180 == 0 ? rotate : -rotate);
内容来源于网络,如有侵权,请联系作者删除!