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; |