com.jstatcom.table
Class BorderTableBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by com.jstatcom.table.BorderTableBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border

public class BorderTableBorder
extends javax.swing.border.AbstractBorder

Most inner border for BorderTables. A BorderTable always has an instance of this border set. Event when setting a new border it effectively creates a combined border with an instance of this border as the inner border.

Author:
Alexander Benkwitz
See Also:
Serialized Form

Constructor Summary
BorderTableBorder()
          Creates a new BorderTableBorder.
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Overloads method from superclass.
 java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
          Overloads method from superclass.
 boolean isBorderOpaque()
          Never changes, returns false.
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
          Overloads superclass method to paint this border.
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BorderTableBorder

public BorderTableBorder()
Creates a new BorderTableBorder.

Method Detail

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Overloads method from superclass. Gets the insets for this border.

Specified by:
getBorderInsets in interface javax.swing.border.Border
Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder
Parameters:
c - ignored, can be null
Returns:
insets

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c,
                                       java.awt.Insets insets)
Overloads method from superclass. Reinitializes the insets with this Border's current insets.

Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder
Parameters:
c - ignored, can be null
insets - parameter to be reinitialized with border insets
Returns:
the insets parameter after it was reinitialized

isBorderOpaque

public boolean isBorderOpaque()
Never changes, returns false.

Specified by:
isBorderOpaque in interface javax.swing.border.Border
Overrides:
isBorderOpaque in class javax.swing.border.AbstractBorder
Returns:
false

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Overloads superclass method to paint this border.

Specified by:
paintBorder in interface javax.swing.border.Border
Overrides:
paintBorder in class javax.swing.border.AbstractBorder