public class FontUpdater extends Object
FontUpdater wraps around a JComponent and changes
the font of the component using a FontModifier.enterUpdateUI()
end leaveUpdateUI() before and after JComponent.updateUI()
is called.| Constructor and Description |
|---|
FontUpdater(JComponent component)
Creates a new updater
|
| Modifier and Type | Method and Description |
|---|---|
void |
enterUpdateUI()
Informs this updater that
JComponent.updateUI() is
about to start. |
FontModifier |
getFontModifier()
Gets the modifier which is used to update the font of this label.
|
void |
leaveUpdateUI()
Informs this updater that
JComponent.updateUI() has
been executed. |
void |
setFontModifier(FontModifier modifier)
Sets the modifier which is used to update the font of this label.
|
public FontUpdater(JComponent component)
component - the component whose font will be changedpublic void enterUpdateUI()
JComponent.updateUI() is
about to start.public void leaveUpdateUI()
JComponent.updateUI() has
been executed.public void setFontModifier(FontModifier modifier)
modifier - the new modifier, can be nullpublic FontModifier getFontModifier()
nullCopyright © 2017 Docking Frames. All rights reserved.