< prev index next >

modules/javafx.graphics/src/main/java/javafx/scene/layout/StackPane.java

Print this page

        

*** 46,64 **** * * StackPane lays out its children in a back-to-front stack. * <p> * The z-order of the children is defined by the order of the children list * with the 0th child being the bottom and last child on top. If a border and/or ! * padding have been set, the children will be layed out within those insets. * <p> * The stackpane will attempt to resize each child to fill its content area. * If the child could not be sized to fill the stackpane (either because it was * not resizable or its max size prevented it) then it will be aligned within * the area using the alignment property, which defaults to Pos.CENTER. * <p> * StackPane example: ! * <pre>{@code StackPane stack = new StackPane(); * stack.getChildren().addAll(new Rectangle(100,100,Color.BLUE), new Label("Go!)); * }</pre> * <p> * StackPane lays out each managed child regardless of the child's * visible property value; unmanaged children are ignored.</p> --- 46,65 ---- * * StackPane lays out its children in a back-to-front stack. * <p> * The z-order of the children is defined by the order of the children list * with the 0th child being the bottom and last child on top. If a border and/or ! * padding have been set, the children will be laid out within those insets. * <p> * The stackpane will attempt to resize each child to fill its content area. * If the child could not be sized to fill the stackpane (either because it was * not resizable or its max size prevented it) then it will be aligned within * the area using the alignment property, which defaults to Pos.CENTER. * <p> * StackPane example: ! * <pre>{@code ! * StackPane stack = new StackPane(); * stack.getChildren().addAll(new Rectangle(100,100,Color.BLUE), new Label("Go!)); * }</pre> * <p> * StackPane lays out each managed child regardless of the child's * visible property value; unmanaged children are ignored.</p>
*** 99,109 **** * </code></pre> * Applications may restore the computed values by setting these properties back * to USE_COMPUTED_SIZE. * * <p> ! * StackPane does not clip its content by default, so it is possible that childrens' * bounds may extend outside its own bounds if a child's min size prevents it from * being fit within the stackpane.</p> * * <h3>Optional Layout Constraints</h3> * --- 100,110 ---- * </code></pre> * Applications may restore the computed values by setting these properties back * to USE_COMPUTED_SIZE. * * <p> ! * StackPane does not clip its content by default, so it is possible that children's * bounds may extend outside its own bounds if a child's min size prevents it from * being fit within the stackpane.</p> * * <h3>Optional Layout Constraints</h3> *
< prev index next >