public class MetalRadioButtonUI extends BasicRadioButtonUI
RadioButtonUI implementation for MetalRadioButtonUI
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 JavaBeans™ has been added to the java.beans
package. Please see XMLEncoder
.
protected Color focusColor
protected Color selectColor
protected Color disabledTextColor
public MetalRadioButtonUI()
public static ComponentUI createUI(JComponent c)
public void installDefaults(AbstractButton b)
installDefaults
in class BasicRadioButtonUI
protected void uninstallDefaults(AbstractButton b)
uninstallDefaults
in class BasicRadioButtonUI
protected Color getSelectColor()
protected Color getDisabledTextColor()
protected Color getFocusColor()
public void paint(Graphics g, JComponent c)
Description copied from class: BasicRadioButtonUI
paint the radio button
paint
in class BasicRadioButtonUI
g
- the Graphics
context in which to paintc
- the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple componentsComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
protected void paintFocus(Graphics g, Rectangle t, Dimension d)
Description copied from class: BasicRadioButtonUI
Paints focused radio button.
paintFocus
in class BasicRadioButtonUI
g
- an instance of Graphics
t
- boundsd
- the size of radio button
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.