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