Quaqua 5.4.1 2009-07-14

ch.randelshofer.quaqua
Class QuaquaTableHeaderUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TableHeaderUI
          extended by javax.swing.plaf.basic.BasicTableHeaderUI
              extended by ch.randelshofer.quaqua.QuaquaTableHeaderUI

public class QuaquaTableHeaderUI
extends javax.swing.plaf.basic.BasicTableHeaderUI

QuaquaTableHeaderUI.

Version:
1.2 2007-02-08 Don't do any magic with the size of the table header cells, so that the ColumnModel has full control over the layout.
1.1 2006-04-08 Take insets of table header border into account when determining the height of the table header.
1.0 June 22, 2004 Created.
Author:
Werner Randelshofer

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
javax.swing.plaf.basic.BasicTableHeaderUI.MouseInputHandler
 
Field Summary
protected  javax.swing.event.TableColumnModelListener columnModelListener
           
 
Fields inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
header, mouseInputListener, rendererPane
 
Constructor Summary
QuaquaTableHeaderUI()
          Creates a new instance.
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
          Return the preferred size of the header.
 void installDefaults()
           
protected  void installListeners()
          Attaches listeners to the JTableHeader.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
 void paintOLD(java.awt.Graphics g, javax.swing.JComponent c)
           
protected  void uninstallListeners()
           
 
Methods inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
createMouseInputListener, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, uninstallDefaults, uninstallKeyboardActions, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnModelListener

protected javax.swing.event.TableColumnModelListener columnModelListener
Constructor Detail

QuaquaTableHeaderUI

public QuaquaTableHeaderUI()
Creates a new instance.

Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installDefaults

public void installDefaults()
Overrides:
installDefaults in class javax.swing.plaf.basic.BasicTableHeaderUI

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.basic.BasicTableHeaderUI

paintOLD

public void paintOLD(java.awt.Graphics g,
                     javax.swing.JComponent c)

installListeners

protected void installListeners()
Attaches listeners to the JTableHeader.

Overrides:
installListeners in class javax.swing.plaf.basic.BasicTableHeaderUI

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class javax.swing.plaf.basic.BasicTableHeaderUI

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Return the preferred size of the header. The preferred height is the maximum of the preferred heights of all of the components provided by the header renderers. The preferred width is the sum of the preferred widths of each column (plus inter-cell spacing).

Overrides:
getPreferredSize in class javax.swing.plaf.basic.BasicTableHeaderUI

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.