- 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
-
- All Implemented Interfaces:
-
PropertyChangeListener
,EventListener
,SynthConstants
,SynthUI
- 已知直接子类:
-
SynthRadioButtonUI
public class SynthToggleButtonUI extends SynthButtonUI
为JToggleButton
提供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 描述 SynthToggleButtonUI()
-
方法摘要
所有方法 静态方法 接口方法 具体的方法 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, getSizingIcon, installDefaults, installListeners, paint, paint, propertyChange, uninstallDefaults, uninstallListeners, update
-
-
-
-
方法详细信息
-
createUI
public static ComponentUI createUI(JComponent b)
为给定的组件创建一个新的UI对象。- 参数
-
b
- 为其创建UI对象的组件 - 结果
- UI对象
-
getPropertyPrefix
protected String getPropertyPrefix()
返回属性前缀。- 重写:
-
getPropertyPrefix
在BasicButtonUI
- 结果
- 属性前缀
-
paintBorder
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框- Specified by:
-
paintBorder
在接口SynthUI
- 重写:
-
paintBorder
在SynthButtonUI
- 参数
-
context
- 组件上下文 -
g
-Graphics
来画 -
x
- X坐标 -
y
- Y坐标 -
w
- 边框的宽度 -
h
- 边框的高度
-
-