javax.swing.plaf.metal

Class MetalBorders.PaletteBorder

Enclosing Class:
MetalBorders
Implemented Interfaces:
Border, Serializable, UIResource

public static class MetalBorders.PaletteBorder
extends AbstractBorder
implements UIResource

Border for a Palette.
Since:
1.3
See Also:
Serialized Form

Method Summary

Insets
getBorderInsets(Component c)
Insets
getBorderInsets(Component c, Insets newInsets)
void
paintBorder(Component c, Graphics g, int x, int y, int w, int h)

Methods inherited from class javax.swing.border.AbstractBorder

getBorderInsets, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque, paintBorder

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

getBorderInsets

public Insets getBorderInsets(Component c)
Specified by:
getBorderInsets in interface Border
Overrides:
getBorderInsets in interface AbstractBorder

getBorderInsets

public Insets getBorderInsets(Component c,
                              Insets newInsets)
Overrides:
getBorderInsets in interface AbstractBorder

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int w,
                        int h)
Specified by:
paintBorder in interface Border
Overrides:
paintBorder in interface AbstractBorder