/[classpath]/classpath/javax/swing/plaf/BorderUIResource.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/BorderUIResource.java

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

revision 1.13 by brawer, Tue Jun 17 09:33:36 2003 UTC revision 1.14 by brawer, Tue Jun 17 09:54:54 2003 UTC
# Line 575  public class BorderUIResource Line 575  public class BorderUIResource
575        
576        
577    /**    /**
578     * An {@link javax.swing.border.LineBorder} that also implements the     * A {@link javax.swing.border.LineBorder} that also implements the
579     * {@link UIResource} marker interface.  This is useful for     * {@link UIResource} marker interface.  This is useful for
580     * implementing pluggable look-and-feels: When switching the current     * implementing pluggable look-and-feels: When switching the current
581     * LookAndFeel, only those borders are replaced that are marked as     * LookAndFeel, only those borders are replaced that are marked as
# Line 630  public class BorderUIResource Line 630  public class BorderUIResource
630       */       */
631    }    }
632    
633    
634      /**
635       * A {@link javax.swing.border.MatteBorder} that also implements the
636       * {@link UIResource} marker interface.  This is useful for
637       * implementing pluggable look-and-feels: When switching the current
638       * LookAndFeel, only those borders are replaced that are marked as
639       * {@link UIResource}.  For this reason, a look-and-feel should
640       * always install borders that implement <code>UIResource</code>,
641       * such as the borders provided by this class.
642       *
643       * <p><img src="../border/MatteBorder-1.png" width="500" height="150"
644       * alt="[An illustration of two MatteBorders] />
645       *
646       * @author Brian Jones (cbj@gnu.org)
647       * @author Sascha Brawer (brawer@dandelis.ch)
648       */
649      public static class MatteBorderUIResource
650        extends MatteBorder
651        implements UIResource, Serializable
652      {
653        /**
654         * Constructs a MatteBorderUIResource given the width on each side
655         * and a fill color.
656         *
657         * <p><img src="../border/MatteBorder-2.png" width="500" height="150"
658         * alt="[A picture of a MatteBorder made by this constructor]" />
659         *
660         * @param top the width of the border at its top edge.
661         * @param left the width of the border at its left edge.
662         * @param bottom the width of the border at its bottom edge.
663         * @param right the width of the border at its right edge.
664         * @param matteColor the color for filling the border.
665         */
666        public MatteBorderUIResource(int top, int left,
667                                     int bottom, int right,
668                                     Color color)
669        {
670          super(top, left, bottom, right, color);
671        }
672        
673        
674      /**      /**
675       * @serial */       * Constructs a MatteBorderUIResource given the width on each side
676      public static class MatteBorderUIResource       * and an icon for tiling the border area.
677          extends MatteBorder       *
678          implements UIResource, Serializable       * <p><img src="../border/MatteBorder-4.png" width="500"
679         * height="150" alt="[A picture of a MatteBorder made by this
680         * constructor]" />
681         *
682         * @param top the width of the border at its top edge.
683         * @param left the width of the border at its left edge.
684         * @param bottom the width of the border at its bottom edge.
685         * @param right the width of the border at its right edge.
686         * @param tileIcon an icon for tiling the border area.
687         */
688        public MatteBorderUIResource(int top, int left,
689                                     int bottom, int right,
690                                     Icon tileIcon)
691      {      {
692          public MatteBorderUIResource(int top, int left, int bottom,        super(top, left, bottom, right, tileIcon);
                                      int right, Color color)  
         {  
           super (new Insets (top, left, bottom, right), color);  
         }  
         public MatteBorderUIResource(int top, int left, int bottom,  
                                      int right, Icon tileIcon)  
         {  
           super (new Insets (top, left, bottom, right), tileIcon);  
   
         }  
         public MatteBorderUIResource(Icon tileIcon)  
         {  
           super (tileIcon);  
         }  
693      }      }
694        
695        
696        /**
697         * Constructs a MatteBorderUIResource given an icon for tiling the
698         * border area. The icon width is used for the border insets at
699         * the left and right edge, the icon height for the top and bottom
700         * edge.
701         *
702         * <p><img src="../border/MatteBorder-6.png" width="500" height="150"
703         * alt="[A picture of a MatteBorder made by this constructor]" />
704         *
705         * @param tileIcon an icon for tiling the border area.
706         */
707        public MatteBorderUIResource(Icon tileIcon)
708        {
709          super(tileIcon);
710        }
711      }
712    
713      /**      /**
714       * @serial       * @serial

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

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