com.jtattoo.plaf
Class BaseToggleButtonUI

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.basic.BasicToggleButtonUI
                  extended by com.jtattoo.plaf.BaseToggleButtonUI
Direct Known Subclasses:
AluminiumToggleButtonUI, FastToggleButtonUI, HiFiToggleButtonUI

public class BaseToggleButtonUI
extends BasicToggleButtonUI


Field Summary
protected static Color[] rolloverPressedColors
           
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
BaseToggleButtonUI()
           
 
Method Summary
protected  BasicButtonListener createButtonListener(AbstractButton b)
           
static ComponentUI createUI(JComponent b)
           
 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, String text)
           
 void uninstallDefaults(AbstractButton b)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getPropertyPrefix, getTextShiftOffset, paintIcon
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintIcon, 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

rolloverPressedColors

protected static Color[] rolloverPressedColors
Constructor Detail

BaseToggleButtonUI

public BaseToggleButtonUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent b)

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,
                         String text)
Overrides:
paintText in class BasicButtonUI

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 BasicToggleButtonUI


Copyright © 2011. All Rights Reserved.