All Packages Class Hierarchy This Package Previous Next Index
Class tsadam.bowling.BowlingScoreCanvas
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----tsadam.bowling.BowlingScoreCanvas
- public class BowlingScoreCanvas
- extends Canvas
Presents a bowling score line (one game by one player).
-
BowlingScoreCanvas(BowlingScore)
- Constructs a new graphical bowling score line.
-
BowlingScoreCanvas(BowlingScore, int, int)
- Constructs a new graphical bowling score line.
-
paint(Graphics)
- Paints the bowling score canvas.
-
updateThis(boolean)
- Updates the bowling score canvas display.
BowlingScoreCanvas
public BowlingScoreCanvas(BowlingScore bs,
int w,
int h)
- Constructs a new graphical bowling score line.
- Parameters:
- bs - the bowling score
- w - width of bowling score canvas
- h - height of bowling score canvas
- See Also:
- BowlingScore, Canvas
BowlingScoreCanvas
public BowlingScoreCanvas(BowlingScore bs)
- Constructs a new graphical bowling score line.
- Parameters:
- bs - the bowling score
- See Also:
- BowlingScore, Canvas
paint
public void paint(Graphics g)
- Paints the bowling score canvas.
- Parameters:
- g - graphics object for the bowling score canvas
- Overrides:
- paint in class Canvas
updateThis
public void updateThis(boolean clear)
- Updates the bowling score canvas display.
- Parameters:
- clear - true = clear the canvas before updating;
false = do not clear the canvas before updating.
All Packages Class Hierarchy This Package Previous Next Index