Package javafx.scene

Class Group

All Implemented Interfaces:
LayoutMeasurable, LayoutMeasurableMixin, HasAutoSizeChildrenProperty, HasBlendModeProperty, HasClipProperty, HasEffectProperty, HasLayoutXProperty, HasLayoutYProperty, HasManagedProperty, HasMouseTransparentProperty, HasOnMouseClickedProperty, HasOpacityProperty, HasParentProperty, HasVisibleProperty, Styleable, EventTarget, INode

public class Group extends Parent implements HasAutoSizeChildrenProperty
Author:
Bruno Salmon
  • Property Details

  • Constructor Details

    • Group

      public Group()
    • Group

      public Group(Node... nodes)
  • Method Details

    • autoSizeChildrenProperty

      public Property<Boolean> autoSizeChildrenProperty()
      Specified by:
      autoSizeChildrenProperty in interface HasAutoSizeChildrenProperty
      Returns:
      the autoSizeChildren property
    • impl_prefWidth

      protected double impl_prefWidth(double height)
      Group defines the preferred width as simply being the width of its layout bounds, which in turn is simply the sum of the positions invalid input: '&' widths of all of its children. That is, the preferred width is the one that it is at, because a Group cannot be resized. Note: as the layout bounds in autosize Group depend on the Group to be already laid-out, this call will do the layout of the Group if necessary.
      Overrides:
      impl_prefWidth in class Parent
      Parameters:
      height - This parameter is ignored by Group
      Returns:
      The layout bounds width
    • impl_prefHeight

      protected double impl_prefHeight(double width)
      Group defines the preferred height as simply being the height of its layout bounds, which in turn is simply the sum of the positions invalid input: '&' heights of all of its children. That is, the preferred height is the one that it is at, because a Group cannot be resized. Note: as the layout bounds in autosize Group depend on the Group to be already laid-out, this call will do the layout of the Group if necessary.
      Overrides:
      impl_prefHeight in class Parent
      Parameters:
      width - This parameter is ignored by Group
      Returns:
      The layout bounds height
    • impl_minHeight

      protected double impl_minHeight(double width)
      Overrides:
      impl_minHeight in class Parent
    • impl_minWidth

      protected double impl_minWidth(double height)
      Overrides:
      impl_minWidth in class Parent
    • layoutChildren

      protected void layoutChildren()
      Group implements layoutChildren such that each child is resized to its preferred size, if the child is resizable. Non-resizable children are simply left alone. If
      invalid @link
      #autoSizeChildren
      is false, then Group does nothing in this method.
      Overrides:
      layoutChildren in class Parent
    • layout

      public void layout()
      Description copied from class: Parent
      Executes a top-down layout pass on the scene graph under this parent. Calling this method while the Parent is doing layout is a no-op.
      Overrides:
      layout in class Parent