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.


Variable Index

 o component
 o size

Constructor Index

 o Background(Component)
Background class constructor method - sets background size

Method Index

 o draw(Graphics)
Draw Background in a single color
 o getSize()
Returns Background size

Variables

 o component
 protected Component component
 o size
 protected Dimension size

Constructors

 o Background
 public Background(Component comp)
Background class constructor method - sets background size

Methods

 o getSize
 public Dimension getSize()
Returns Background size

 o draw
 public void draw(Graphics g)
Draw Background in a single color