com.metamatrix.toolbox.ui.widget.laf
Class TableHeaderButtonLookAndFeel
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.metal.MetalButtonUI
com.metamatrix.toolbox.ui.widget.laf.ButtonLookAndFeel
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
Fields inherited from class javax.swing.plaf.metal.MetalButtonUI |
disabledTextColor, focusColor, selectColor |
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI |
defaultTextIconGap, defaultTextShiftOffset |
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 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 |
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
TableHeaderButtonLookAndFeel
public TableHeaderButtonLookAndFeel()
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.