All Packages Class Hierarchy This Package Previous Next Index
Class tsadam.bowling.BowlingSolitairePanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----tsadam.bowling.BowlingSolitairePanel
- public class BowlingSolitairePanel
- extends Panel
- implements MouseListener, ActionListener
Presents one game (one player, one line)
of Bowling Solitaire.
-
darkColor
- The dark color of the three-color scheme.
-
lightColor
- The light color of the three-color scheme.
-
mediumColor
- The medium color of the three-color scheme.
-
BowlingSolitairePanel(Dimension)
-
Constructs a Bowling Solitaire panel.
-
actionPerformed(ActionEvent)
- Handles button presses.
-
getFont()
- Gets the font to use for presenting the game.
-
mouseClicked(MouseEvent)
- Handle mouse clicks.
-
mouseEntered(MouseEvent)
-
-
mouseExited(MouseEvent)
-
-
mousePressed(MouseEvent)
- Handle mouse presses.
-
mouseReleased(MouseEvent)
-
Handle mouse releases.
-
paint(Graphics)
- Paints the Bowling Solitaire panel.
darkColor
public static final Color darkColor
- The dark color of the three-color scheme.
Used for buttons.
mediumColor
public static final Color mediumColor
- The medium color of the three-color scheme.
Used for fallen pins, empty ball card piles
and the played cards table.
lightColor
public static final Color lightColor
- The light color of the three-color scheme.
Used for background color.
BowlingSolitairePanel
public BowlingSolitairePanel(Dimension d)
- Constructs a Bowling Solitaire panel.
- Parameters:
- d - Dimension of panel (width & height)
actionPerformed
public void actionPerformed(ActionEvent e)
- Handles button presses.
getFont
public Font getFont()
- Gets the font to use for presenting the game.
- Returns:
- the font to use.
- Overrides:
- getFont in class Component
mouseClicked
public void mouseClicked(MouseEvent e)
- Handle mouse clicks.
mouseEntered
public void mouseEntered(MouseEvent e)
mouseExited
public void mouseExited(MouseEvent e)
mousePressed
public void mousePressed(MouseEvent e)
- Handle mouse presses.
mouseReleased
public void mouseReleased(MouseEvent e)
- Handle mouse releases.
paint
public void paint(Graphics g)
- Paints the Bowling Solitaire panel.
- Parameters:
- g - graphics object for the
Bowling Solitaire panel.
- Overrides:
- paint in class Container
All Packages Class Hierarchy This Package Previous Next Index