/[classpath]/classpath/javax/swing/plaf/basic/BasicBorders.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicBorders.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by brawer, Tue Jul 1 06:55:26 2003 UTC revision 1.13 by brawer, Mon Jul 28 10:40:34 2003 UTC
# Line 85  public class BasicBorders Line 85  public class BasicBorders
85     * <code>&#x201c;Button.light&#x201d;</code>, and     * <code>&#x201c;Button.light&#x201d;</code>, and
86     * <code>&#x201c;Button.highlight&#x201d;</code>.     * <code>&#x201c;Button.highlight&#x201d;</code>.
87     *     *
88     * <p><img src="BasicBorders.ButtonBorder-1.png" width="300"     * <p><img src="doc-files/BasicBorders.ButtonBorder-1.png" width="300"
89     * height="170" alt="[A screen shot of the returned border]" />     * height="170" alt="[A screen shot of the returned border]" />
90     *     *
91     * @return a {@link     * @return a {@link
# Line 135  public class BasicBorders Line 135  public class BasicBorders
135     * <code>&#x201c;RadioButton.light&#x201d;</code>, and     * <code>&#x201c;RadioButton.light&#x201d;</code>, and
136     * <code>&#x201c;RadioButton.highlight&#x201d;</code>.     * <code>&#x201c;RadioButton.highlight&#x201d;</code>.
137     *     *
138     * <p><img src="BasicBorders.RadioButtonBorder-1.png" width="300"     * <p><img src="doc-files/BasicBorders.RadioButtonBorder-1.png" width="300"
139     * height="135" alt="[A screen shot of the returned border]" />     * height="135" alt="[A screen shot of the returned border]" />
140     *     *
141     * @return a {@link     * @return a {@link
# Line 187  public class BasicBorders Line 187  public class BasicBorders
187     * <code>&#x201c;ToggleButton.light&#x201d;</code>, and     * <code>&#x201c;ToggleButton.light&#x201d;</code>, and
188     * <code>&#x201c;ToggleButton.highlight&#x201d;</code>.     * <code>&#x201c;ToggleButton.highlight&#x201d;</code>.
189     *     *
190     * <p><img src="BasicBorders.ToggleButtonBorder-1.png" width="270"     * <p><img src="doc-files/BasicBorders.ToggleButtonBorder-1.png" width="270"
191     * height="135" alt="[A screen shot of the returned border]" />     * height="135" alt="[A screen shot of the returned border]" />
192     *     *
193     * @return a {@link     * @return a {@link
# Line 238  public class BasicBorders Line 238  public class BasicBorders
238     * using the keys <code>&#x201c;MenuBar.shadow&#x201d;</code> and     * using the keys <code>&#x201c;MenuBar.shadow&#x201d;</code> and
239     * <code>&#x201c;MenuBar.highlight&#x201d;</code>.     * <code>&#x201c;MenuBar.highlight&#x201d;</code>.
240     *     *
241     * <p><img src="BasicBorders.MenuBarBorder-1.png" width="500"     * <p><img src="doc-files/BasicBorders.MenuBarBorder-1.png" width="500"
242     * height="140" alt="[A screen shot of a JMenuBar with this border]" />     * height="140" alt="[A screen shot of a JMenuBar with this border]" />
243     *     *
244     * @return a {@link #MenuBarBorder}.     * @return a {@link #MenuBarBorder}.
# Line 266  public class BasicBorders Line 266  public class BasicBorders
266     * using the keys <code>&#x201c;SplitPane.darkShadow&#x201d;</code> and     * using the keys <code>&#x201c;SplitPane.darkShadow&#x201d;</code> and
267     * <code>&#x201c;SplitPane.highlight&#x201d;</code>.     * <code>&#x201c;SplitPane.highlight&#x201d;</code>.
268     *       *  
269     * <p><img src="BasicBorders.SplitPaneBorder-1.png" width="520"     * <p><img src="doc-files/BasicBorders.SplitPaneBorder-1.png" width="520"
270     * height="200" alt="[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" />     * height="200" alt="[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" />
271     *     *
272     * <p><img src="BasicBorders.SplitPaneBorder-2.png" width="520"     * <p><img src="doc-files/BasicBorders.SplitPaneBorder-2.png" width="520"
273     * height="200" alt="[A screen shot for JSplitPane.VERTICAL_SPLIT]" />     * height="200" alt="[A screen shot for JSplitPane.VERTICAL_SPLIT]" />
274     *     *
275     * @return a {@link #SplitPaneBorder}.     * @return a {@link #SplitPaneBorder}.
# Line 299  public class BasicBorders Line 299  public class BasicBorders
299     * <code>&#x201c;SplitPane.highlight&#x201d;</code>. The color of the     * <code>&#x201c;SplitPane.highlight&#x201d;</code>. The color of the
300     * other two edges is the background color of the divider.     * other two edges is the background color of the divider.
301     *     *
302     * <p><img src="BasicBorders.SplitPaneDividerBorder-1.png" width="520"     * <p><img src="doc-files/BasicBorders.SplitPaneDividerBorder-1.png"
303     * height="200" alt="[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" />     * width="520" height="200" alt=
304       * "[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" />
305     *     *
306     * @return an instance of <code>SplitPaneDividerBorder</code>, which is     * @return an instance of <code>SplitPaneDividerBorder</code>, which is
307     *         not a public API class of this package.     *         not a public API class of this package.
# Line 334  public class BasicBorders Line 335  public class BasicBorders
335     * <code>&#x201c;TextField.light&#x201d;</code>, and     * <code>&#x201c;TextField.light&#x201d;</code>, and
336     * <code>&#x201c;TextField.highlight&#x201d;</code>.     * <code>&#x201c;TextField.highlight&#x201d;</code>.
337     *     *
338     * <p><img src="BasicBorders.FieldBorder-1.png" width="500"     * <p><img src="doc-files/BasicBorders.FieldBorder-1.png" width="500"
339     * height="200" alt="[A screen shot of a border returned by     * height="200" alt="[A screen shot of a border returned by
340     * this method]" />     * this method]" />
341     *     *
# Line 364  public class BasicBorders Line 365  public class BasicBorders
365     * feels better use different borders for their progress bars, or     * feels better use different borders for their progress bars, or
366     * they will look really terrible.     * they will look really terrible.
367     *     *
368     * <p><img src="BasicBorders-1.png" width="120" height="80"     * <p><img src="doc-files/BasicBorders-1.png" width="120" height="80"
369     * alt="[A screen shot of a border returned by this method]" />     * alt="[A screen shot of a border returned by this method]" />
370     */     */
371    public static Border getProgressBarBorder()    public static Border getProgressBarBorder()
# Line 380  public class BasicBorders Line 381  public class BasicBorders
381     * Returns a border that is composed of a raised bevel border and a     * Returns a border that is composed of a raised bevel border and a
382     * one-pixel thick line border.     * one-pixel thick line border.
383     *     *
384     * <p><img src="BasicBorders-2.png" width="300" height="200"     * <p><img src="doc-files/BasicBorders-2.png" width="300" height="200"
385     * alt="[A screen shot of a border returned by this method]" />     * alt="[A screen shot of a border returned by this method]" />
386     *     *
387     * <p>The colors of the border are retrieved from the     * <p>The colors of the border are retrieved from the
# Line 440  public class BasicBorders Line 441  public class BasicBorders
441     * A border whose appearance depends on the state of     * A border whose appearance depends on the state of
442     * the enclosed button.     * the enclosed button.
443     *     *
444     * <p><img src="BasicBorders.ButtonBorder-1.png" width="300"     * <p><img src="doc-files/BasicBorders.ButtonBorder-1.png" width="300"
445     * height="170" alt="[A screen shot of this border]" />     * height="170" alt="[A screen shot of this border]" />
446     *     *
447     * @see javax.swing.plaf.basic.BasicGraphicsUtils#drawBezel     * @see javax.swing.plaf.basic.BasicGraphicsUtils#drawBezel
# Line 616  public class BasicBorders Line 617  public class BasicBorders
617     * A border that makes its enclosed component appear as lowered     * A border that makes its enclosed component appear as lowered
618     * into the surface. Typically used for text fields.     * into the surface. Typically used for text fields.
619     *     *
620     * <p><img src="BasicBorders.FieldBorder-1.png" width="500"     * <p><img src="doc-files/BasicBorders.FieldBorder-1.png" width="500"
621     * height="200" alt="[A screen shot of this border]" />     * height="200" alt="[A screen shot of this border]" />
622     *     *
623     * @see javax.swing.plaf.basic.BasicGraphicsUtils#drawEtchedRect     * @see javax.swing.plaf.basic.BasicGraphicsUtils#drawEtchedRect
# Line 784  public class BasicBorders Line 785  public class BasicBorders
785     * component.  If the enclosed component has no such method,     * component.  If the enclosed component has no such method,
786     * this border will not occupy any space.     * this border will not occupy any space.
787     *     *
788     * <p><img src="BasicBorders.MarginBorder-1.png" width="325"     * <p><img src="doc-files/BasicBorders.MarginBorder-1.png" width="325"
789     * height="200" alt="[An illustration that shows how MarginBorder     * height="200" alt="[An illustration that shows how MarginBorder
790     * determines its borders]" />     * determines its borders]" />
791     *     *
# Line 885  public class BasicBorders Line 886  public class BasicBorders
886    /**    /**
887     * A border for drawing a separator line below JMenuBar.     * A border for drawing a separator line below JMenuBar.
888     *     *
889     * <p><img src="BasicBorders.MenuBarBorder-1.png" width="500"     * <p><img src="doc-files/BasicBorders.MenuBarBorder-1.png" width="500"
890     * height="140" alt="[A screen shot of a JMenuBar with this border]" />     * height="140" alt="[A screen shot of a JMenuBar with this border]" />
891     *     *
892     * @author Sascha Brawer (brawer@dandelis.ch)     * @author Sascha Brawer (brawer@dandelis.ch)
# Line 919  public class BasicBorders Line 920  public class BasicBorders
920       * Constructs a new MenuBarBorder for drawing a JMenuBar in       * Constructs a new MenuBarBorder for drawing a JMenuBar in
921       * the Basic look and feel.       * the Basic look and feel.
922       *       *
923       * <p><img src="BasicBorders.MenuBarBorder-1.png" width="500"       * <p><img src="doc-files/BasicBorders.MenuBarBorder-1.png" width="500"
924       * height="140" alt="[A screen shot of a JMenuBar with this       * height="140" alt="[A screen shot of a JMenuBar with this
925       * border]" />       * border]" />
926       *       *
# Line 1041  public class BasicBorders Line 1042  public class BasicBorders
1042    /**    /**
1043     * A border for drawing radio buttons in the Basic look and feel.     * A border for drawing radio buttons in the Basic look and feel.
1044     *     *
1045     * <p><img src="BasicBorders.RadioButtonBorder-1.png" width="300"     * <p><img src="doc-files/BasicBorders.RadioButtonBorder-1.png" width="300"
1046     * height="135" alt="[A screen shot of this border]" />     * height="135" alt="[A screen shot of this border]" />
1047     *     *
1048     * <p>Note about the screen shot: Normally, the     * <p>Note about the screen shot: Normally, the
# Line 1285  public class BasicBorders Line 1286  public class BasicBorders
1286     * in the middle of the JSplitPane has its own border class, of which     * in the middle of the JSplitPane has its own border class, of which
1287     * an instance can be obtained with {@link #getSplitPaneDividerBorder()}.     * an instance can be obtained with {@link #getSplitPaneDividerBorder()}.
1288     *     *
1289     * <p><img src="BasicBorders.SplitPaneBorder-1.png" width="520"     * <p><img src="doc-files/BasicBorders.SplitPaneBorder-1.png" width="520"
1290     * height="200" alt="[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" />     * height="200" alt="[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" />
1291     *     *
1292     * <p><img src="BasicBorders.SplitPaneBorder-2.png" width="520"     * <p><img src="doc-files/BasicBorders.SplitPaneBorder-2.png" width="520"
1293     * height="200" alt="[A screen shot for JSplitPane.VERTICAL_SPLIT]" />     * height="200" alt="[A screen shot for JSplitPane.VERTICAL_SPLIT]" />
1294     *     *
1295     * <p>In contrast to the other borders of the Basic look and feel,     * <p>In contrast to the other borders of the Basic look and feel,
# Line 1381  public class BasicBorders Line 1382  public class BasicBorders
1382      /**      /**
1383       * Paints the border around a <code>JSplitPane</code>.       * Paints the border around a <code>JSplitPane</code>.
1384       *       *
1385       * <p><img src="BasicBorders.SplitPaneBorder-1.png" width="520"       * <p><img src="doc-files/BasicBorders.SplitPaneBorder-1.png" width="520"
1386       * height="200" alt="[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" />       * height="200" alt="[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" />
1387       *       *
1388       * <p><img src="BasicBorders.SplitPaneBorder-2.png" width="520"       * <p><img src="doc-files/BasicBorders.SplitPaneBorder-2.png" width="520"
1389       * height="200" alt="[A screen shot for JSplitPane.VERTICAL_SPLIT]" />       * height="200" alt="[A screen shot for JSplitPane.VERTICAL_SPLIT]" />
1390       *       *
1391       * @param c the <code>JSplitPane</code> whose border is to be painted.       * @param c the <code>JSplitPane</code> whose border is to be painted.
# Line 1535  public class BasicBorders Line 1536  public class BasicBorders
1536    /**    /**
1537     * A border for the divider inside a JSplitPane.     * A border for the divider inside a JSplitPane.
1538     *     *
1539     * <p><img src="BasicBorders.SplitPaneDividerBorder-1.png"     * <p><img src="doc-files/BasicBorders.SplitPaneDividerBorder-1.png"
1540     * width="520" height="200" alt="[A screen shot of this border]" />     * width="520" height="200" alt="[A screen shot of this border]" />
1541     *     *
1542     * @author Sascha Brawer (brawer@dandelis.ch)     * @author Sascha Brawer (brawer@dandelis.ch)
# Line 1575  public class BasicBorders Line 1576  public class BasicBorders
1576      /**      /**
1577       * Paints the border around the divider of a <code>JSplitPane</code>.       * Paints the border around the divider of a <code>JSplitPane</code>.
1578       *       *
1579       * <p><img src="BasicBorders.SplitPaneDividerBorder-1.png" width="520"       * <p><img src="doc-files/BasicBorders.SplitPaneDividerBorder-1.png"
1580       * height="200" alt="[A picture that shows which pixels get painted       * width="520" height="200" alt="[A picture that shows which pixels
1581       * in what color]" />       * get painted in what color]" />
1582       *       *
1583       * @param c the <code>JSplitPane</code> whose divider&#x2019;s border       * @param c the <code>JSplitPane</code> whose divider&#x2019;s border
1584       *        is to be painted.       *        is to be painted.
# Line 1687  public class BasicBorders Line 1688  public class BasicBorders
1688    /**    /**
1689     * A border for toggle buttons in the Basic look and feel.     * A border for toggle buttons in the Basic look and feel.
1690     *     *
1691     * <p><img src="BasicBorders.ToggleButtonBorder-1.png" width="270"     * <p><img src="doc-files/BasicBorders.ToggleButtonBorder-1.png"
1692     * height="135" alt="[A screen shot of this border]" />     * width="270" height="135" alt="[A screen shot of this border]" />
1693     *     *
1694     * <p>The Sun implementation always seems to draw exactly     * <p>The Sun implementation always seems to draw exactly
1695     * the same border, irrespective of the state of the button.     * the same border, irrespective of the state of the button.

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26