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()
protected void installDefaults(AbstractButton b)
installDefaults
在
BasicButtonUI
类
protected void uninstallDefaults(AbstractButton b)
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.