javax.swing.plaf.metal
public class MetalLabelUI extends BasicLabelUI
JLabel
component.Modifier and Type | Field and Description |
---|---|
protected static MetalLabelUI |
metalLabelUI
The shared instance of the UI delegate.
|
labelUI
Constructor and Description |
---|
MetalLabelUI()
Constructs a new instance of
MetalLabelUI . |
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent component)
Returns a shared instance of
MetalLabelUI . |
protected void |
paintDisabledText(JLabel l,
Graphics g,
String s,
int textX,
int textY)
Draws the text for a disabled label, using the color defined in the
UIManager defaults with the key
Label.disabledForeground . |
getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, layoutCL, paint, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected static MetalLabelUI metalLabelUI
public MetalLabelUI()
MetalLabelUI
.public static ComponentUI createUI(JComponent component)
MetalLabelUI
.component
- the component for which we return an UI instanceMetalLabelUI
.protected void paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
UIManager
defaults with the key
Label.disabledForeground
.paintDisabledText
in class BasicLabelUI
l
- the label.g
- the graphics device.s
- the label text.textX
- the x-coordinate for the label.textY
- the y-coordinate for the label.