Applet Interface

QTime may be embedded within your own web page with the following HTML tags:

<applet code="qTime.QTime.class" width=320 height=370>
<PARAM NAME="potential"  VALUE="20*(step(1+x)-step(x-1))" >
<PARAM NAME="real"  VALUE="cos(2*pi*x)*exp(-(x+4)*(x+4))" >
<PARAM NAME="imaginary"  VALUE="sin(2*pi*x)*exp(-(x+4)*(x+4))" >
<PARAM NAME="FPS" VALUE=10>
<PARAM NAME="dt" VALUE=0.02>
<PARAM NAME="numPts" VALUE=512>
<PARAM NAME="minX" VALUE=-10>
<PARAM NAME="maxX" VALUE=10>
<PARAM NAME="showControls" VALUE=true>
<PARAM NAME="helpFile" VALUE="QTimeHelp.html" >
<PARAM NAME="caption" VALUE="QTime" >
</APPLET>

where FPS, frames per second, may need to be adjusted to produce smooth animation on less powerful computers. The ShowControls parameter is designed to reduce the screen size of the Applet. This parameter allows the HTML programmer to hide the buttons displayed on the bottom of the applet.

QTime may be scripted using the following Java method calls:

Use the codebase tag if the QTime.class file is in a different directory than the HTML page that uses the applet. (See source for this page.) All Java packages used by QTime must be in subdirectories below the QTime.class file.

QTime.zip may be downloaded for noncommercial use by students and faculty at accredited not-for-profit educational institutions. The zip file being distribted is uncompresssed. It can be used with the new Netscape Archive tag. (See source code for this page.) The archive tag allows Netscape to download all the necessary files with a single HTTP request to the server. It is much faster than the standard download method which requires a HTTP request for each file. You should, however, keep copies of the uncompressed class files in the class directory so that browers that do not support the archive tag will be able to run the applet.

QTime was written using Java 1.01. It will be rewritten as a Java "Bean"using the newer (and better) Java event model avaliable in Java 1.1.