Examples of resizeRelocate()


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

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);
        }
      }
      y += spacing.get() + childHeight;
      maxY = Math.max(maxY, y);
    }
View Full Code Here

Examples of javafx.scene.Node.resizeRelocate()

        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

Examples of javafx.scene.Node.resizeRelocate()

        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

Examples of javafx.scene.Node.resizeRelocate()

                // 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

Examples of javafx.scene.Node.resizeRelocate()

  }
 
  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

Examples of javafx.scene.layout.GridPane.resizeRelocate()

        GridPane controls = new GridPane();
        controls.setVgap(5);
        controls.setHgap(5);
        controls.getChildren().addAll(brightnessLabel, brightnessSlider, brightnessField, saturationLabel, saturationSlider, saturationField, webLabel, webField);
        controls.setManaged(false);
        controls.resizeRelocate(
                PICKER_PADDING + 10,
                PICKER_PADDING + ARROW_SIZE + 10 + 170 + 10,
                PICKER_WIDTH - 20,
                controls.getPrefHeight());
       
View Full Code Here

Examples of javafx.scene.layout.Region.resizeRelocate()

                        closeBtn.resize(closeBtnWidth, closeBtnHeight);
                        positionInArea(closeBtn, closeBtnStartX, paddingTop, closeBtnWidth, h,
                                /*baseline ignored*/0, HPos.CENTER, VPos.CENTER);
                    }
                   
                    focusIndicator.resizeRelocate(
                            label.getLayoutX() - padding,
                            Math.min(label.getLayoutY(), closeBtn.isVisible() ? closeBtn.getLayoutY() : Double.MAX_VALUE) - padding,
                            labelWidth + closeBtnWidth + padding * 2,
                            Math.max(labelHeight, closeBtnHeight) + padding*2);
                }
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.