44 |
|
|
45 |
|
|
46 |
/** |
/** |
47 |
* An interface for decorative or spacing borders around a Component. |
* An public interface for decorative or spacing borders around a Component. |
48 |
* |
* |
49 |
* <p>To reduce memory consumption, several Components may share a |
* <p>To reduce memory consumption, several Components may share a |
50 |
* single Border instance. {@link javax.swing.BorderFactory} is a |
* single Border instance. {@link javax.swing.BorderFactory} is a |
77 |
* @param width the width of the available area for painting the border. |
* @param width the width of the available area for painting the border. |
78 |
* @param height the height of the available area for painting the border. |
* @param height the height of the available area for painting the border. |
79 |
*/ |
*/ |
80 |
public void paintBorder(Component c, Graphics g, |
void paintBorder(Component c, Graphics g, |
81 |
int x, int y, int width, int height); |
int x, int y, int width, int height); |
82 |
|
|
83 |
|
|
90 |
* <code>top</code> and <code>bottom</code> fields indicate the |
* <code>top</code> and <code>bottom</code> fields indicate the |
91 |
* width of the border at the respective edge. |
* width of the border at the respective edge. |
92 |
*/ |
*/ |
93 |
public Insets getBorderInsets(Component c); |
Insets getBorderInsets(Component c); |
94 |
|
|
95 |
|
|
96 |
/** |
/** |
101 |
* <code>false</code> if some pixels of the background |
* <code>false</code> if some pixels of the background |
102 |
* can shine through the border. |
* can shine through the border. |
103 |
*/ |
*/ |
104 |
public boolean isBorderOpaque(); |
boolean isBorderOpaque(); |
105 |
} |
} |