Class Background
java.lang.Object
|
+----Background
- public class Background
- extends Object
This class is used as the basis of the game background.
This class is taken directly from the book "Teach yourself
Internet Game Programming with Java in 21 days" by Michael Morrison.
See chapter 6 for details.
-
component
-
-
size
-
-
Background(Component)
- Background class constructor method - sets background size
-
draw(Graphics)
- Draw Background in a single color
-
getSize()
- Returns Background size
component
protected Component component
size
protected Dimension size
Background
public Background(Component comp)
- Background class constructor method - sets background size
getSize
public Dimension getSize()
- Returns Background size
draw
public void draw(Graphics g)
- Draw Background in a single color