javax.swing.plaf.metal
Class MetalBorders.TableHeaderBorder

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

public static class MetalBorders.TableHeaderBorder
extends AbstractBorder

A border for table header cells.

Since:
1.3
See Also:
Serialized Form

Field Summary
protected  Insets editorBorderInsets
          The insets of this border.
 
Constructor Summary
MetalBorders.TableHeaderBorder()
          Creates a new instance of TableHeaderBorder.
 
Method Summary
 Insets getBorderInsets(Component c)
          Return the insets of this border.
 void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
          Paints the border.
 
Methods inherited from class javax.swing.border.AbstractBorder
getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editorBorderInsets

protected Insets editorBorderInsets
The insets of this border.

Constructor Detail

MetalBorders.TableHeaderBorder

public MetalBorders.TableHeaderBorder()
Creates a new instance of TableHeaderBorder.

Method Detail

getBorderInsets

public Insets getBorderInsets(Component c)
Return the insets of this border.

Specified by:
getBorderInsets in interface Border
Overrides:
getBorderInsets in class AbstractBorder
Parameters:
c - the component that the border applies to (ignored here, subclasses may use it).
Returns:
the insets of this border
See Also:
AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)

paintBorder

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

Specified by:
paintBorder in interface Border
Overrides:
paintBorder in class AbstractBorder
Parameters:
c - the component for which to paint the border
g - the graphics context to use
x - the x cooridinate of the border rectangle
y - the y cooridinate of the border rectangle
w - the width of the border rectangle
h - the height of the border rectangle