background
Class BaseballField

java.lang.Object
  |
  +--background.Background
        |
        +--background.BaseballField

public class BaseballField
extends Background

A background representing a baseball field.


Field Summary
 
Fields inherited from class background.Background
externalName, height, width, xCoor, yCoor
 
Constructor Summary
BaseballField(double x, double y, double w, double h)
          Initialize attributes for this BaseballField
 
Method Summary
 void draw(java.awt.Graphics2D g)
          Use the graphics system to draw the shapes representing this BaseballField
 
Methods inherited from class background.Background
getHeight, getName, getWidth, getX, getY, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseballField

public BaseballField(double x,
                     double y,
                     double w,
                     double h)
Initialize attributes for this BaseballField

Parameters:
x - x-coordinate of this BaseballField (leftmost position of background)
y - y-coordinate of this BaseballField (uppermost position of background)
w - width of this BaseballField
h - height of this BaseballField
Method Detail

draw

public void draw(java.awt.Graphics2D g)
Use the graphics system to draw the shapes representing this BaseballField

Specified by:
draw in class Background
Parameters:
g - the graphics system to use