Package javafx.geometry

Examples of javafx.geometry.BoundingBox


        }
        double minX = Stream.of(bounds).mapToDouble(Bounds::getMinX).min().getAsDouble();
        double maxX = Stream.of(bounds).mapToDouble(Bounds::getMaxX).max().getAsDouble();
        double minY = Stream.of(bounds).mapToDouble(Bounds::getMinY).min().getAsDouble();
        double maxY = Stream.of(bounds).mapToDouble(Bounds::getMaxY).max().getAsDouble();
        return Optional.of(new BoundingBox(minX, minY, maxX-minX, maxY-minY));
    }
View Full Code Here


    private static Bounds extendLeft(Bounds b, double w) {
        if(w == 0) {
            return b;
        } else {
            return new BoundingBox(
                        b.getMinX() - w, b.getMinY(),
                        b.getWidth() + w, b.getHeight());
        }
    }
View Full Code Here

        maxHeight = Math.max(maxHeight, childHeight);
      }
      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;
View Full Code Here

        maxWidth = Math.max(maxWidth, childWidth);
      }
      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;
View Full Code Here

    }
    return new Size(x + maxWidth + marginRight.get() + marginWidth.get(), maxY);
  }

  private static Bounds changeX(Bounds original, double amount) {
    return new BoundingBox(original.getMinX() + amount, original.getMinY(), original.getWidth(), original.getHeight());
  }
View Full Code Here

  private static Bounds changeX(Bounds original, double amount) {
    return new BoundingBox(original.getMinX() + amount, original.getMinY(), original.getWidth(), original.getHeight());
  }

  private static Bounds changeY(Bounds original, double amount) {
    return new BoundingBox(original.getMinX(), original.getMinY() + amount, original.getWidth(), original.getHeight());
  }
View Full Code Here

  private static Bounds changeY(Bounds original, double amount) {
    return new BoundingBox(original.getMinX(), original.getMinY() + amount, original.getWidth(), original.getHeight());
  }

  private static Bounds changeHeight(Bounds original, double amount) {
    return new BoundingBox(original.getMinX(), original.getMinY(), original.getWidth(), original.getHeight() + amount);
  }
View Full Code Here

  private static Bounds changeHeight(Bounds original, double amount) {
    return new BoundingBox(original.getMinX(), original.getMinY(), original.getWidth(), original.getHeight() + amount);
  }

  private static Bounds changeWidth(Bounds original, double amount) {
    return new BoundingBox(original.getMinX(), original.getMinY(), original.getWidth() + amount, original.getHeight());
  }
View Full Code Here

        inSash = true;
    }
    if (!inSash)
      return srs;

    BoundingBox target = new BoundingBox(x - 5, y - 5, 10, 10);
    for (SashRect sr : sashes) {
      if (sr.rect.intersects(target))
        srs.add(sr);
    }
    return srs;
View Full Code Here

  protected void layoutChildren() {
    if (root == null)
      return;

    Bounds bounds = getLayoutBounds();
    bounds = new BoundingBox(bounds.getMinX() + marginLeft.get(),
        bounds.getMinY() + marginTop.get(),
        bounds.getWidth() - (marginLeft.get() + marginRight.get()),
        bounds.getHeight() - (marginTop.get() + marginBottom.get()));

    sashes.clear();
View Full Code Here

TOP

Related Classes of javafx.geometry.BoundingBox

Copyright © 2018 www.massapicom. 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.