org.crosswire.bibledesktop.book.install
Class BookFont

java.lang.Object
  extended by org.crosswire.common.swing.FontStore
      extended by 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.

Field Summary
private static BookFont fonts
           
 
Constructor Summary
private BookFont()
          Create a persistent Book Font Store.
 
Method Summary
 Font getFont(Book book)
          Get the most appropriate font for the book.
 Font getFont(Language language)
           
static BookFont instance()
           
 void setFont(Book book, Font font)
          Set the font for the book.
 
Methods inherited from class org.crosswire.common.swing.FontStore
getDefaultFont, getFont, setDefaultFont, setFont, setFont
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fonts

private static BookFont fonts
Constructor Detail

BookFont

private BookFont()
Create a persistent Book Font Store.

Method Detail

instance

public static BookFont instance()

setFont

public void setFont(Book book,
                    Font font)
Set the font for the book.

Parameters:
book - the book
font - 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)

Copyright ยจ 2003-2007