uic.themes
Class UICToolBarButtonUI

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 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

Field Summary
 
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
UICToolBarButtonUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
           
protected  Color getDisabledTextColor()
           
 void installDefaults(AbstractButton b)
          Since our TableSorterHeader extends JButton we load the tableHeader stuff here.
 void paint(Graphics g, JComponent c)
          Overrides the default paint Does not paint the original focus and calls paintFocus implemented here
protected  void paintButton(Graphics g, AbstractButton button)
           
protected  void paintButtonPressed(Graphics g, AbstractButton button)
           
protected  void paintFocus(Graphics g, AbstractButton button)
           
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
 
Methods inherited from class javax.swing.plaf.metal.MetalButtonUI
createButtonListener, getFocusColor, getSelectColor, paintFocus, paintText, uninstallDefaults, update
 
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 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
 

Constructor Detail

UICToolBarButtonUI

public UICToolBarButtonUI()
Method Detail

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