Blackjack

com.amoebacode.blackjack.display.label
Class BalanceLabel

java.lang.Object
  |
  +--com.amoebacode.blackjack.display.DisplayElement
        |
        +--com.amoebacode.blackjack.display.label.LabelWrapper
              |
              +--com.amoebacode.blackjack.display.label.BalanceLabel
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

class BalanceLabel
extends LabelWrapper

BalanceLabel displays the user's current cash position.

Version:
0.9
Author:
Jason Gurney

Fields inherited from class com.amoebacode.blackjack.display.label.LabelWrapper
BLINK_DELAY, BLINK_TIMES, blinkCount, blinkOn, isBlinking, label, LABEL_HEIGHT, LABEL_WIDTH, timer
 
Fields inherited from class com.amoebacode.blackjack.display.DisplayElement
parent
 
Constructor Summary
protected BalanceLabel(java.lang.String text, GameDisplay game)
          Default protected constructor.
 
Method Summary
protected  int getXPos()
          Returns the horizontal position of the select box.
protected  int getYPos()
          Returns the vertical position of the select box.
protected  void setupLabel(java.lang.String text)
          Creates the label display element with the specified text and adds it to the layered pane.
 
Methods inherited from class com.amoebacode.blackjack.display.label.LabelWrapper
actionPerformed, blinkOff, blinkOn, blinks, clear, getBlinkDelay, getBlinkTimes, getLabelFont, getLabelHeight, getLabelWidth, setBackground, setText, setupLabel, setVisible, startBlinking, stopBlinking, updateLocation
 
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

BalanceLabel

protected BalanceLabel(java.lang.String text,
                       GameDisplay game)
Default protected constructor.
Parameters:
text - the String to insert into the label
game - the GameDisplay parent
Method Detail

setupLabel

protected void setupLabel(java.lang.String text)
Description copied from class: LabelWrapper
Creates the label display element with the specified text and adds it to the layered pane.
Overrides:
setupLabel in class LabelWrapper
See Also:
LabelWrapper.setupLabel(String)

getXPos

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

getYPos

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

Blackjack

Copyright © 2002 amoebacode.com.