Package javafx.scene

Examples of javafx.scene.Node.resizeRelocate()


      if (move) {
        double childX = x + clientX, childY = y + clientY;
        if (justify.get() || fill.get() || center.get()) {
          bounds[i] = new BoundingBox(childX, childY, childWidth, childHeight);
        } else {
          child.resizeRelocate(childX, childY, childWidth, childHeight);
        }
      }
      x += spacing.get() + childWidth;
      maxX = Math.max(maxX, x);
    }
View Full Code Here


      if (move) {
        double childX = x + clientX, childY = y + clientY;
        if (justify.get() || fill.get() || center.get()) {
          bounds[i] = new BoundingBox(childX, childY, childWidth, childHeight);
        } else {
          child.resizeRelocate(childX, childY, childWidth, childHeight);
        }
      }
      y += spacing.get() + childHeight;
      maxY = Math.max(maxY, y);
    }
View Full Code Here

        if (i == 0) {
          childWidth += extra / 2;
        } else {
          if (i == count - 1) childWidth += (extra + 1) / 2;
        }
        child.resizeRelocate(x, y, childWidth, height);
        x += childWidth + spacing.get();
      }
    } else {
      height -= (count - 1) * spacing.get();
      double x = rect.getMinX() + marginWidth.get(), cellHeight = height / count;
View Full Code Here

        if (i == 0) {
          childHeight += extra / 2;
        } else {
          if (i == count - 1) childHeight += (extra + 1) / 2;
        }
        child.resizeRelocate (x, y, width, childHeight);
        y += childHeight + spacing.get();
      }
    }
  }
}
View Full Code Here

                // Nothing todo
                break;
            }
            Node child = grid [i][j];
            if (child != null) {
              child.resizeRelocate(childX, childY, childWidth, childHeight);
            }
          }
          gridX += widths [j] + horizontalSpacing.get();
        }
        gridY += heights [i] + verticalSpacing.get();
View Full Code Here

  }
 
  private void setRectangle(MUIElement node, Bounds bounds) {
    if (node.widget instanceof Node) {
      Node ctrl = (Node) node.widget;
      ctrl.resizeRelocate(bounds.getMinX(), bounds.getMinY(), bounds.getWidth(), bounds.getHeight());
    } else if (node instanceof MGenericTile) {
      Bounds newRect = new BoundingBox(bounds.getMinX(), bounds.getMinY(), bounds.getWidth(),
          bounds.getHeight());
      node.widget = newRect;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.