com.jtattoo.plaf
Class BaseButtonUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ButtonUI
          extended by javax.swing.plaf.basic.BasicButtonUI
              extended by com.jtattoo.plaf.BaseButtonUI
Direct Known Subclasses:
AcrylButtonUI, AluminiumButtonUI, FastButtonUI, GraphiteButtonUI, HiFiButtonUI

public class BaseButtonUI
extends BasicButtonUI

Author:
Michael Hagen

Field Summary
protected static Rectangle iconRect
           
protected static Rectangle textRect
           
protected static Rectangle viewRect
           
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
BaseButtonUI()
           
 
Method Summary
protected  BasicButtonListener createButtonListener(AbstractButton b)
           
static ComponentUI createUI(JComponent c)
           
 void installDefaults(AbstractButton b)
           
 void paint(Graphics g, JComponent c)
           
protected  void paintBackground(Graphics g, AbstractButton b)
           
protected  void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void paintText(Graphics g, AbstractButton b, Rectangle textRect)
           
 void uninstallDefaults(AbstractButton b)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewRect

protected static Rectangle viewRect

textRect

protected static Rectangle textRect

iconRect

protected static Rectangle iconRect
Constructor Detail

BaseButtonUI

public BaseButtonUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

installDefaults

public void installDefaults(AbstractButton b)
Overrides:
installDefaults in class BasicButtonUI

uninstallDefaults

public void uninstallDefaults(AbstractButton b)
Overrides:
uninstallDefaults in class BasicButtonUI

createButtonListener

protected BasicButtonListener createButtonListener(AbstractButton b)
Overrides:
createButtonListener in class BasicButtonUI

paintBackground

protected void paintBackground(Graphics g,
                               AbstractButton b)

paintText

protected void paintText(Graphics g,
                         AbstractButton b,
                         Rectangle textRect)

paintFocus

protected void paintFocus(Graphics g,
                          AbstractButton b,
                          Rectangle viewRect,
                          Rectangle textRect,
                          Rectangle iconRect)
Overrides:
paintFocus in class BasicButtonUI

paint

public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class BasicButtonUI


Copyright © 2011. All Rights Reserved.