Save This Page
Home » openjdk-7 » javax » swing » plaf » metal » [javadoc | source]
javax.swing.plaf.metal
public class: MetalLabelUI [javadoc | source]
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

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    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". 
Fields inherited from javax.swing.plaf.basic.BasicLabelUI:
labelUI
Method from javax.swing.plaf.metal.MetalLabelUI Summary:
createUI,   paintDisabledText
Methods from javax.swing.plaf.basic.BasicLabelUI:
createUI,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installComponents,   installDefaults,   installKeyboardActions,   installListeners,   installUI,   layoutCL,   loadActionMap,   paint,   paintDisabledText,   paintEnabledText,   propertyChange,   uninstallComponents,   uninstallDefaults,   uninstallKeyboardActions,   uninstallListeners,   uninstallUI
Methods from javax.swing.plaf.ComponentUI:
contains,   createUI,   getAccessibleChild,   getAccessibleChildrenCount,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installUI,   paint,   uninstallUI,   update
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.metal.MetalLabelUI Detail:
 public static ComponentUI createUI(JComponent c) 
 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.