Blackjack

com.amoebacode.blackjack.display.label
Class CurrentScoreLabel

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

class CurrentScoreLabel
extends LabelWrapper

CurrentScoreLabel displays the current score of its corresponding hand.

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 CurrentScoreLabel(HandDisplay handDisplay)
          Default protected constructor.
 
Method Summary
private  HandDisplay getHandDisplay()
          Returns the hand display being tracked by this label.
protected  int getXPos()
          Returns the horizontal position of the select box.
protected  int getYPos()
          Returns the vertical position of the select box.
 
Methods inherited from class com.amoebacode.blackjack.display.label.LabelWrapper
actionPerformed, blinkOff, blinkOn, blinks, clear, getBlinkDelay, getBlinkTimes, getLabelFont, getLabelHeight, getLabelWidth, setBackground, setText, setupLabel, 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

CurrentScoreLabel

protected CurrentScoreLabel(HandDisplay handDisplay)
Default protected constructor.
Parameters:
hand - the Hand being tracked by this label
Method Detail

getHandDisplay

private HandDisplay getHandDisplay()
Returns the hand display being tracked by this label.
Returns:
the HandDisplay parent

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.