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
|
Method Summary |
Font |
modify(Font font)
Creates or gets a font for font. |
| 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
modify
public Font modify(Font font)
- Description copied from interface:
FontModifier
- Creates or gets a font for
font.
- Specified by:
modify in interface FontModifier
- Parameters:
font - the original unmodified font
- Returns:
- a font that might be a modification of
font