MetalLabelUI (Java 2 Platform SE 5.0) (original) (raw)


javax.swing.plaf.metal

Class MetalLabelUI

java.lang.Object extended by javax.swing.plaf.ComponentUI extended by javax.swing.plaf.LabelUI extended by javax.swing.plaf.basic.BasicLabelUI extended by javax.swing.plaf.metal.MetalLabelUI

All Implemented Interfaces:

PropertyChangeListener, EventListener


public class MetalLabelUI

extends BasicLabelUI

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.


Field Summary
protected static MetalLabelUI metalLabelUI
Fields inherited from class javax.swing.plaf.basic.BasicLabelUI
labelUI
Constructor Summary
MetalLabelUI()
Method Summary
static ComponentUI createUI(JComponent c)
protected void [paintDisabledText](../../../../javax/swing/plaf/metal/MetalLabelUI.html#paintDisabledText%28javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int%29)(JLabel l,Graphics g,String s, int textX, int textY) Just paint the text gray (Label.disabledForeground) rather than in the labels foreground color.
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, [layoutCL](../../../../javax/swing/plaf/basic/BasicLabelUI.html#layoutCL%28javax.swing.JLabel, java.awt.FontMetrics, java.lang.String, javax.swing.Icon, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle%29), [paint](../../../../javax/swing/plaf/basic/BasicLabelUI.html#paint%28java.awt.Graphics, javax.swing.JComponent%29), [paintEnabledText](../../../../javax/swing/plaf/basic/BasicLabelUI.html#paintEnabledText%28javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int%29), propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
[contains](../../../../javax/swing/plaf/ComponentUI.html#contains%28javax.swing.JComponent, int, int%29), [getAccessibleChild](../../../../javax/swing/plaf/ComponentUI.html#getAccessibleChild%28javax.swing.JComponent, int%29), getAccessibleChildrenCount, [update](../../../../javax/swing/plaf/ComponentUI.html#update%28java.awt.Graphics, javax.swing.JComponent%29)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, [wait](../../../../java/lang/Object.html#wait%28long, int%29)
Field Detail

metalLabelUI

protected static MetalLabelUI metalLabelUI

Constructor Detail

MetalLabelUI

public MetalLabelUI()

Method Detail

createUI

public static ComponentUI createUI(JComponent c)


paintDisabledText

protected void paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)

Just paint the text gray (Label.disabledForeground) rather than in the labels foreground color.

Overrides:

[paintDisabledText](../../../../javax/swing/plaf/basic/BasicLabelUI.html#paintDisabledText%28javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int%29) in class [BasicLabelUI](../../../../javax/swing/plaf/basic/BasicLabelUI.html "class in javax.swing.plaf.basic")

See Also:

[BasicLabelUI.paint(java.awt.Graphics, javax.swing.JComponent)](../../../../javax/swing/plaf/basic/BasicLabelUI.html#paint%28java.awt.Graphics, javax.swing.JComponent%29), [BasicLabelUI.paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int)](../../../../javax/swing/plaf/basic/BasicLabelUI.html#paintEnabledText%28javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int%29)



Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.