Blackjack

com.amoebacode.blackjack.display.label
Class LabelFactory

java.lang.Object
  |
  +--com.amoebacode.blackjack.display.label.LabelFactory

public abstract class LabelFactory
extends java.lang.Object

LabelFactory handles initial creation of all text labels.

Version:
0.9
Author:
Jason Gurney

Constructor Summary
LabelFactory()
           
 
Method Summary
static BalanceLabel getBalanceLabel(java.lang.String text, GameDisplay game)
          Creates and returns a balance label.
static CurrentScoreLabel getCurrentScoreLabel(HandDisplay handDisplay)
          Creates and returns a current score label.
static DecksLabel getDecksLabel(DeckDisplay deck)
          Creates and returns a decks label.
static GameBetLabel getGameBetLabel(java.lang.String text, GameDisplay game)
          Creates and returns a game bet label.
static HandBetLabel getHandBetLabel(PlayerHandDisplay playerHand, java.lang.String text)
          Creates and returns a hand bet label.
static StrategyLabel getStrategyLabel(BasicStrategyDisplay basicStrategy, boolean firstLine)
          Creates and returns a strategy label.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

LabelFactory

public LabelFactory()
Method Detail

getBalanceLabel

public static BalanceLabel getBalanceLabel(java.lang.String text,
                                           GameDisplay game)
Creates and returns a balance label.
Parameters:
text - the balance text
game - the parent GameDisplay
Returns:
a new BalanceLabel

getCurrentScoreLabel

public static CurrentScoreLabel getCurrentScoreLabel(HandDisplay handDisplay)
Creates and returns a current score label.
Parameters:
handDisplay - the HandDisplay being tracked
Returns:
a new CurrentScoreLabel

getDecksLabel

public static DecksLabel getDecksLabel(DeckDisplay deck)
Creates and returns a decks label.
Parameters:
deck - the DeckDisplay parent
Returns:
a new DecksLabel

getGameBetLabel

public static GameBetLabel getGameBetLabel(java.lang.String text,
                                           GameDisplay game)
Creates and returns a game bet label.
Parameters:
text - the game bet text
game - the parent GameDisplay
Returns:
a new GameBetLabel

getStrategyLabel

public static StrategyLabel getStrategyLabel(BasicStrategyDisplay basicStrategy,
                                             boolean firstLine)
Creates and returns a strategy label.
Parameters:
basicStrategy - the BasicStrategyDisplay parent
firstLine - indicates whether this label is the first line
Returns:
a new StrategyLabel

getHandBetLabel

public static HandBetLabel getHandBetLabel(PlayerHandDisplay playerHand,
                                           java.lang.String text)
Creates and returns a hand bet label.
Parameters:
text - the hand bet text
game - the parent PlayerHandDisplay
Returns:
a new HandBetLabel

Blackjack

Copyright © 2002 amoebacode.com.