All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.awt.Component | +----java.awt.Container | +----java.awt.Panel | +----java.applet.Applet | +----cs005.app.App
Empty constructor.
This method is redefined to return the offscreen buffer.
This method is called by the KeyInteractors to access the KeyPressManager.
This method is called automatically by the appletViewer after the constructor is called.
This method draws the offscreen buffer onto the Graphics object that was passed to the method.
This overrides Container.repaint and will copy the offscreen buffer to the onscreen buffer.
This method is called by the thread running in the background.
This method will copy the offscreen buffer to the onscreen buffer.
This method is called automatically by the appletViewer after the init() method is called.
This method destroys the thread that is running in the backrground.
public App()
Empty constructor.
public void init()
This method is called automatically by the appletViewer after the constructor
is called.
It sets the background, and creates the offscreen buffer and KeyPressManager.
public void start()
This method is called automatically by the appletViewer after the init()
method is called.
It starts up a thread that runs in the background.
public void stop()
This method destroys the thread that is running in the backrground. At this time calling stop has no effect on the App.
public void paint(Graphics g)
This method draws the offscreen buffer onto the Graphics object that was passed to the method.
public Graphics getGraphics()
This method is redefined to return the offscreen buffer.
public void showDrawn()
This method will copy the offscreen buffer to the onscreen buffer.
public void run()
This method is called by the thread running in the background.
Unfortunately, it is empty
public void repaint()
This overrides Container.repaint and will copy the offscreen buffer to the onscreen buffer.
public KeyPressManager getManager()
This method is called by the KeyInteractors to access the KeyPressManager.
All Packages Class Hierarchy This Package Previous Next Index