javax.swing.plaf.metal

Class MetalBorders.Flush3DBorder

public static class MetalBorders.Flush3DBorder extends AbstractBorder implements UIResource

A simple 3D border.
Constructor Summary
Flush3DBorder()
Creates a new border instance.
Method Summary
InsetsgetBorderInsets(Component c)
Returns the border insets.
InsetsgetBorderInsets(Component c, Insets newInsets)
Returns the border insets.
voidpaintBorder(Component c, Graphics g, int x, int y, int w, int h)
Paints the border for the specified component.

Constructor Detail

Flush3DBorder

public Flush3DBorder()
Creates a new border instance.

Method Detail

getBorderInsets

public Insets getBorderInsets(Component c)
Returns the border insets.

Parameters: c the component (ignored).

Returns: The border insets.

getBorderInsets

public Insets getBorderInsets(Component c, Insets newInsets)
Returns the border insets.

Parameters: c the component (ignored). newInsets an existing insets instance, that will be populated with the border insets and returned as the result (null not permitted).

Returns: The newInsets reference.

paintBorder

public void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
Paints the border for the specified component.

Parameters: c the component (ignored). g the graphics device. x the x-coordinate. y the y-coordinate. w the width. h the height.