277 |
* constructed by this method will automatically reflect a change |
* constructed by this method will automatically reflect a change |
278 |
* to the component’s background color. |
* to the component’s background color. |
279 |
* |
* |
280 |
* <p><img src="../border/BevelBorder-1.png" width="500" height="150" |
* <p><img src="../border/doc-files/BevelBorder-1.png" |
281 |
|
* width="500" height="150" |
282 |
* alt="[An illustration showing raised and lowered BevelBorders]" /> |
* alt="[An illustration showing raised and lowered BevelBorders]" /> |
283 |
* |
* |
284 |
* @param bevelType the desired appearance of the border. The value |
* @param bevelType the desired appearance of the border. The value |
298 |
* Constructs a BevelBorderUIResource given its appearance type |
* Constructs a BevelBorderUIResource given its appearance type |
299 |
* and two colors for its highlight and shadow. |
* and two colors for its highlight and shadow. |
300 |
* |
* |
301 |
* <p><img src="../border/BevelBorder-2.png" width="500" height="150" |
* <p><img src="../border/doc-files/BevelBorder-2.png" width="500" |
302 |
* alt="[An illustration showing BevelBorders that were constructed |
* height="150" alt="[An illustration showing BevelBorders that were |
303 |
* with this method]" /> |
* constructed with this method]" /> |
304 |
* |
* |
305 |
* @param bevelType the desired appearance of the border. The value |
* @param bevelType the desired appearance of the border. The value |
306 |
* must be either {@link javax.swing.border.BevelBorder#RAISED} |
* must be either {@link javax.swing.border.BevelBorder#RAISED} |
338 |
* Constructs a BevelBorderUIResource given its appearance type |
* Constructs a BevelBorderUIResource given its appearance type |
339 |
* and all its colors. |
* and all its colors. |
340 |
* |
* |
341 |
* <p><img src="../border/BevelBorder-3.png" width="500" height="150" |
* <p><img src="../border/doc-files/BevelBorder-3.png" width="500" |
342 |
* alt="[An illustration showing BevelBorders that were constructed |
* height="150" alt="[An illustration showing BevelBorders that |
343 |
* with this method]" /> |
* were constructed with this method]" /> |
344 |
* |
* |
345 |
* @param bevelType the desired appearance of the border. The value |
* @param bevelType the desired appearance of the border. The value |
346 |
* must be either {@link javax.swing.border.BevelBorder#RAISED} |
* must be either {@link javax.swing.border.BevelBorder#RAISED} |
430 |
* always install borders that implement <code>UIResource</code>, |
* always install borders that implement <code>UIResource</code>, |
431 |
* such as the borders provided by this class. |
* such as the borders provided by this class. |
432 |
* |
* |
433 |
* <p><img src="../border/EmptyBorder-1.png" width="290" height="200" |
* <p><img src="../border/doc-files/EmptyBorder-1.png" |
434 |
|
* width="290" height="200" |
435 |
* alt="[An illustration of EmptyBorder]" /> |
* alt="[An illustration of EmptyBorder]" /> |
436 |
* |
* |
437 |
* @author Brian Jones (cbj@gnu.org) |
* @author Brian Jones (cbj@gnu.org) |
485 |
* always install borders that implement <code>UIResource</code>, |
* always install borders that implement <code>UIResource</code>, |
486 |
* such as the borders provided by this class. |
* such as the borders provided by this class. |
487 |
* |
* |
488 |
* <p><img src="../border/EtchedBorder-1.png" width="500" height="200" |
* <p><img src="../border/doc-files/EtchedBorder-1.png" width="500" |
489 |
* alt="[An illustration of the two EtchedBorder variants]" /> |
* height="200" alt="[An illustration of the two EtchedBorder |
490 |
|
* variants]" /> |
491 |
* |
* |
492 |
* @author Brian Jones (cbj@gnu.org) |
* @author Brian Jones (cbj@gnu.org) |
493 |
* @author Sascha Brawer (brawer@dandelis.ch) |
* @author Sascha Brawer (brawer@dandelis.ch) |
512 |
* appearance. The colors will be derived from the background |
* appearance. The colors will be derived from the background |
513 |
* color of the enclosed Component when the border gets painted. |
* color of the enclosed Component when the border gets painted. |
514 |
* |
* |
515 |
* <p><img src="../border/EtchedBorder-1.png" width="500" height="200" |
* <p><img src="../border/doc-files/EtchedBorder-1.png" |
516 |
* alt="[An illustration of the two EtchedBorder variants]" /> |
* width="500" height="200" alt="[An illustration of the two |
517 |
|
* EtchedBorder variants]" /> |
518 |
* |
* |
519 |
* @param etchType the desired appearance of the border. The value |
* @param etchType the desired appearance of the border. The value |
520 |
* must be either {@link javax.swing.border.EtchedBorder#RAISED} |
* must be either {@link javax.swing.border.EtchedBorder#RAISED} |
553 |
* appearance, explicitly selecting the colors that will be used |
* appearance, explicitly selecting the colors that will be used |
554 |
* for highlight and shadow. |
* for highlight and shadow. |
555 |
* |
* |
556 |
* <p><img src="../border/EtchedBorder-2.png" width="500" |
* <p><img src="../border/doc-files/EtchedBorder-2.png" width="500" |
557 |
* height="200" alt="[An illustration that shows which pixels get |
* height="200" alt="[An illustration that shows which pixels get |
558 |
* painted in what color]" /> |
* painted in what color]" /> |
559 |
* |
* |
587 |
* always install borders that implement <code>UIResource</code>, |
* always install borders that implement <code>UIResource</code>, |
588 |
* such as the borders provided by this class. |
* such as the borders provided by this class. |
589 |
* |
* |
590 |
* <p><img src="../border/LineBorder-1.png" width="500" height="200" |
* <p><img src="../border/doc-files/LineBorder-1.png" width="500" |
591 |
* alt="[An illustration of two LineBorders] /> |
* height="200" alt="[An illustration of two LineBorders] /> |
592 |
* |
* |
593 |
* @author Brian Jones (cbj@gnu.org) |
* @author Brian Jones (cbj@gnu.org) |
594 |
* @author Sascha Brawer (brawer@dandelis.ch) |
* @author Sascha Brawer (brawer@dandelis.ch) |
642 |
* always install borders that implement <code>UIResource</code>, |
* always install borders that implement <code>UIResource</code>, |
643 |
* such as the borders provided by this class. |
* such as the borders provided by this class. |
644 |
* |
* |
645 |
* <p><img src="../border/MatteBorder-1.png" width="500" height="150" |
* <p><img src="../border/doc-files/MatteBorder-1.png" width="500" |
646 |
* alt="[An illustration of two MatteBorders] /> |
* height="150" alt="[An illustration of two MatteBorders] /> |
647 |
* |
* |
648 |
* @author Brian Jones (cbj@gnu.org) |
* @author Brian Jones (cbj@gnu.org) |
649 |
* @author Sascha Brawer (brawer@dandelis.ch) |
* @author Sascha Brawer (brawer@dandelis.ch) |
656 |
* Constructs a MatteBorderUIResource given the width on each side |
* Constructs a MatteBorderUIResource given the width on each side |
657 |
* and a fill color. |
* and a fill color. |
658 |
* |
* |
659 |
* <p><img src="../border/MatteBorder-2.png" width="500" height="150" |
* <p><img src="../border/doc-files/MatteBorder-2.png" width="500" |
660 |
* alt="[A picture of a MatteBorder made by this constructor]" /> |
* height="150" alt="[A picture of a MatteBorder made by this |
661 |
|
* constructor]" /> |
662 |
* |
* |
663 |
* @param top the width of the border at its top edge. |
* @param top the width of the border at its top edge. |
664 |
* @param left the width of the border at its left edge. |
* @param left the width of the border at its left edge. |
678 |
* Constructs a MatteBorderUIResource given the width on each side |
* Constructs a MatteBorderUIResource given the width on each side |
679 |
* and an icon for tiling the border area. |
* and an icon for tiling the border area. |
680 |
* |
* |
681 |
* <p><img src="../border/MatteBorder-4.png" width="500" |
* <p><img src="../border/doc-files/MatteBorder-4.png" width="500" |
682 |
* height="150" alt="[A picture of a MatteBorder made by this |
* height="150" alt="[A picture of a MatteBorder made by this |
683 |
* constructor]" /> |
* constructor]" /> |
684 |
* |
* |
702 |
* the left and right edge, the icon height for the top and bottom |
* the left and right edge, the icon height for the top and bottom |
703 |
* edge. |
* edge. |
704 |
* |
* |
705 |
* <p><img src="../border/MatteBorder-6.png" width="500" height="150" |
* <p><img src="../border/doc-files/MatteBorder-6.png" width="500" |
706 |
* alt="[A picture of a MatteBorder made by this constructor]" /> |
* height="150" alt="[A picture of a MatteBorder made by this |
707 |
|
* constructor]" /> |
708 |
* |
* |
709 |
* @param tileIcon an icon for tiling the border area. |
* @param tileIcon an icon for tiling the border area. |
710 |
*/ |
*/ |
711 |
public MatteBorderUIResource(Icon tileIcon) |
public MatteBorderUIResource(Icon tileIcon) |
712 |
{ |
{ |