|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.util.swing.FontUpdater
public class FontUpdater
A FontUpdater
wraps around a JComponent
and changes
the font of the component using a FontModifier
.
Components that use this updater must call enterUpdateUI()
end leaveUpdateUI()
before and after JComponent.updateUI()
is called.
Components should create an instance of this updater before they are
added to any other component.
Constructor Summary | |
---|---|
FontUpdater(JComponent component)
Creates a new updater |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontUpdater(JComponent component)
component
- the component whose font will be changedMethod Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |