Blackjack

com.amoebacode.blackjack.display.button
Class RaiseBetButton

java.lang.Object
  |
  +--com.amoebacode.blackjack.display.DisplayElement
        |
        +--com.amoebacode.blackjack.display.button.ButtonBase
              |
              +--com.amoebacode.blackjack.display.button.GameButton
                    |
                    +--com.amoebacode.blackjack.display.button.RaiseBetButton

class RaiseBetButton
extends GameButton

RaiseBetButton manages the Raise Bet user button.

Version:
0.9
Author:
Jason Gurney

Fields inherited from class com.amoebacode.blackjack.display.button.GameButton
game
 
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 RaiseBetButton(GameDisplay game)
          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 getXPos()
          Returns the horizontal position of the button.
protected  int getYPos()
          Returns the vertical position of the button.
 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.GameButton
actionPreamble, 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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

RaiseBetButton

protected RaiseBetButton(GameDisplay game)
Default protected constructor.
Parameters:
game - the GameDisplay parent
Method Detail

getButtonText

protected java.lang.String getButtonText()
Description copied from class: ButtonBase
Returns the button text.
Overrides:
getButtonText in class ButtonBase
See Also:
ButtonBase.getButtonText()

getXPos

protected int getXPos()
Description copied from class: ButtonBase
Returns the horizontal position of the button.
Overrides:
getXPos in class ButtonBase
See Also:
ButtonBase.getXPos()

getYPos

protected int getYPos()
Description copied from class: ButtonBase
Returns the vertical position of the button.
Overrides:
getYPos in class ButtonBase
See Also:
ButtonBase.getYPos()

performAction

public void performAction()
Description copied from class: GameButton
Performs the action associated with the button (called when it is clicked by the user).
Overrides:
performAction in class GameButton
See Also:
GameButton.performAction()

getToolTipText

protected java.lang.String getToolTipText()
Description copied from class: ButtonBase
Returns the help text that appears when the user mouses over the button.
Overrides:
getToolTipText in class ButtonBase
See Also:
ButtonBase.getToolTipText()

Blackjack

Copyright © 2002 amoebacode.com.