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, uninstallListeners
contains, getAccessibleChild, getAccessibleChildrenCount, update
public EmphasizedLabelUI()
EmphasizedLabelUI
using the default colors.public void installUI(JComponent c)
installUI
in class BasicLabelUI
public void uninstallUI(JComponent c)
uninstallUI
in class BasicLabelUI
protected void paintEnabledText(JLabel label, Graphics g, String s, int textX, int textY)
paintEnabledText
in class BasicLabelUI
protected void paintDisabledText(JLabel label, Graphics g, String s, int textX, int textY)
paintDisabledText
in class BasicLabelUI
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.