net.sourceforge.mlf.metouia.borders
Class MetouiaTableHeaderBorder

java.lang.Object
  extended byjavax.swing.border.AbstractBorder
      extended bynet.sourceforge.mlf.metouia.borders.MetouiaTableHeaderBorder
All Implemented Interfaces:
javax.swing.border.Border, java.io.Serializable

public class MetouiaTableHeaderBorder
extends javax.swing.border.AbstractBorder

This class represents the border of a table header.

See Also:
Serialized Form

Field Summary
protected  java.awt.Insets insets
          The border insets.
 
Constructor Summary
MetouiaTableHeaderBorder()
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Gets the border insets for a given component.
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)
          Draws a simple 3d border for the given component.
 
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

insets

protected java.awt.Insets insets
The border insets.

Constructor Detail

MetouiaTableHeaderBorder

public MetouiaTableHeaderBorder()
Method Detail

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int w,
                        int h)
Draws a simple 3d border for the given component.

Parameters:
c - The component to draw its border.
g - The graphics context.
x - The x coordinate of the top left corner.
y - The y coordinate of the top left corner.
w - The width.
h - The height.

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Gets the border insets for a given component.

Parameters:
c - The component to get its border insets.
Returns:
Always returns the same insets as defined in insets.