-
- All Implemented Interfaces:
-
PropertyChangeListener
,EventListener
,SynthConstants
,SynthUI
public class SynthCheckBoxUI extends SynthRadioButtonUI
- 从以下版本开始:
- 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 描述 SynthCheckBoxUI()
-
方法摘要
所有方法 静态方法 接口方法 具体的方法 Modifier and Type 方法 描述 static ComponentUI
createUI(JComponent b)
为给定的组件创建一个新的UI对象。protected String
getPropertyPrefix()
返回属性前缀。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
-
Methods inherited from class javax.swing.plaf.synth.SynthRadioButtonUI
getSizingIcon
-
-
-
-
方法详细信息
-
createUI
public static ComponentUI createUI(JComponent b)
为给定的组件创建一个新的UI对象。- 参数
-
b
- 创建UI对象的组件 - 结果
- UI对象
-
getPropertyPrefix
protected String getPropertyPrefix()
返回属性前缀。- 重写:
-
getPropertyPrefix
在SynthRadioButtonUI
- 结果
- 属性前缀
-
paintBorder
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框- Specified by:
-
paintBorder
在接口SynthUI
- 重写:
-
paintBorder
在SynthRadioButtonUI
- 参数
-
context
- 组件上下文 -
g
-Graphics
上画 -
x
- X坐标 -
y
- Y坐标 -
w
- 边框的宽度 -
h
- 边框的高度
-
-