90 * <td>top/bottom insets plus height required to display children anchored at top/bottom with at least their min heights</td></tr>
91 * <tr><th scope="row">preferred</th>
92 * <td>left/right insets plus width required to display children anchored at left/right with at least their pref widths</td>
93 * <td>top/bottom insets plus height required to display children anchored at top/bottom with at least their pref heights</td></tr>
94 * <tr><th scope="row">maximum</th>
95 * <td>Double.MAX_VALUE</td><td>Double.MAX_VALUE</td></tr>
96 * </table>
97 * <p>
98 * An anchor pane's unbounded maximum width and height are an indication to the parent that
99 * it may be resized beyond its preferred size to fill whatever space is assigned
100 * to it.
101 * <p>
102 * AnchorPane provides properties for setting the size range directly. These
103 * properties default to the sentinel value Region.USE_COMPUTED_SIZE, however the
104 * application may set them to other values as needed:
105 * <pre><code> <b>anchorPane.setPrefSize(300, 300);</b>
106 * </code></pre>
107 * Applications may restore the computed values by setting these properties back
108 * to Region.USE_COMPUTED_SIZE.
109 * <p>
110 * AnchorPane does not clip its content by default, so it is possible that childrens'
111 * bounds may extend outside its own bounds if the anchor pane is resized smaller
112 * than its preferred size.</p>
113 *
114 * @since JavaFX 2.0
115 */
116 public class AnchorPane extends Pane {
117
118 private static final String TOP_ANCHOR = "pane-top-anchor";
119 private static final String LEFT_ANCHOR = "pane-left-anchor";
120 private static final String BOTTOM_ANCHOR = "pane-bottom-anchor";
121 private static final String RIGHT_ANCHOR = "pane-right-anchor";
122
123 /********************************************************************
124 * BEGIN static methods
125 ********************************************************************/
126
127 /**
128 * Sets the top anchor for the child when contained by an anchor pane.
129 * If set, the anchor pane will maintain the child's size and position so
130 * that it's top is always offset by that amount from the anchor pane's top
|
90 * <td>top/bottom insets plus height required to display children anchored at top/bottom with at least their min heights</td></tr>
91 * <tr><th scope="row">preferred</th>
92 * <td>left/right insets plus width required to display children anchored at left/right with at least their pref widths</td>
93 * <td>top/bottom insets plus height required to display children anchored at top/bottom with at least their pref heights</td></tr>
94 * <tr><th scope="row">maximum</th>
95 * <td>Double.MAX_VALUE</td><td>Double.MAX_VALUE</td></tr>
96 * </table>
97 * <p>
98 * An anchor pane's unbounded maximum width and height are an indication to the parent that
99 * it may be resized beyond its preferred size to fill whatever space is assigned
100 * to it.
101 * <p>
102 * AnchorPane provides properties for setting the size range directly. These
103 * properties default to the sentinel value Region.USE_COMPUTED_SIZE, however the
104 * application may set them to other values as needed:
105 * <pre><code> <b>anchorPane.setPrefSize(300, 300);</b>
106 * </code></pre>
107 * Applications may restore the computed values by setting these properties back
108 * to Region.USE_COMPUTED_SIZE.
109 * <p>
110 * AnchorPane does not clip its content by default, so it is possible that children's
111 * bounds may extend outside its own bounds if the anchor pane is resized smaller
112 * than its preferred size.</p>
113 *
114 * @since JavaFX 2.0
115 */
116 public class AnchorPane extends Pane {
117
118 private static final String TOP_ANCHOR = "pane-top-anchor";
119 private static final String LEFT_ANCHOR = "pane-left-anchor";
120 private static final String BOTTOM_ANCHOR = "pane-bottom-anchor";
121 private static final String RIGHT_ANCHOR = "pane-right-anchor";
122
123 /********************************************************************
124 * BEGIN static methods
125 ********************************************************************/
126
127 /**
128 * Sets the top anchor for the child when contained by an anchor pane.
129 * If set, the anchor pane will maintain the child's size and position so
130 * that it's top is always offset by that amount from the anchor pane's top
|