|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.amoebacode.blackjack.display.DisplayElement
|
+--com.amoebacode.blackjack.display.button.ButtonBase
|
+--com.amoebacode.blackjack.display.button.HandButton
|
+--com.amoebacode.blackjack.display.button.StandButton
StandButton manages the Stand user button.
| Field Summary | |
private static int |
Y_OFFSET
The vertical distance between this button and its player hand |
| Fields inherited from class com.amoebacode.blackjack.display.button.HandButton |
playerHand |
| Fields inherited from class com.amoebacode.blackjack.display.button.ButtonBase |
button, buttonListener, HEIGHT, WIDTH |
| Fields inherited from class com.amoebacode.blackjack.display.DisplayElement |
parent |
| Constructor Summary | |
protected |
StandButton(PlayerHandDisplay playerHand)
Default protected constructor. |
| Method Summary | |
protected java.lang.String |
getButtonText()
Returns the button text. |
protected java.lang.String |
getToolTipText()
Returns the help text that appears when the user mouses over the button. |
protected int |
getYOffset()
Returns the vertical distance between this button and the player hand. |
void |
performAction()
Performs the action associated with the button (called when it is clicked by the user). |
| Methods inherited from class com.amoebacode.blackjack.display.button.HandButton |
actionPreamble, getPlayerHand, getXPos, getYPos, setupButton |
| Methods inherited from class com.amoebacode.blackjack.display.button.ButtonBase |
activate, clear, disable, displayDisable, getButtonListener, getHeight, getWidth, hide, setMouseEnteredBackground, setMouseExitedBackground |
| Methods inherited from class com.amoebacode.blackjack.display.DisplayElement |
executeGameCommand, getDisplayManager, getGameDisplay, getParent, hasParent, playGameClip, queueAction, resumeQueue |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final int Y_OFFSET
| Constructor Detail |
protected StandButton(PlayerHandDisplay playerHand)
playerHand - the PlayerHandDisplay parent| Method Detail |
protected java.lang.String getButtonText()
ButtonBasegetButtonText in class ButtonBaseButtonBase.getButtonText()protected int getYOffset()
HandButtongetYOffset in class HandButtonHandButton.getYOffset()public void performAction()
HandButtonperformAction in class HandButtonHandButton.performAction()protected java.lang.String getToolTipText()
ButtonBasegetToolTipText in class ButtonBaseButtonBase.getToolTipText()
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||