public class EmphasizedLabelUI extends BasicLabelUI
BasicLabelUI that paints a shadow under the text using the given
shadow color, which helps emphasize the text. The UI delegate also provides a
facility for drawing a different shadow color when the corresponding label's
containing Window is unfocused.labelUI| Constructor and Description |
|---|
EmphasizedLabelUI()
Creates an
EmphasizedLabelUI using the default colors. |
EmphasizedLabelUI(Color focusedTextColor,
Color unfocusedTextColor,
Color emphasisColor)
Creates an
EmphasizedLabelUI using the given colors. |
| Modifier and Type | Method and Description |
|---|---|
void |
installUI(JComponent c) |
protected void |
paintDisabledText(JLabel label,
Graphics g,
String s,
int textX,
int textY) |
protected void |
paintEnabledText(JLabel label,
Graphics g,
String s,
int textX,
int textY) |
void |
uninstallUI(JComponent c) |
createUI, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, layoutCL, paint, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListenerscontains, getAccessibleChild, getAccessibleChildrenCount, updatepublic EmphasizedLabelUI()
EmphasizedLabelUI using the default colors.public void installUI(JComponent c)
installUI in class BasicLabelUIpublic void uninstallUI(JComponent c)
uninstallUI in class BasicLabelUIprotected void paintEnabledText(JLabel label, Graphics g, String s, int textX, int textY)
paintEnabledText in class BasicLabelUIprotected void paintDisabledText(JLabel label, Graphics g, String s, int textX, int textY)
paintDisabledText in class BasicLabelUICopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.