所有类
javax.swing.plaf.metal
类 MetalLabelUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.LabelUI
javax.swing.plaf.basic.BasicLabelUI
javax.swing.plaf.metal.MetalLabelUI
- 所有已实现的接口:
- PropertyChangeListener, EventListener
-
public class MetalLabelUI
- extends BasicLabelUI
LabelUI 的 Windows L&F 实现。此实现完全是静态的,也就是说,只有一个由所有 JLabel 对象共享的 UIView 实现。
从类 javax.swing.plaf.basic.BasicLabelUI 继承的方法 |
getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, layoutCL, paint, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI |
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
metalLabelUI
protected static MetalLabelUI metalLabelUI
MetalLabelUI
public MetalLabelUI()
createUI
public static ComponentUI createUI(JComponent c)
-
paintDisabledText
protected void paintDisabledText(JLabel l,
Graphics g,
String s,
int textX,
int textY)
-
只绘制文本灰度 (Label.disabledForeground),而不是使用标签前景色。
-
- 覆盖:
-
类
BasicLabelUI
中的 paintDisabledText
-
- 另请参见:
BasicLabelUI.paint(java.awt.Graphics, javax.swing.JComponent)
, BasicLabelUI.paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int)
所有类