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
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 SummaryFields Modifier and Type Field Description protected static MetalLabelUImetalLabelUIThe defaultMetalLabelUIinstance.
- 
Constructor SummaryConstructors Constructor Description MetalLabelUI()
- 
Method SummaryModifier and Type Method Description static ComponentUIcreateUI(JComponent c)Returns an instance ofMetalLabelUI.protected voidpaintDisabledText(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 declared in class javax.swing.plaf.basic.BasicLabelUIgetBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, installComponents, installDefaults, installKeyboardActions, installListeners, layoutCL, paint, paintEnabledText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListenersMethods declared in class javax.swing.plaf.ComponentUIcontains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize, installUI, uninstallUI, update
- 
Field Details- 
metalLabelUIThe defaultMetalLabelUIinstance. This field might not be used. To change the default instance use a subclass which overrides thecreateUImethod, and place that class name in defaults table under the key "LabelUI".
 
- 
- 
Constructor Details- 
MetalLabelUIpublic MetalLabelUI()
 
- 
- 
Method Details- 
createUIReturns an instance ofMetalLabelUI.- Parameters:
- c- a component
- Returns:
- an instance of MetalLabelUI
 
- 
paintDisabledTextJust paint the text gray (Label.disabledForeground) rather than in the labels foreground color.- Overrides:
- paintDisabledTextin class- BasicLabelUI
- Parameters:
- l- an instance of- JLabel
- g- an instance of- Graphics
- s- a text
- textX- an X coordinate
- textY- an Y coordinate
- See Also:
- BasicLabelUI.paint(java.awt.Graphics, javax.swing.JComponent),- BasicLabelUI.paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int)
 
 
-