Save This Page
Home » openjdk-7 » javax » swing » plaf » metal » [javadoc | source]
javax.swing.plaf.metal
public class: MetalToggleButtonUI [javadoc | source]
java.lang.Object
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.ButtonUI
         javax.swing.plaf.basic.BasicButtonUI
            javax.swing.plaf.basic.BasicToggleButtonUI
               javax.swing.plaf.metal.MetalToggleButtonUI
MetalToggleButton implementation

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder .

Field Summary
protected  Color focusColor     
protected  Color selectColor     
protected  Color disabledTextColor     
Fields inherited from javax.swing.plaf.basic.BasicButtonUI:
defaultTextIconGap,  defaultTextShiftOffset
Method from javax.swing.plaf.metal.MetalToggleButtonUI Summary:
createUI,   getDisabledTextColor,   getFocusColor,   getSelectColor,   installDefaults,   paintButtonPressed,   paintFocus,   paintIcon,   paintText,   uninstallDefaults,   update
Methods from javax.swing.plaf.basic.BasicToggleButtonUI:
createUI,   getPropertyPrefix,   getTextShiftOffset,   paint,   paintIcon
Methods from javax.swing.plaf.basic.BasicButtonUI:
clearTextShiftOffset,   createButtonListener,   createUI,   getBaseline,   getBaselineResizeBehavior,   getDefaultTextIconGap,   getMaximumSize,   getMinimumSize,   getPreferredSize,   getPropertyPrefix,   getTextShiftOffset,   installDefaults,   installKeyboardActions,   installListeners,   installUI,   paint,   paintButtonPressed,   paintFocus,   paintIcon,   paintText,   paintText,   setTextShiftOffset,   uninstallDefaults,   uninstallKeyboardActions,   uninstallListeners,   uninstallUI
Methods from javax.swing.plaf.ComponentUI:
contains,   createUI,   getAccessibleChild,   getAccessibleChildrenCount,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installUI,   paint,   uninstallUI,   update
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.metal.MetalToggleButtonUI Detail:
 public static ComponentUI createUI(JComponent b) 
 protected Color getDisabledTextColor() 
 protected Color getFocusColor() 
 protected Color getSelectColor() 
 public  void installDefaults(AbstractButton b) 
 protected  void paintButtonPressed(Graphics g,
    AbstractButton b) 
 protected  void paintFocus(Graphics g,
    AbstractButton b,
    Rectangle viewRect,
    Rectangle textRect,
    Rectangle iconRect) 
 protected  void paintIcon(Graphics g,
    AbstractButton b,
    Rectangle iconRect) 
    Paints the appropriate icon of the button b in the space iconRect.
 protected  void paintText(Graphics g,
    JComponent c,
    Rectangle textRect,
    String text) 
 protected  void uninstallDefaults(AbstractButton b) 
 public  void update(Graphics g,
    JComponent c) 
    If necessary paints the background of the component, then invokes paint.