javax.swing.plaf.metal
Class MetalBorders.InternalFrameBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.plaf.metal.MetalBorders.InternalFrameBorder
All Implemented Interfaces:
Serializable, Border, UIResource
Enclosing class:
MetalBorders

public static class MetalBorders.InternalFrameBorder
extends AbstractBorder
implements UIResource

A border used for the JInternalFrame component.

See Also:
Serialized Form

Constructor Summary
MetalBorders.InternalFrameBorder()
          Creates a new border instance.
 
Method Summary
 Insets getBorderInsets(Component c)
          Returns the border insets.
 Insets getBorderInsets(Component c, Insets newInsets)
          Returns the border insets.
 void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
          Paints the border for the specified component.
 
Methods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetalBorders.InternalFrameBorder

public MetalBorders.InternalFrameBorder()
Creates a new border instance.

Method Detail

getBorderInsets

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

Specified by:
getBorderInsets in interface Border
Overrides:
getBorderInsets in class AbstractBorder
Parameters:
c - the component (ignored).
Returns:
The border insets.
See Also:
AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)

getBorderInsets

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

Overrides:
getBorderInsets in class AbstractBorder
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.
See Also:
AbstractBorder.getBorderInsets(Component)

paintBorder

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

Specified by:
paintBorder in interface Border
Overrides:
paintBorder in class AbstractBorder
Parameters:
c - the component.
g - the graphics device.
x - the x-coordinate.
y - the y-coordinate.
w - the width.
h - the height.