/[classpath]/classpath/javax/swing/border/MatteBorder.java
ViewVC logotype

Diff of /classpath/javax/swing/border/MatteBorder.java

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

revision 1.3 by mark, Tue Apr 30 21:37:27 2002 UTC revision 1.4 by mkoch, Sat Jun 7 18:38:20 2003 UTC
# Line 35  this exception to your version of the li Line 35  this exception to your version of the li
35  obligated to do so.  If you do not wish to do so, delete this  obligated to do so.  If you do not wish to do so, delete this
36  exception statement from your version. */  exception statement from your version. */
37    
38    
39  package javax.swing.border;  package javax.swing.border;
40    
41  import java.awt.*;  import java.awt.Color;
42    import java.awt.Component;
43    import java.awt.Graphics;
44    import java.awt.Insets;
45    import javax.swing.Icon;
46    
47  public class MatteBorder extends EmptyBorder  public class MatteBorder extends EmptyBorder
48  {  {
49      Color c;    protected Color color;
50      protected Icon tileIcon;
     public MatteBorder()  
     {  
     }  
51    
52      public MatteBorder (Icon tileIcon)
53      {
54        // FIXME: implement this
55        this (null, tileIcon);
56      }
57    
58      public MatteBorder (Insets borderInsets, Color color)
59      {
60        this (borderInsets.top, borderInsets.left, borderInsets.bottom,
61              borderInsets.right, color);
62      }
63    
64      public MatteBorder (Insets borderInsets, Icon tileIcon)
65      {
66        this (borderInsets.top, borderInsets.left, borderInsets.bottom,
67              borderInsets.right, tileIcon);
68      }
69    
70      public MatteBorder (int top, int left, int bottom, int right, Icon tileIcon)
71      {
72        super (top, left, bottom, right);
73        this.tileIcon = tileIcon;
74      }
75    
76      public MatteBorder (int top, int left, int bottom, int right, Color color)
77      {
78        super (top, left, bottom, right);
79        this.color = color;
80      }
81            
     public MatteBorder(int top,  
                 int left,  
                 int bottom,  
                 int right,  
                 Color color)  
     {  
         super(top, left, bottom, right);  
         this.c = color;  
     }  
   
82      public boolean isBorderOpaque()      public boolean isBorderOpaque()
83      {      {
84          return false;          return false;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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