uic.themes
Class UICToolBarButtonUI
java.lang.Object
  
javax.swing.plaf.ComponentUI
      
javax.swing.plaf.ButtonUI
          
javax.swing.plaf.basic.BasicButtonUI
              
javax.swing.plaf.metal.MetalButtonUI
                  
uic.themes.UICToolBarButtonUI
- Direct Known Subclasses: 
 - UICButtonUI
 
public class UICToolBarButtonUI
- extends MetalButtonUI
 
Looks like the UICButton except for the gradient.
 UI for the ToolBarButton
- Since:
 
  - 2.0
 
 
 
 
 
 
 
| Methods inherited from class javax.swing.plaf.basic.BasicButtonUI | 
clearTextShiftOffset, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
UICToolBarButtonUI
public UICToolBarButtonUI()
createUI
public static ComponentUI createUI(JComponent c)
 
paint
public void paint(Graphics g,
                  JComponent c)
- Overrides the default paint
 Does not paint the original focus
 and calls paintFocus implemented here
- Overrides:
 paint in class BasicButtonUI
 
 
 
paintButton
protected void paintButton(Graphics g,
                           AbstractButton button)
 
paintButtonPressed
protected void paintButtonPressed(Graphics g,
                                  AbstractButton button)
- Overrides:
 paintButtonPressed in class MetalButtonUI
 
 
paintIcon
protected void paintIcon(Graphics g,
                         JComponent c,
                         Rectangle iconRect)
- Paint the icon
 Override to implement disabled icon even if it is not an instance of ImageIcon
- Overrides:
 paintIcon in class BasicButtonUI
 
 
 
paintFocus
protected void paintFocus(Graphics g,
                          AbstractButton button)
 
installDefaults
public void installDefaults(AbstractButton b)
- Since our TableSorterHeader extends JButton we load the tableHeader stuff here.
- Overrides:
 installDefaults in class MetalButtonUI
 
 
 
getDisabledTextColor
protected Color getDisabledTextColor()
- Overrides:
 getDisabledTextColor in class MetalButtonUI
 
 
Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence