- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.basic.BasicButtonUI
-
- javax.swing.plaf.synth.SynthButtonUI
-
- javax.swing.plaf.synth.SynthToggleButtonUI
-
- javax.swing.plaf.synth.SynthRadioButtonUI
-
- All Implemented Interfaces:
-
PropertyChangeListener
,EventListener
,SynthConstants
,SynthUI
- 已知直接子类:
-
SynthCheckBoxUI
public class SynthRadioButtonUI extends SynthToggleButtonUI
为JRadioButton
提供Synth L&F UI代表。- 从以下版本开始:
- 1.7
-
-
Field Summary
-
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
-
Fields inherited from interface javax.swing.plaf.synth.SynthConstants
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
-
-
构造方法摘要
构造方法 Constructor 描述 SynthRadioButtonUI()
-
方法摘要
所有方法 静态方法 接口方法 具体的方法 Modifier and Type 方法 描述 static ComponentUI
createUI(JComponent b)
为给定的组件创建一个新的UI对象。protected String
getPropertyPrefix()
返回属性前缀。protected Icon
getSizingIcon(AbstractButton b)
返回用于计算首选/最小/最大大小的图标。void
paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框-
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getBaselineResizeBehavior, getDefaultTextIconGap, getTextShiftOffset, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class javax.swing.plaf.synth.SynthButtonUI
getBaseline, getContext, getDefaultIcon, getIcon, getMaximumSize, getMinimumSize, getPreferredSize, installDefaults, installListeners, paint, paint, propertyChange, uninstallDefaults, uninstallListeners, update
-
-
-
-
方法详细信息
-
createUI
public static ComponentUI createUI(JComponent b)
为给定的组件创建一个新的UI对象。- 参数
-
b
- 创建UI对象的组件 - 结果
- UI对象
-
getPropertyPrefix
protected String getPropertyPrefix()
返回属性前缀。- 重写:
-
getPropertyPrefix
在SynthToggleButtonUI
- 结果
- 属性前缀
-
getSizingIcon
protected Icon getSizingIcon(AbstractButton b)
返回用于计算首选/最小/最大大小的图标。- 重写:
-
getSizingIcon
在SynthButtonUI
- 参数
-
b
- 指定在计算首选/最小/最大大小时使用的AbstractButton
。 - 结果
- 用于计算首选/最小/最大大小的图标。
-
paintBorder
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框- Specified by:
-
paintBorder
在接口SynthUI
- 重写:
-
paintBorder
在SynthToggleButtonUI
- 参数
-
context
- 组件上下文 -
g
-Graphics
上画 -
x
- X坐标 -
y
- Y坐标 -
w
- 边框的宽度 -
h
- 边框的高度
-
-