org.tentackle.plaf.tmetal
Class TMetalButtonUI

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 org.tentackle.plaf.tmetal.TMetalButtonUI

public class TMetalButtonUI
extends MetalButtonUI

UI for JButton/FormButton.

Author:
harald

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
TMetalButtonUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
           
protected  void installListeners(AbstractButton b)
           
protected  void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
          overridden to flash the focus-rectangle
protected  void uninstallListeners(AbstractButton b)
           
 
Methods inherited from class javax.swing.plaf.metal.MetalButtonUI
createButtonListener, getDisabledTextColor, getFocusColor, getSelectColor, installDefaults, paintButtonPressed, paintText, uninstallDefaults, update
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installUI, paint, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, 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

TMetalButtonUI

public TMetalButtonUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

installListeners

protected void installListeners(AbstractButton b)
Overrides:
installListeners in class BasicButtonUI

uninstallListeners

protected void uninstallListeners(AbstractButton b)
Overrides:
uninstallListeners in class BasicButtonUI

paintFocus

protected void paintFocus(Graphics g,
                          AbstractButton b,
                          Rectangle viewRect,
                          Rectangle textRect,
                          Rectangle iconRect)
overridden to flash the focus-rectangle

Overrides:
paintFocus in class MetalButtonUI


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de