All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class taxman.Taxman

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----taxman.Taxman

public class Taxman
extends Applet
implements MediaObserver
This applet is the main layout manager for the Taxman game. All the control an setup is done in smaller classes but this one loads files from the server and lays out the big picture.


Constructor Index

 o Taxman()
The constructor creates a new game but does not UI work.

Method Index

 o init()
Initializes and sets up all UI components.
 o itemLoaded(MediaRecord)
Updates the screen when each image is loaded.
 o loadingFinished(MediaRecord[])
 o main(String[])
Testing function.

Constructors

 o Taxman
 public Taxman()
The constructor creates a new game but does not UI work.

Methods

 o init
 public void init()
Initializes and sets up all UI components. It also loads the media (graphics and audio) files

Overrides:
init in class Applet
 o itemLoaded
 public void itemLoaded(MediaRecord mr)
Updates the screen when each image is loaded.

Parameters:
mr - The media record that was last loaded
 o loadingFinished
 public void loadingFinished(MediaRecord mr[])
 o main
 public static void main(String args[])
Testing function. It creates a frame and runs the applet in that frame.


All Packages  Class Hierarchy  This Package  Previous  Next  Index