Blackjack

com.amoebacode.blackjack.display.button
Class SaveButton

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.SaveButton
Direct Known Subclasses:
SaveOptionsButton, SavePreferencesButton

abstract class SaveButton
extends GameButton

SaveButton is the base class for the save house rules and save preferences buttons.

Version:
0.9
Author:
Jason Gurney

Field Summary
protected static int WIDTH
          The width of the button
 
Fields inherited from class com.amoebacode.blackjack.display.button.GameButton
game
 
Fields inherited from class com.amoebacode.blackjack.display.button.ButtonBase
button, buttonListener, HEIGHT
 
Fields inherited from class com.amoebacode.blackjack.display.DisplayElement
parent
 
Constructor Summary
protected SaveButton(GameDisplay game)
          Default protected constructor.
 
Method Summary
protected  int getWidth()
          Returns the width of the button.
 
Methods inherited from class com.amoebacode.blackjack.display.button.GameButton
actionPreamble, performAction, setupButton
 
Methods inherited from class com.amoebacode.blackjack.display.button.ButtonBase
activate, clear, disable, displayDisable, getButtonListener, getButtonText, getHeight, getToolTipText, getXPos, getYPos, 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
 

Field Detail

WIDTH

protected static final int WIDTH
The width of the button
Constructor Detail

SaveButton

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

getWidth

protected int getWidth()
Returns the width of the button.
Overrides:
getWidth in class ButtonBase
Returns:
the width in pixels

Blackjack

Copyright © 2002 amoebacode.com.