com.metamatrix.toolbox.ui.widget.laf
Class TableHeaderButtonLookAndFeel

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ButtonUI
          extended by javax.swing.plaf.basic.BasicButtonUI
              extended by javax.swing.plaf.metal.MetalButtonUI
                  extended by com.metamatrix.toolbox.ui.widget.laf.ButtonLookAndFeel
                      extended by com.metamatrix.toolbox.ui.widget.laf.TableHeaderButtonLookAndFeel

public class TableHeaderButtonLookAndFeel
extends ButtonLookAndFeel

Sub-classes BasicButtonUI to provide multiple-line text.

Since:
2.0
Version:
2.0
Author:
John P. A. Verhaeg

Field Summary
static java.lang.String SORT_INDICATOR_COLOR
           
static java.lang.String SORT_INDICATOR_GAP
           
 
Fields inherited from class javax.swing.plaf.metal.MetalButtonUI
disabledTextColor, focusColor, selectColor
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
TableHeaderButtonLookAndFeel()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent component)
           
 java.awt.Dimension getMinimumSize(javax.swing.JComponent component)
           
 java.awt.Dimension getPreferredSize(javax.swing.JComponent component)
           
 void installDefaults(javax.swing.AbstractButton button)
           
 void paint(java.awt.Graphics canvas, javax.swing.JComponent component)
          Currently assumes icon is to the left of the text.
 
Methods inherited from class com.metamatrix.toolbox.ui.widget.laf.ButtonLookAndFeel
areDefaultsInstalled, paintButtonPressed, paintText, setIconTextGap, setPressedShift
 
Methods inherited from class javax.swing.plaf.metal.MetalButtonUI
createButtonListener, getDisabledTextColor, getFocusColor, getSelectColor, paintFocus, uninstallDefaults, update
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SORT_INDICATOR_COLOR

public static final java.lang.String SORT_INDICATOR_COLOR
See Also:
Constant Field Values

SORT_INDICATOR_GAP

public static final java.lang.String SORT_INDICATOR_GAP
See Also:
Constant Field Values
Constructor Detail

TableHeaderButtonLookAndFeel

public TableHeaderButtonLookAndFeel()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent component)
Since:
2.0

getMinimumSize

public java.awt.Dimension getMinimumSize(javax.swing.JComponent component)
Overrides:
getMinimumSize in class javax.swing.plaf.basic.BasicButtonUI
Since:
2.0

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent component)
Overrides:
getPreferredSize in class ButtonLookAndFeel
Since:
2.0

installDefaults

public void installDefaults(javax.swing.AbstractButton button)
Overrides:
installDefaults in class ButtonLookAndFeel
Since:
2.0

paint

public void paint(java.awt.Graphics canvas,
                  javax.swing.JComponent component)
Currently assumes icon is to the left of the text.

Overrides:
paint in class ButtonLookAndFeel
Since:
2.0


Copyright © 2009. All Rights Reserved.