Class House
- public class House
Contains methods for drawing a house, and simulating an
earthquake...
- Version:
- $Id: House.java,v 1.5 2001/04/16 05:15:49 administrator Exp $
- Author:
- Ben Dugan
House
public House()
drawHouse
public static void drawHouse()
- Draw the house.
drawFrame
public static void drawFrame()
- Draw the frame of the house.
drawTree
public static void drawTree()
- Draw the tree.
drawWindow
public static void drawWindow(int x,
int y,
int width,
int height)
- Draw a window of the given size at the given location.
drawTree
public static void drawTree(int x,
int y,
int trunkWidth,
int trunkHeight,
int crownWidth,
int crownHeight)
- Draw a tree provided the given dimensions.
- Parameters:
x
- the x coord of the center of the base of the trunky
- the y coord of the center of the base of the trunktrunkWidth
- the width of the trunk etc etc. . .
drawTree
public static void drawTree(double x,
double y,
double angle,
double length)
- Draw a fractal tree.
earthQuake
public static void earthQuake()
- Simulate the earthquake.
main
public static void main(java.lang.String[] args)