background
Class House

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

public class House
extends Background

A background representing a house.


Field Summary
 
Fields inherited from class background.Background
externalName, height, width, xCoor, yCoor
 
Constructor Summary
House(double x, double y, double w, double h)
          Initialize attributes for this House
 
Method Summary
 void draw(java.awt.Graphics2D g)
          Use the graphics system to draw the shapes representing this House
 
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

House

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

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

draw

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

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