< prev index next >

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

Print this page




 101  * <td>top/bottom insets plus height required to display top/bottom children at their pref heights and left/right/center with at least their min heights</td></tr>
 102  * <tr><th scope="row">preferred</th>
 103  * <td>left/right insets plus width required to display top/right/bottom/left/center children with at least their pref widths</td>
 104  * <td>top/bottom insets plus height required to display top/right/bottom/left/center children with at least their pref heights</td></tr>
 105  * <tr><th scope="row">maximum</th>
 106  * <td>Double.MAX_VALUE</td><td>Double.MAX_VALUE</td></tr>
 107  * </table>
 108  * <p>
 109  * A border pane's unbounded maximum width and height are an indication to the parent that
 110  * it may be resized beyond its preferred size to fill whatever space is assigned to it.
 111  * <p>
 112  * BorderPane provides properties for setting the size range directly.  These
 113  * properties default to the sentinel value Region.USE_COMPUTED_SIZE, however the
 114  * application may set them to other values as needed:
 115  * <pre><code>
 116  *     <b>borderPane.setPrefSize(500,400);</b>
 117  * </code></pre>
 118  * Applications may restore the computed values by setting these properties back
 119  * to Region.USE_COMPUTED_SIZE.
 120  * <p>
 121  * BorderPane does not clip its content by default, so it is possible that childrens'
 122  * bounds may extend outside its own bounds if a child's min size prevents it from
 123  * being fit within it space.</p>
 124  *
 125  * <h4>Optional Layout Constraints</h4>
 126  *
 127  * <p>
 128  * An application may set constraints on individual children to customize BorderPane's layout.
 129  * For each constraint, BorderPane provides a static method for setting it on the child.
 130  * </p>
 131  *
 132  * <table border="1">
 133  * <caption>BorderPane Constraint Table</caption>
 134  * <tr><th scope="col">Constraint</th><th scope="col">Type</th><th scope="col">Description</th></tr>
 135  * <tr><th scope="row">alignment</th><td>javafx.geometry.Pos</td><td>The alignment of the child within its area of the border pane.</td></tr>
 136  * <tr><th scope="row">margin</th><td>javafx.geometry.Insets</td><td>Margin space around the outside of the child.</td></tr>
 137  * </table>
 138  * <p>
 139  * Example:
 140  * <pre><code>     ListView list = new ListView();
 141  *     <b>BorderPane.setAlignment(list, Pos.TOP_LEFT);




 101  * <td>top/bottom insets plus height required to display top/bottom children at their pref heights and left/right/center with at least their min heights</td></tr>
 102  * <tr><th scope="row">preferred</th>
 103  * <td>left/right insets plus width required to display top/right/bottom/left/center children with at least their pref widths</td>
 104  * <td>top/bottom insets plus height required to display top/right/bottom/left/center children with at least their pref heights</td></tr>
 105  * <tr><th scope="row">maximum</th>
 106  * <td>Double.MAX_VALUE</td><td>Double.MAX_VALUE</td></tr>
 107  * </table>
 108  * <p>
 109  * A border pane's unbounded maximum width and height are an indication to the parent that
 110  * it may be resized beyond its preferred size to fill whatever space is assigned to it.
 111  * <p>
 112  * BorderPane provides properties for setting the size range directly.  These
 113  * properties default to the sentinel value Region.USE_COMPUTED_SIZE, however the
 114  * application may set them to other values as needed:
 115  * <pre><code>
 116  *     <b>borderPane.setPrefSize(500,400);</b>
 117  * </code></pre>
 118  * Applications may restore the computed values by setting these properties back
 119  * to Region.USE_COMPUTED_SIZE.
 120  * <p>
 121  * BorderPane does not clip its content by default, so it is possible that children's
 122  * bounds may extend outside its own bounds if a child's min size prevents it from
 123  * being fit within it space.</p>
 124  *
 125  * <h4>Optional Layout Constraints</h4>
 126  *
 127  * <p>
 128  * An application may set constraints on individual children to customize BorderPane's layout.
 129  * For each constraint, BorderPane provides a static method for setting it on the child.
 130  * </p>
 131  *
 132  * <table border="1">
 133  * <caption>BorderPane Constraint Table</caption>
 134  * <tr><th scope="col">Constraint</th><th scope="col">Type</th><th scope="col">Description</th></tr>
 135  * <tr><th scope="row">alignment</th><td>javafx.geometry.Pos</td><td>The alignment of the child within its area of the border pane.</td></tr>
 136  * <tr><th scope="row">margin</th><td>javafx.geometry.Insets</td><td>Margin space around the outside of the child.</td></tr>
 137  * </table>
 138  * <p>
 139  * Example:
 140  * <pre><code>     ListView list = new ListView();
 141  *     <b>BorderPane.setAlignment(list, Pos.TOP_LEFT);


< prev index next >