public class FontUpdater
extends java.lang.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(javax.swing.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(javax.swing.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 null
public FontModifier getFontModifier()
null