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

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

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

revision 1.2 by mark, Tue Apr 30 21:37:27 2002 UTC revision 1.3 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    
45  public class LineBorder extends EmptyBorder  public class LineBorder extends AbstractBorder
46  {  {
47      Color c;    protected Color lineColor;
48      protected boolean roundedCorners;
49      public LineBorder()    protected int thickness;
50      {  
51      }    public LineBorder (Color color)
52      {
53        this (color, 1);
54      }
55    
56      public LineBorder (Color color, int thickness)
57      {
58        this (color, thickness, false); // FIXME: check roundedCorners argument
59      }
60    
61      /**
62       * @since 1.3
63       */
64      public LineBorder (Color color, int thickness, boolean roundedCorners)
65      {
66        this.lineColor = color;
67        this.thickness = thickness;
68        this.roundedCorners = roundedCorners;
69      }
70            
     public LineBorder(int top,  
                 int left,  
                 int bottom,  
                 int right,  
                 Color color)  
     {  
         super(top, left, bottom, right);  
         this.c = color;  
     }  
   
71      public boolean isBorderOpaque()      public boolean isBorderOpaque()
72      {      {
73          return false;          return false;

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

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