javax.swing.plaf.metal
Class MetalBorders.TableHeaderBorder
java.lang.Object
javax.swing.border.AbstractBorder
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
editorBorderInsets
protected Insets editorBorderInsets
- The insets of this border.
MetalBorders.TableHeaderBorder
public MetalBorders.TableHeaderBorder()
- Creates a new instance of
TableHeaderBorder
.
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 borderg
- the graphics context to usex
- the x cooridinate of the border rectangley
- the y cooridinate of the border rectanglew
- the width of the border rectangleh
- the height of the border rectangle