Package Summary  Overview Summary

class:BasicRadioButtonUI [NONE]

Direct Known Subclasses:
BasicCheckBoxUI, MetalRadioButtonUI

public class BasicRadioButtonUI
extends BasicToggleButtonUI
RadioButtonUI implementation for BasicRadioButtonUI

field:icon [NONE]

constructor:BasicRadioButtonUI() [NONE]

method:createUI(javax.swing.JComponent) [NONE]

  • createUI

    public static  ComponentUI createUI?(JComponent b)
    Returns an instance of BasicRadioButtonUI.
    Parameters:
    b - a component
    Returns:
    an instance of BasicRadioButtonUI
  • method:getPropertyPrefix() [NONE]

    getPropertyPrefix

    protected String getPropertyPrefix()
    Description copied from class: BasicButtonUI
    Returns the property prefix.
    Overrides:
    getPropertyPrefix in class BasicToggleButtonUI
    Returns:
    the property prefix

    method:installDefaults(javax.swing.AbstractButton) [NONE]

    installDefaults

    protected void installDefaults?(AbstractButton b)
    Description copied from class: BasicButtonUI
    Installs default properties.
    Overrides:
    installDefaults in class BasicButtonUI
    Parameters:
    b - an abstract button

    method:uninstallDefaults(javax.swing.AbstractButton) [NONE]

    uninstallDefaults

    protected void uninstallDefaults?(AbstractButton b)
    Description copied from class: BasicButtonUI
    Uninstalls default properties.
    Overrides:
    uninstallDefaults in class BasicButtonUI
    Parameters:
    b - an abstract button

    method:getDefaultIcon() [NONE]

    getDefaultIcon

    public Icon getDefaultIcon()
    Returns the default icon.
    Returns:
    the default icon

    method:installListeners(javax.swing.AbstractButton) [NONE]

    installListeners

    protected void installListeners?(AbstractButton button)
    Description copied from class: BasicButtonUI
    Registers listeners.
    Overrides:
    installListeners in class BasicButtonUI
    Parameters:
    button - an abstract button

    method:uninstallListeners(javax.swing.AbstractButton) [NONE]

    uninstallListeners

    protected void uninstallListeners?(AbstractButton button)
    Description copied from class: BasicButtonUI
    Unregisters listeners.
    Overrides:
    uninstallListeners in class BasicButtonUI
    Parameters:
    button - an abstract button

    method:paint(java.awt.Graphics,javax.swing.JComponent) [NONE]

    paint

    public void paint?(Graphics g, JComponent c)
    paint the radio button
    Overrides:
    paint in class BasicToggleButtonUI
    Parameters:
    g - the Graphics context in which to paint
    c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
    See Also:
    ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)

    method:paintFocus(java.awt.Graphics,java.awt.Rectangle,java.awt.Dimension) [NONE]

    paintFocus

    protected void paintFocus?(Graphics g, Rectangle textRect, Dimension size)
    Paints focused radio button.
    Parameters:
    g - an instance of Graphics
    textRect - bounds
    size - the size of radio button

    method:getPreferredSize(javax.swing.JComponent) [NONE]

    getPreferredSize

    public Dimension getPreferredSize?(JComponent c)
    The preferred size of the radio button
    Overrides:
    getPreferredSize in class BasicButtonUI
    Parameters:
    c - the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
    Returns:
    a Dimension object containing given component's preferred size appropriate for the look and feel
    See Also:
    JComponent.getPreferredSize(), LayoutManager.preferredLayoutSize(java.awt.Container)

    © 2020 Oracle Corporation and/or its affiliates