animation.tr

Class MainApplet

Implemented Interfaces:
Runnable

public class MainApplet
extends Applet
implements Runnable

Class MainApplet is the main class for the applet

Field Summary

private static Thread
mainThread
private Image
monitorNode
private Image
normalNode
private static ResourceBundle
res

Method Summary

static ResourceBundle
getResourceBundle()
static ThreadGroup
getThreadGroup()
void
init()
Initializes the applet and loads the gifs
private void
openWindow()
Opens the main frame for the simulation
void
paint(Graphics g)
Sets font and text for the applet window
void
run()
private void
showHelp()
Opens a new HTML-page with help TODO: This might not work, especially if the appletviewer is used, solution: open a new window and display the text in it
void
start()
void
stop()

Field Details

mainThread

private static Thread mainThread

monitorNode

private Image monitorNode

normalNode

private Image normalNode

res

private static ResourceBundle res

Method Details

getResourceBundle

public static ResourceBundle getResourceBundle()

getThreadGroup

public static ThreadGroup getThreadGroup()

init

public void init()
Initializes the applet and loads the gifs

openWindow

private void openWindow()
Opens the main frame for the simulation

paint

public void paint(Graphics g)
Sets font and text for the applet window

run

public void run()

showHelp

private void showHelp()
Opens a new HTML-page with help TODO: This might not work, especially if the appletviewer is used, solution: open a new window and display the text in it

start

public void start()

stop

public void stop()