org.crosswire.bibledesktop.book.install
Class BookFont
java.lang.Object
org.crosswire.common.swing.FontStore
org.crosswire.bibledesktop.book.install.BookFont
public class BookFont
- extends FontStore
- Author:
- DM Smith
- See Also:
for license details.
The copyright to this program is held by it's authors.
Constructor Summary |
private |
BookFont()
Create a persistent Book Font Store. |
Methods inherited from class org.crosswire.common.swing.FontStore |
getDefaultFont, getFont, getFontMap, getFontStore, getStoreName, isLoaded, load, obtainFont, resetFont, setDefaultFont, setFont, setFont, setFontMap, setFontStore, setLoaded, setStoreName, store |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fonts
private static BookFont fonts
BookFont
private BookFont()
- Create a persistent Book Font Store.
instance
public static BookFont instance()
setFont
public void setFont(Book book,
Font font)
- Set the font for the book.
- Parameters:
book
- the bookfont
- the font
getFont
public Font getFont(Book book)
- Get the most appropriate font for the book.
- Parameters:
book
- the book
- Returns:
- the font
getFont
public Font getFont(Language language)
isSet
public boolean isSet(Book book,
Language lang)
- Is a font for this book / language set in the properties file?
- Parameters:
book
- the book to testlang
- the language to test
- Returns:
true
a font property was set, false
otherwise
resetFont
public void resetFont(Book book,
Language lang)
- Remove the entry for this book / language in the properties file and use
the default font