javafx.scene.Node.autosize()方法的使用及代码示例

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

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

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);

相关文章

微信公众号

最新文章

更多

Node类方法