Class BingoCardView

java.lang.Object
  |
  +--DisplayPanel
        |
        +--BingoCardView

public class BingoCardView
extends DisplayPanel

View for a bingo card.

See Also:
Serialized Form

Constructor Summary
BingoCardView(BingoNumbers numbers)
          Constructs a new bingo card view using the given bingo numbers that have been called.
 
Method Summary
 boolean isBingo()
          Returns whether or not this has a bingo.
 void mark()
          Marks the called numbers on this.
 void newGame()
          Sets this card up for a new game.
protected  void paintComponent(Graphics g)
          Paints this to the given graphics context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BingoCardView

public BingoCardView(BingoNumbers numbers)
Constructs a new bingo card view using the given bingo numbers that have been called.

Parameters:
numbers - object storing numbers that have been called
Method Detail

newGame

public void newGame()
Sets this card up for a new game.


mark

public void mark()
Marks the called numbers on this.


isBingo

public boolean isBingo()
Returns whether or not this has a bingo.


paintComponent

protected void paintComponent(Graphics g)
Paints this to the given graphics context.

Parameters:
g - context to which to paint