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
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
LabelFactory
public LabelFactory()
getBalanceLabel
public static BalanceLabel getBalanceLabel(java.lang.String text,
GameDisplay game)
- Creates and returns a balance label.
- Parameters:
text - the balance textgame - 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 textgame - 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 parentfirstLine - 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 textgame - the parent PlayerHandDisplay- Returns:
- a new HandBetLabel
Copyright © 2002 amoebacode.com.