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 [dmsmith555 at yahoo dot com]
- 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 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)