com.jtattoo.plaf
Class BaseRadioButtonUI

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 javax.swing.plaf.basic.BasicRadioButtonUI
                      extended by com.jtattoo.plaf.BaseRadioButtonUI
Direct Known Subclasses:
AluminiumRadioButtonUI, BaseCheckBoxUI, GraphiteRadioButtonUI, HiFiRadioButtonUI

public class BaseRadioButtonUI
extends BasicRadioButtonUI

Author:
Michael Hagen

Field Summary
protected static Rectangle iconRect
           
protected static Dimension size
           
protected static Rectangle textRect
           
protected static Rectangle viewRect
           
 
Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
icon
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
BaseRadioButtonUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
           
 void installDefaults(AbstractButton b)
           
 void paint(Graphics g, JComponent c)
           
protected  void paintBackground(Graphics g, JComponent c)
           
protected  void paintFocus(Graphics g, Rectangle t, Dimension d)
           
protected  void paintIcon(Graphics g, JComponent c, Rectangle iconRect)
           
protected  void paintText(Graphics g, JComponent c, String text, Rectangle textRect)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
getDefaultIcon, getPreferredSize, getPropertyPrefix, uninstallDefaults
 
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getTextShiftOffset, paintIcon
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, 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

size

protected static Dimension size

viewRect

protected static Rectangle viewRect

iconRect

protected static Rectangle iconRect

textRect

protected static Rectangle textRect
Constructor Detail

BaseRadioButtonUI

public BaseRadioButtonUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

installDefaults

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

paint

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

paintBackground

protected void paintBackground(Graphics g,
                               JComponent c)

paintIcon

protected void paintIcon(Graphics g,
                         JComponent c,
                         Rectangle iconRect)
Overrides:
paintIcon in class BasicButtonUI

paintText

protected void paintText(Graphics g,
                         JComponent c,
                         String text,
                         Rectangle textRect)

paintFocus

protected void paintFocus(Graphics g,
                          Rectangle t,
                          Dimension d)
Overrides:
paintFocus in class BasicRadioButtonUI


Copyright © 2011. All Rights Reserved.