bibliothek.gui.dock.util.font
Class ConstantFontModifier
java.lang.Object
bibliothek.gui.dock.util.font.ConstantFontModifier
- All Implemented Interfaces:
- FontModifier
public class ConstantFontModifier
- extends Object
- implements FontModifier
This FontModifier
always returns the same Font
- Author:
- Benjamin Sigg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstantFontModifier
public ConstantFontModifier(Font font)
- Creates a new modifier.
- Parameters:
font
- the font which is to be returned by this modifier
getFont
public Font getFont(Component component)
- Description copied from interface:
FontModifier
- Creates or gets a font for
component
. Note that component
can already have a font set from this or another FontModifier
.
- Specified by:
getFont
in interface FontModifier
- Parameters:
component
- the component for which a font is requested
- Returns:
- the font for
component
, can be null