Blackjack

com.amoebacode.blackjack.display
Class FontFactory

java.lang.Object
  |
  +--com.amoebacode.blackjack.display.FontFactory

public abstract class FontFactory
extends java.lang.Object

FontFactory creates all display fonts.

Version:
0.9
Author:
Jason Gurney

Field Summary
private static int BUTTON_FONT_SIZE
          The button font size
private static java.awt.Font buttonFont
          The game button font
private static int COMBO_BOX_FONT_SIZE
          The select box font size
private static java.awt.Font comboBoxFont
          The select box font
private static java.lang.String FONT_NAME
          The standard font face (Verdana)
private static int LABEL_FONT_SIZE
          The text label font size
private static java.awt.Font labelFont
          The text label font
private static int STRATEGY_LABEL_FONT_SIZE
          The basic strategy tip font size
private static java.awt.Font strategyLabelFont
          The basic strategy tip font
 
Constructor Summary
FontFactory()
           
 
Method Summary
static java.awt.Font getButtonFont()
          Returns the font used on game buttons.
static java.awt.Font getComboBoxFont()
          Returns the font used on select boxes.
static java.awt.Font getLabelFont()
          Returns the font used on text labels.
static java.awt.Font getStrategyLabelFont()
          Returns the font used on the basic strategy tip.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

FONT_NAME

private static final java.lang.String FONT_NAME
The standard font face (Verdana)

BUTTON_FONT_SIZE

private static final int BUTTON_FONT_SIZE
The button font size

LABEL_FONT_SIZE

private static final int LABEL_FONT_SIZE
The text label font size

STRATEGY_LABEL_FONT_SIZE

private static final int STRATEGY_LABEL_FONT_SIZE
The basic strategy tip font size

COMBO_BOX_FONT_SIZE

private static final int COMBO_BOX_FONT_SIZE
The select box font size

buttonFont

private static final java.awt.Font buttonFont
The game button font

labelFont

private static final java.awt.Font labelFont
The text label font

strategyLabelFont

private static final java.awt.Font strategyLabelFont
The basic strategy tip font

comboBoxFont

private static final java.awt.Font comboBoxFont
The select box font
Constructor Detail

FontFactory

public FontFactory()
Method Detail

getButtonFont

public static java.awt.Font getButtonFont()
Returns the font used on game buttons.
Returns:
the game button Font

getLabelFont

public static java.awt.Font getLabelFont()
Returns the font used on text labels.
Returns:
the text label Font

getStrategyLabelFont

public static java.awt.Font getStrategyLabelFont()
Returns the font used on the basic strategy tip.
Returns:
the basic strategy tip Font

getComboBoxFont

public static java.awt.Font getComboBoxFont()
Returns the font used on select boxes.
Returns:
the select box Font

Blackjack

Copyright © 2002 amoebacode.com.