unbbayes.gui.table
Class GroupableTableHeaderUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TableHeaderUI
          extended by javax.swing.plaf.basic.BasicTableHeaderUI
              extended by unbbayes.gui.table.GroupableTableHeaderUI

public class GroupableTableHeaderUI
extends BasicTableHeaderUI

This class paints groupable header cells. These can be a combination of normal header cells and groupable cells.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
BasicTableHeaderUI.MouseInputHandler
 
Field Summary
protected  Vector paintedGroups
          Contains a list of ColumnGroups that have already been painted in the current paint request.
 
Fields inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
header, mouseInputListener, rendererPane
 
Constructor Summary
GroupableTableHeaderUI()
           
 
Method Summary
 Dimension getPreferredSize(JComponent c)
          Invokes the getPreferredSize method on each UI handled by this object.
 void paint(Graphics g, JComponent c)
          Paint a representation of the table header.
 
Methods inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
createMouseInputListener, createUI, getBaseline, getMaximumSize, getMinimumSize, getRolloverColumn, installDefaults, installKeyboardActions, installListeners, installUI, rolloverColumnUpdated, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, 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

paintedGroups

protected Vector paintedGroups
Contains a list of ColumnGroups that have already been painted in the current paint request.

Constructor Detail

GroupableTableHeaderUI

public GroupableTableHeaderUI()
Method Detail

paint

public void paint(Graphics g,
                  JComponent c)
Paint a representation of the table header.

Overrides:
paint in class BasicTableHeaderUI
Parameters:
g - the Graphics context in which to paint
c - the component being painted; this argument is often ignored

getPreferredSize

public Dimension getPreferredSize(JComponent c)
Invokes the getPreferredSize method on each UI handled by this object.

Overrides:
getPreferredSize in class BasicTableHeaderUI
Parameters:
c - the component whose preferred size is being queried; this argument is ignored.
Returns:
the dimension of the whole header


Copyright © 2001-2010 University of Brasilia - UnB. All Rights Reserved.