public class BasicRadioButtonUI extends BasicToggleButtonUI
Modifier and Type | Field and Description |
---|---|
protected Icon |
icon |
defaultTextIconGap, defaultTextShiftOffset
Constructor and Description |
---|
BasicRadioButtonUI() |
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent b) |
Icon |
getDefaultIcon() |
Dimension |
getPreferredSize(JComponent c)
收音机按钮的首选大小
|
protected String |
getPropertyPrefix() |
protected void |
installDefaults(AbstractButton b) |
void |
paint(Graphics g, JComponent c)
油漆收音机按钮
|
protected void |
paintFocus(Graphics g, Rectangle textRect, Dimension size) |
protected void |
uninstallDefaults(AbstractButton b) |
getTextShiftOffset, paintIcon
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected Icon icon
public static ComponentUI createUI(JComponent b)
protected String getPropertyPrefix()
getPropertyPrefix
方法重写,继承类
BasicToggleButtonUI
protected void installDefaults(AbstractButton b)
installDefaults
方法重写,继承类
BasicButtonUI
protected void uninstallDefaults(AbstractButton b)
uninstallDefaults
方法重写,继承类
BasicButtonUI
public Icon getDefaultIcon()
public void paint(Graphics g, JComponent c)
paint
方法重写,继承类
BasicToggleButtonUI
g
-
Graphics
背景的画
c
-正在绘制的构件;这种说法常常被忽视,但可能如果UI对象是无状态的,共享由多个组件
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
public Dimension getPreferredSize(JComponent c)
getPreferredSize
方法重写,继承类
BasicButtonUI
c
优先度的被查询的成分;这种说法常常被忽视,但可能如果UI对象是无状态的,共享由多个组件
JComponent.getPreferredSize()
,
LayoutManager.preferredLayoutSize(java.awt.Container)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.