|
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.CardDisplay
CardDisplay handles the display of a single card.
| Field Summary | |
private ICard |
card
The card being displayed |
private javax.swing.JLabel |
label
The label used to display this card |
| Fields inherited from class com.amoebacode.blackjack.display.DisplayElement |
parent |
| Constructor Summary | |
protected |
CardDisplay(HandDisplay hand,
ICard card)
Default protected constructor. |
| Method Summary | |
void |
clear()
Removes this card from the primary layered pane. |
boolean |
equalsCard(ICard otherCard)
Indicates whether the card being displayed is equal to the specified card. |
int |
getIconHeight()
Returns the height of this card's image. |
int |
getIconWidth()
Returns the width of this card's image. |
private java.lang.String |
getImageName()
Returns the filename of the image that corresponds to this card. |
javax.swing.JLabel |
getLabel()
Returns the label used to display this card. |
void |
hide()
Hides this card. |
private void |
setupCardLabel()
Sets up the card label for this display. |
| 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 ICard card
private javax.swing.JLabel label
| Constructor Detail |
protected CardDisplay(HandDisplay hand,
ICard card)
hand - the parent HandDisplaycard - the ICard being displayed| Method Detail |
private void setupCardLabel()
public int getIconWidth()
public int getIconHeight()
public void hide()
public void clear()
public javax.swing.JLabel getLabel()
private java.lang.String getImageName()
public boolean equalsCard(ICard otherCard)
otherCard - the ICard being compared
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||