com.jtattoo.plaf
Class BaseTableHeaderUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TableHeaderUI
          extended by javax.swing.plaf.basic.BasicTableHeaderUI
              extended by com.jtattoo.plaf.BaseTableHeaderUI

public class BaseTableHeaderUI
extends BasicTableHeaderUI

Author:
Michael Hagen

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
BasicTableHeaderUI.MouseInputHandler
 
Field Summary
protected  MouseAdapter myMouseAdapter
           
protected  MouseMotionAdapter myMouseMotionAdapter
           
protected  int rolloverCol
           
 
Fields inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
header, mouseInputListener, rendererPane
 
Constructor Summary
BaseTableHeaderUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
           
protected  Component getHeaderRenderer(int col)
           
 Dimension getPreferredSize(JComponent c)
          Return the preferred size of the header.
 void installListeners()
           
 void paint(Graphics g, JComponent c)
           
protected  void paintBackground(Graphics g, Rectangle cellRect, int col)
           
protected  void paintCell(Graphics g, Rectangle cellRect, int col)
           
 void uninstallListeners()
           
 
Methods inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
createMouseInputListener, getBaseline, getMaximumSize, getMinimumSize, getRolloverColumn, installDefaults, installKeyboardActions, installUI, rolloverColumnUpdated, uninstallDefaults, uninstallKeyboardActions, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehavior, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myMouseAdapter

protected MouseAdapter myMouseAdapter

myMouseMotionAdapter

protected MouseMotionAdapter myMouseMotionAdapter

rolloverCol

protected int rolloverCol
Constructor Detail

BaseTableHeaderUI

public BaseTableHeaderUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

installListeners

public void installListeners()
Overrides:
installListeners in class BasicTableHeaderUI

uninstallListeners

public void uninstallListeners()
Overrides:
uninstallListeners in class BasicTableHeaderUI

getPreferredSize

public Dimension getPreferredSize(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 BasicTableHeaderUI

paint

public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class BasicTableHeaderUI

getHeaderRenderer

protected Component getHeaderRenderer(int col)

paintCell

protected void paintCell(Graphics g,
                         Rectangle cellRect,
                         int col)

paintBackground

protected void paintBackground(Graphics g,
                               Rectangle cellRect,
                               int col)


Copyright © 2011. All Rights Reserved.