Blackjack

com.amoebacode.blackjack.display
Class Location

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

public abstract class Location
extends java.lang.Object

Location manages the Coordinate for each display element.

Version:
0.9
Author:
Jason Gurney

Field Summary
private static int ANIMATION_COMBO_BOX_HORIZONTAL
          The animation speed select box horizontal position
private static int ANIMATION_COMBO_BOX_VERTICAL
          The animation speed select box vertical position
private static int AUDIO_COMBO_BOX_HORIZONTAL
          The audio select box horizontal position
private static int AUDIO_COMBO_BOX_VERTICAL
          The audio select box vertical position
private static int BALANCE_HORIZONTAL
          The balance label horizontal position
private static int BALANCE_VERTICAL
          The balance label vertical position
private static int DAS_COMBO_BOX_HORIZONTAL
          The double after split select box horizontal position
private static int DAS_COMBO_BOX_VERTICAL
          The double after split select box vertical position
private static int DEAL_HORIZONTAL
          The deal button horizontal position
private static int DEAL_VERTICAL
          The deal button vertical position
private static int DEALER_HORIZONTAL
          The dealer hand horizontal position
private static int DEALER_VERTICAL
          The dealer hand vertical position
private static int DECK_HORIZONTAL
          The deck horizontal position
private static int DECK_VERTICAL
          The deck vertical position
private static int DECKS_COMBO_BOX_HORIZONTAL
          The decks select box horizontal position
private static int DECKS_COMBO_BOX_VERTICAL
          The decks select box vertical position
private static int DECKS_LABEL_HORIZONTAL
          The deck label horizontal position
private static int DECKS_LABEL_VERTICAL
          The deck label vertical position
private static int DOUBLE_ANY_COMBO_BOX_HORIZONTAL
          The double availability select box horizontal position
private static int DOUBLE_ANY_COMBO_BOX_VERTICAL
          The double availability select box vertical position
private static int GAME_BET_HORIZONTAL
          The game bet label horizontal position
private static int GAME_BET_VERTICAL
          The game bet label vertical position
private static int LOWER_BET_HORIZONTAL
          The lower bet label horizontal position
private static int LOWER_BET_VERTICAL
          The lower bet label vertical position
private static int OPTIONS_HORIZONTAL
          The house rules button horizontal position
private static int OPTIONS_VERTICAL
          The house rules button vertical position
private static int PLAYER_0_HORIZONTAL
          The first player hand horizontal position
private static int PLAYER_1_HORIZONTAL
          The second player hand horizontal position
private static int PLAYER_2_HORIZONTAL
          The third player hand horizontal position
private static int PLAYER_3_HORIZONTAL
          The fourth player hand horizontal position
private static int[] PLAYER_HORIZONTAL
          The array of player hand horizontal positions
private static int PLAYER_VERTICAL
          The player hand vertical position
private static int PREFERENCES_HORIZONTAL
          The preferences button horizontal position
private static int PREFERENCES_VERTICAL
          The preferences button vertical position
private static int RAISE_BET_HORIZONTAL
          The raise bet label horizontal position
private static int RAISE_BET_VERTICAL
          The raise bet label vertical position
private static int SAVE_OPTIONS_HORIZONTAL
          The save house rules button horizontal position
private static int SAVE_OPTIONS_VERTICAL
          The save house rules button vertical position
private static int SAVE_PREFERENCES_HORIZONTAL
          The save preferences button horizontal position
private static int SAVE_PREFERENCES_VERTICAL
          The save preferences button vertical position
private static int SHUFFLE_HORIZONTAL
          The shuffle button horizontal position
private static int SHUFFLE_VERTICAL
          The shuffle button vertical position
private static int SOFT_17_COMBO_BOX_HORIZONTAL
          The soft seventeen select box horizontal position
private static int SOFT_17_COMBO_BOX_VERTICAL
          The soft seventeen select box vertical position
private static int STRATEGY_COMBO_BOX_HORIZONTAL
          The strategy tutor select box horizontal position
private static int STRATEGY_COMBO_BOX_VERTICAL
          The strategy tutor select box vertical position
private static int STRATEGY_LABEL_HORIZONTAL
          The basic strategy label horizontal position
private static int STRATEGY_LABEL_VERTICAL
          The basic strategy label vertical position
private static int SURRENDER_COMBO_BOX_HORIZONTAL
          The surrender availability select box horizontal position
private static int SURRENDER_COMBO_BOX_VERTICAL
          The surrender availability select box vertical position
 
Constructor Summary
Location()
           
 
Method Summary
static Coordinate getAnimationComboBoxCoordinates()
          Returns the location of the animation speed select box.
static Coordinate getAudioComboBoxCoordinates()
          Returns the location of the audio select box.
static Coordinate getBalanceCoordinates()
          Returns the location of the balance label.
static Coordinate getDASComboBoxCoordinates()
          Returns the location of the double after split select box.
static Coordinate getDealCoordinates()
          Returns the location of the deal button.
static Coordinate getDealerCoordinates()
          Returns the location of the dealer hand.
static Coordinate getDeckCoordinates()
          Returns the location of the deck.
static Coordinate getDecksComboBoxCoordinates()
          Returns the location of the decks select box.
static Coordinate getDecksLabelCoordinates()
          Returns the location of the decks left label.
static Coordinate getDoubleAnyComboBoxCoordinates()
          Returns the location of the double availability select box.
static Coordinate getGameBetCoordinates()
          Returns the location of the bet label.
static Coordinate getLowerBetCoordinates()
          Returns the location of the lower bet button.
static Coordinate getOptionsCoordinates()
          Returns the location of the house rules button.
static Coordinate getPlayerCoordinates(int index)
          Returns the location of the specified player hand.
static Coordinate getPreferencesCoordinates()
          Returns the location of the preferences button.
static Coordinate getRaiseBetCoordinates()
          Returns the location of the raise bet button.
static Coordinate getSaveOptionsCoordinates()
          Returns the location of the save house rules.
static Coordinate getSavePreferencesCoordinates()
          Returns the location of the save preferences button.
static Coordinate getShuffleCoordinates()
          Returns the location of the shuffle button.
static Coordinate getSoft17ComboBoxCoordinates()
          Returns the location of the soft 17 select box.
static Coordinate getStrategyComboBoxCoordinates()
          Returns the location of the strategy tutor select box.
static Coordinate getStrategyLabelCoordinates()
          Returns the location of the basic strategy label.
static Coordinate getSurrenderComboBoxCoordinates()
          Returns the location of the surrender availability select box.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

DEALER_HORIZONTAL

private static final int DEALER_HORIZONTAL
The dealer hand horizontal position

DEALER_VERTICAL

private static final int DEALER_VERTICAL
The dealer hand vertical position

PLAYER_VERTICAL

private static final int PLAYER_VERTICAL
The player hand vertical position

PLAYER_0_HORIZONTAL

private static final int PLAYER_0_HORIZONTAL
The first player hand horizontal position

PLAYER_1_HORIZONTAL

private static final int PLAYER_1_HORIZONTAL
The second player hand horizontal position

PLAYER_2_HORIZONTAL

private static final int PLAYER_2_HORIZONTAL
The third player hand horizontal position

PLAYER_3_HORIZONTAL

private static final int PLAYER_3_HORIZONTAL
The fourth player hand horizontal position

BALANCE_HORIZONTAL

private static final int BALANCE_HORIZONTAL
The balance label horizontal position

BALANCE_VERTICAL

private static final int BALANCE_VERTICAL
The balance label vertical position

GAME_BET_HORIZONTAL

private static final int GAME_BET_HORIZONTAL
The game bet label horizontal position

GAME_BET_VERTICAL

private static final int GAME_BET_VERTICAL
The game bet label vertical position

RAISE_BET_HORIZONTAL

private static final int RAISE_BET_HORIZONTAL
The raise bet label horizontal position

RAISE_BET_VERTICAL

private static final int RAISE_BET_VERTICAL
The raise bet label vertical position

LOWER_BET_HORIZONTAL

private static final int LOWER_BET_HORIZONTAL
The lower bet label horizontal position

LOWER_BET_VERTICAL

private static final int LOWER_BET_VERTICAL
The lower bet label vertical position

DECK_HORIZONTAL

private static final int DECK_HORIZONTAL
The deck horizontal position

DECK_VERTICAL

private static final int DECK_VERTICAL
The deck vertical position

DECKS_LABEL_HORIZONTAL

private static final int DECKS_LABEL_HORIZONTAL
The deck label horizontal position

DECKS_LABEL_VERTICAL

private static final int DECKS_LABEL_VERTICAL
The deck label vertical position

DEAL_HORIZONTAL

private static final int DEAL_HORIZONTAL
The deal button horizontal position

DEAL_VERTICAL

private static final int DEAL_VERTICAL
The deal button vertical position

SHUFFLE_HORIZONTAL

private static final int SHUFFLE_HORIZONTAL
The shuffle button horizontal position

SHUFFLE_VERTICAL

private static final int SHUFFLE_VERTICAL
The shuffle button vertical position

OPTIONS_HORIZONTAL

private static final int OPTIONS_HORIZONTAL
The house rules button horizontal position

OPTIONS_VERTICAL

private static final int OPTIONS_VERTICAL
The house rules button vertical position

PREFERENCES_HORIZONTAL

private static final int PREFERENCES_HORIZONTAL
The preferences button horizontal position

PREFERENCES_VERTICAL

private static final int PREFERENCES_VERTICAL
The preferences button vertical position

DECKS_COMBO_BOX_HORIZONTAL

private static final int DECKS_COMBO_BOX_HORIZONTAL
The decks select box horizontal position

DECKS_COMBO_BOX_VERTICAL

private static final int DECKS_COMBO_BOX_VERTICAL
The decks select box vertical position

SOFT_17_COMBO_BOX_HORIZONTAL

private static final int SOFT_17_COMBO_BOX_HORIZONTAL
The soft seventeen select box horizontal position

SOFT_17_COMBO_BOX_VERTICAL

private static final int SOFT_17_COMBO_BOX_VERTICAL
The soft seventeen select box vertical position

DOUBLE_ANY_COMBO_BOX_HORIZONTAL

private static final int DOUBLE_ANY_COMBO_BOX_HORIZONTAL
The double availability select box horizontal position

DOUBLE_ANY_COMBO_BOX_VERTICAL

private static final int DOUBLE_ANY_COMBO_BOX_VERTICAL
The double availability select box vertical position

DAS_COMBO_BOX_HORIZONTAL

private static final int DAS_COMBO_BOX_HORIZONTAL
The double after split select box horizontal position

DAS_COMBO_BOX_VERTICAL

private static final int DAS_COMBO_BOX_VERTICAL
The double after split select box vertical position

SURRENDER_COMBO_BOX_HORIZONTAL

private static final int SURRENDER_COMBO_BOX_HORIZONTAL
The surrender availability select box horizontal position

SURRENDER_COMBO_BOX_VERTICAL

private static final int SURRENDER_COMBO_BOX_VERTICAL
The surrender availability select box vertical position

SAVE_OPTIONS_HORIZONTAL

private static final int SAVE_OPTIONS_HORIZONTAL
The save house rules button horizontal position

SAVE_OPTIONS_VERTICAL

private static final int SAVE_OPTIONS_VERTICAL
The save house rules button vertical position

ANIMATION_COMBO_BOX_HORIZONTAL

private static final int ANIMATION_COMBO_BOX_HORIZONTAL
The animation speed select box horizontal position

ANIMATION_COMBO_BOX_VERTICAL

private static final int ANIMATION_COMBO_BOX_VERTICAL
The animation speed select box vertical position

STRATEGY_COMBO_BOX_HORIZONTAL

private static final int STRATEGY_COMBO_BOX_HORIZONTAL
The strategy tutor select box horizontal position

STRATEGY_COMBO_BOX_VERTICAL

private static final int STRATEGY_COMBO_BOX_VERTICAL
The strategy tutor select box vertical position

AUDIO_COMBO_BOX_HORIZONTAL

private static final int AUDIO_COMBO_BOX_HORIZONTAL
The audio select box horizontal position

AUDIO_COMBO_BOX_VERTICAL

private static final int AUDIO_COMBO_BOX_VERTICAL
The audio select box vertical position

SAVE_PREFERENCES_HORIZONTAL

private static final int SAVE_PREFERENCES_HORIZONTAL
The save preferences button horizontal position

SAVE_PREFERENCES_VERTICAL

private static final int SAVE_PREFERENCES_VERTICAL
The save preferences button vertical position

STRATEGY_LABEL_HORIZONTAL

private static final int STRATEGY_LABEL_HORIZONTAL
The basic strategy label horizontal position

STRATEGY_LABEL_VERTICAL

private static final int STRATEGY_LABEL_VERTICAL
The basic strategy label vertical position

PLAYER_HORIZONTAL

private static final int[] PLAYER_HORIZONTAL
The array of player hand horizontal positions
Constructor Detail

Location

public Location()
Method Detail

getDealerCoordinates

public static Coordinate getDealerCoordinates()
Returns the location of the dealer hand.
Returns:
a Coordinate representing the dealer hand location

getPlayerCoordinates

public static Coordinate getPlayerCoordinates(int index)
Returns the location of the specified player hand.
Parameters:
index - the index of specified player hand
Returns:
a Coordinate representing the specified player hand location

getDeckCoordinates

public static Coordinate getDeckCoordinates()
Returns the location of the deck.
Returns:
a Coordinate representing the deck location

getBalanceCoordinates

public static Coordinate getBalanceCoordinates()
Returns the location of the balance label.
Returns:
a Coordinate representing the balance label location

getGameBetCoordinates

public static Coordinate getGameBetCoordinates()
Returns the location of the bet label.
Returns:
a Coordinate representing the bet label location

getRaiseBetCoordinates

public static Coordinate getRaiseBetCoordinates()
Returns the location of the raise bet button.
Returns:
a Coordinate representing the raise bet button location

getLowerBetCoordinates

public static Coordinate getLowerBetCoordinates()
Returns the location of the lower bet button.
Returns:
a Coordinate representing the lower bet button location

getDecksLabelCoordinates

public static Coordinate getDecksLabelCoordinates()
Returns the location of the decks left label.
Returns:
a Coordinate representing the decks left label location

getDealCoordinates

public static Coordinate getDealCoordinates()
Returns the location of the deal button.
Returns:
a Coordinate representing the deal button location

getShuffleCoordinates

public static Coordinate getShuffleCoordinates()
Returns the location of the shuffle button.
Returns:
a Coordinate representing the shuffle button location

getOptionsCoordinates

public static Coordinate getOptionsCoordinates()
Returns the location of the house rules button.
Returns:
a Coordinate representing the house rules button location

getPreferencesCoordinates

public static Coordinate getPreferencesCoordinates()
Returns the location of the preferences button.
Returns:
a Coordinate representing the preferences button location

getDecksComboBoxCoordinates

public static Coordinate getDecksComboBoxCoordinates()
Returns the location of the decks select box.
Returns:
a Coordinate representing the decks select box location

getSoft17ComboBoxCoordinates

public static Coordinate getSoft17ComboBoxCoordinates()
Returns the location of the soft 17 select box.
Returns:
a Coordinate representing the soft 17 select box location

getDoubleAnyComboBoxCoordinates

public static Coordinate getDoubleAnyComboBoxCoordinates()
Returns the location of the double availability select box.
Returns:
a Coordinate representing the double availability select box location

getDASComboBoxCoordinates

public static Coordinate getDASComboBoxCoordinates()
Returns the location of the double after split select box.
Returns:
a Coordinate representing the double after split select box location

getSurrenderComboBoxCoordinates

public static Coordinate getSurrenderComboBoxCoordinates()
Returns the location of the surrender availability select box.
Returns:
a Coordinate representing the surrender availability select box location

getSaveOptionsCoordinates

public static Coordinate getSaveOptionsCoordinates()
Returns the location of the save house rules.
Returns:
a Coordinate representing the save house rules location

getAnimationComboBoxCoordinates

public static Coordinate getAnimationComboBoxCoordinates()
Returns the location of the animation speed select box.
Returns:
a Coordinate representing the animation speed select box location

getStrategyComboBoxCoordinates

public static Coordinate getStrategyComboBoxCoordinates()
Returns the location of the strategy tutor select box.
Returns:
a Coordinate representing the strategy tutor select box location

getAudioComboBoxCoordinates

public static Coordinate getAudioComboBoxCoordinates()
Returns the location of the audio select box.
Returns:
a Coordinate representing the audio select box location

getSavePreferencesCoordinates

public static Coordinate getSavePreferencesCoordinates()
Returns the location of the save preferences button.
Returns:
a Coordinate representing the save preferences button location

getStrategyLabelCoordinates

public static Coordinate getStrategyLabelCoordinates()
Returns the location of the basic strategy label.
Returns:
a Coordinate representing the basic strategy label location

Blackjack

Copyright © 2002 amoebacode.com.