
Hierar chy: Object→ AbstractBorder(Border, Serializable)→ LineBorder
Subc lasses: javax.swing .plaf.BorderUIResource.LineBorderUIResource
MatteBorder Ja va 1.2
javax.swing .border serializable
This class uses a solid color or tiled icon to paint a border around a Swing component.
The sizes of each edge of the border can be independently specified. If an icon is spec-
ified and border sizes are not, the top and bottom insets of the border equal the icon
height, and the left and right insets equal the icon width. See also the createMatteBorder()
method of javax.swing .BorderFactor y.
public class MatteBorder extends EmptyBorder {
// Public Constructors
public MatteBorder(Icon tileIcon);
public MatteBorder(int top, int left, int bottom, int right, Icon tileIcon);
public MatteBorder(int top, int left, int bottom, int right, java.awt.Color color);
// Public Methods Overriding EmptyBorder
public java.awt.Insets getBorderInsets(Component c);
public java.awt.Insets getBorderInsets(Component c, java.awt.Insets insets);
public boolean isBorderOpaque();
public void paintBorder(Component c, java.awt.Graphics g, int x, int y, int width, int height);
// Protected Instance Fields
protected java.awt.Color color;
protected Icon tileIcon;
}
Hierar chy: Object→ AbstractBorder(Border, Serializable)→ EmptyBorder(Serializable) → MatteBorder
Subc lasses: javax.swing .plaf.BorderUIResource.MatteBorderUIResource
Retur ned By: