|
1 | 1 | /*
|
2 |
| - * Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
|
116 | 116 | * <dt>{@link GridBagConstraints#anchor}
|
117 | 117 | * <dd>Specifies where the component should be positioned in its display area.
|
118 | 118 | * There are three kinds of possible values: absolute, orientation-relative,
|
119 |
| - * and baseline-relative |
| 119 | + * and baseline-relative. |
120 | 120 | * Orientation relative values are interpreted relative to the container's
|
121 | 121 | * {@code ComponentOrientation} property while absolute values
|
122 | 122 | * are not. Baseline relative values are calculated relative to the
|
123 | 123 | * baseline. Valid values are:
|
124 | 124 | *
|
125 |
| - * <table class="striped" style="margin: 0px auto"> |
126 |
| - * <caption>Absolute, relative and baseline values as described above</caption> |
127 |
| - * <thead> |
128 |
| - * <tr> |
129 |
| - * <th><p style="text-align:center">Absolute Values</th> |
130 |
| - * <th><p style="text-align:center">Orientation Relative Values</th> |
131 |
| - * <th><p style="text-align:center">Baseline Relative Values</th> |
132 |
| - * </tr> |
133 |
| - * </thead> |
134 |
| - * <tbody> |
135 |
| - * <tr> |
136 |
| - * <td> |
137 |
| - * <ul style="list-style-type:none"> |
138 |
| - * <li>{@code GridBagConstraints.NORTH}</li> |
139 |
| - * <li>{@code GridBagConstraints.SOUTH}</li> |
140 |
| - * <li>{@code GridBagConstraints.WEST}</li> |
141 |
| - * <li>{@code GridBagConstraints.EAST}</li> |
142 |
| - * <li>{@code GridBagConstraints.NORTHWEST}</li> |
143 |
| - * <li>{@code GridBagConstraints.NORTHEAST}</li> |
144 |
| - * <li>{@code GridBagConstraints.SOUTHWEST}</li> |
145 |
| - * <li>{@code GridBagConstraints.SOUTHEAST}</li> |
146 |
| - * <li>{@code GridBagConstraints.CENTER} (the default)</li> |
147 |
| - * </ul> |
148 |
| - * </td> |
149 |
| - * <td> |
150 |
| - * <ul style="list-style-type:none"> |
151 |
| - * <li>{@code GridBagConstraints.PAGE_START}</li> |
152 |
| - * <li>{@code GridBagConstraints.PAGE_END}</li> |
153 |
| - * <li>{@code GridBagConstraints.LINE_START}</li> |
154 |
| - * <li>{@code GridBagConstraints.LINE_END}</li> |
155 |
| - * <li>{@code GridBagConstraints.FIRST_LINE_START}</li> |
156 |
| - * <li>{@code GridBagConstraints.FIRST_LINE_END}</li> |
157 |
| - * <li>{@code GridBagConstraints.LAST_LINE_START}</li> |
158 |
| - * <li>{@code GridBagConstraints.LAST_LINE_END}</li> |
159 |
| - * </ul> |
160 |
| - * </td> |
161 |
| - * <td> |
162 |
| - * <ul style="list-style-type:none"> |
163 |
| - * <li>{@code GridBagConstraints.BASELINE}</li> |
164 |
| - * <li>{@code GridBagConstraints.BASELINE_LEADING}</li> |
165 |
| - * <li>{@code GridBagConstraints.BASELINE_TRAILING}</li> |
166 |
| - * <li>{@code GridBagConstraints.ABOVE_BASELINE}</li> |
167 |
| - * <li>{@code GridBagConstraints.ABOVE_BASELINE_LEADING}</li> |
168 |
| - * <li>{@code GridBagConstraints.ABOVE_BASELINE_TRAILING}</li> |
169 |
| - * <li>{@code GridBagConstraints.BELOW_BASELINE}</li> |
170 |
| - * <li>{@code GridBagConstraints.BELOW_BASELINE_LEADING}</li> |
171 |
| - * <li>{@code GridBagConstraints.BELOW_BASELINE_TRAILING}</li> |
| 125 | + * <ul> |
| 126 | + * <li>Absolute Values: |
| 127 | + * <ul> |
| 128 | + * <li>{@code GridBagConstraints.NORTH} |
| 129 | + * <li>{@code GridBagConstraints.SOUTH} |
| 130 | + * <li>{@code GridBagConstraints.WEST} |
| 131 | + * <li>{@code GridBagConstraints.EAST} |
| 132 | + * <li>{@code GridBagConstraints.NORTHWEST} |
| 133 | + * <li>{@code GridBagConstraints.NORTHEAST} |
| 134 | + * <li>{@code GridBagConstraints.SOUTHWEST} |
| 135 | + * <li>{@code GridBagConstraints.SOUTHEAST} |
| 136 | + * <li>{@code GridBagConstraints.CENTER} (the default) |
| 137 | + * </ul> |
| 138 | + * <li>Orientation Relative Values: |
| 139 | + * <ul > |
| 140 | + * <li>{@code GridBagConstraints.PAGE_START} |
| 141 | + * <li>{@code GridBagConstraints.PAGE_END} |
| 142 | + * <li>{@code GridBagConstraints.LINE_START} |
| 143 | + * <li>{@code GridBagConstraints.LINE_END} |
| 144 | + * <li>{@code GridBagConstraints.FIRST_LINE_START} |
| 145 | + * <li>{@code GridBagConstraints.FIRST_LINE_END} |
| 146 | + * <li>{@code GridBagConstraints.LAST_LINE_START} |
| 147 | + * <li>{@code GridBagConstraints.LAST_LINE_END} |
| 148 | + * </ul> |
| 149 | + * <li>Baseline Relative Values: |
| 150 | + * <ul> |
| 151 | + * <li>{@code GridBagConstraints.BASELINE} |
| 152 | + * <li>{@code GridBagConstraints.BASELINE_LEADING} |
| 153 | + * <li>{@code GridBagConstraints.BASELINE_TRAILING} |
| 154 | + * <li>{@code GridBagConstraints.ABOVE_BASELINE} |
| 155 | + * <li>{@code GridBagConstraints.ABOVE_BASELINE_LEADING} |
| 156 | + * <li>{@code GridBagConstraints.ABOVE_BASELINE_TRAILING} |
| 157 | + * <li>{@code GridBagConstraints.BELOW_BASELINE} |
| 158 | + * <li>{@code GridBagConstraints.BELOW_BASELINE_LEADING} |
| 159 | + * <li>{@code GridBagConstraints.BELOW_BASELINE_TRAILING} |
| 160 | + * </ul> |
172 | 161 | * </ul>
|
173 |
| - * </td> |
174 |
| - * </tr> |
175 |
| - * </tbody> |
176 |
| - * </table> |
177 | 162 | * <dt>{@link GridBagConstraints#weightx},
|
178 | 163 | * {@link GridBagConstraints#weighty}
|
179 | 164 | * <dd>Used to determine how to distribute space, which is
|
|
201 | 186 | * <p>
|
202 | 187 | * The following figure shows a baseline layout and includes a
|
203 | 188 | * component that spans rows:
|
204 |
| - * <table class="borderless" style="margin: 0px auto"> |
205 |
| - * <caption>Baseline Layout</caption> |
206 |
| - * <tr style="text-align:center"> |
207 |
| - * <td> |
208 |
| - * <img src="doc-files/GridBagLayout-baseline.png" |
209 |
| - * alt="The following text describes this graphic (Figure 1)." style="float:center"> |
210 |
| - * </td> |
211 |
| - * </table> |
| 189 | + * <p style="text-align: center"> |
| 190 | + * <img src="doc-files/GridBagLayout-baseline.png" |
| 191 | + * alt="The following text describes this graphic (Figure 1)."> |
| 192 | + * </p> |
212 | 193 | * This layout consists of three components:
|
213 | 194 | * <ul><li>A panel that starts in row 0 and ends in row 1. The panel
|
214 | 195 | * has a baseline-resize behavior of {@code CONSTANT_DESCENT} and has
|
|
257 | 238 | * left-to-right container and Figure 3 shows the layout for a horizontal,
|
258 | 239 | * right-to-left container.
|
259 | 240 | *
|
260 |
| - * <table class="borderless" style="margin: 0px auto"> |
261 |
| - * <caption style="width:600;display:none">Figures</caption> |
262 |
| - * <tr style="text-align:center"> |
263 |
| - * <td> |
264 |
| - * <img src="doc-files/GridBagLayout-1.gif" alt="The preceding text describes this graphic (Figure 1)." style="float:center; margin: 7px 10px;"> |
265 |
| - * </td> |
266 |
| - * <td> |
267 |
| - * <img src="doc-files/GridBagLayout-2.gif" alt="The preceding text describes this graphic (Figure 2)." style="float:center; margin: 7px 10px;"> |
268 |
| - * </td> |
269 |
| - * <tr style="text-align:center"> |
270 |
| - * <td>Figure 2: Horizontal, Left-to-Right</td> |
271 |
| - * <td>Figure 3: Horizontal, Right-to-Left</td> |
272 |
| - * </tr> |
273 |
| - * </table> |
| 241 | + * <div style="margin:0 auto;width:680px;text-align:center;font-weight:bold"> |
| 242 | + * <div style="float:left"> |
| 243 | + * <p><img src="doc-files/GridBagLayout-1.gif" |
| 244 | + * alt="The preceding text describes this graphic (Figure 2)." |
| 245 | + * style="margin: 7px 10px;"> |
| 246 | + * <p>Figure 2: Horizontal, Left-to-Right |
| 247 | + * </div> |
| 248 | + * <div style="float:right"> |
| 249 | + * <p><img src="doc-files/GridBagLayout-2.gif" |
| 250 | + * alt="The preceding text describes this graphic (Figure 3)." |
| 251 | + * style="margin: 7px 10px;"> |
| 252 | + * <p>Figure 3: Horizontal, Right-to-Left |
| 253 | + * </div> |
| 254 | + * <br style="clear:both;"> |
| 255 | + * </div> |
274 | 256 | * <p>
|
275 | 257 | * Each of the ten components has the {@code fill} field
|
276 | 258 | * of its associated {@code GridBagConstraints} object
|
|
0 commit comments