javax.swing.plaf.metal
Class MetalLabelUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.LabelUI
javax.swing.plaf.basic.BasicLabelUI
javax.swing.plaf.metal.MetalLabelUI
- All Implemented Interfaces:
- PropertyChangeListener, EventListener
public class MetalLabelUI
- extends BasicLabelUI
Disabled: no SafeJ information.
A Windows L&F implementation of LabelUI. This implementation
is completely static, i.e. there's only one UIView implementation
that's shared by all JLabel objects.
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI |
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, layoutCL, paint, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
metalLabelUI
protected static MetalLabelUI metalLabelUI
- Class is disabled.
- The default
MetalLabelUI
instance. This field might
not be used. To change the default instance use a subclass which
overrides the createUI
method, and place that class
name in defaults table under the key "LabelUI".
MetalLabelUI
public MetalLabelUI()
- Class is disabled.
createUI
public static ComponentUI createUI(JComponent c)
- Class is disabled.
paintDisabledText
protected void paintDisabledText(JLabel l,
Graphics g,
String s,
int textX,
int textY)
- Class is disabled.
- Just paint the text gray (Label.disabledForeground) rather than
in the labels foreground color.
- Overrides:
paintDisabledText
in class BasicLabelUI
- See Also:
BasicLabelUI.paint(java.awt.Graphics, javax.swing.JComponent)
,
BasicLabelUI.paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int)