public void start()
{
load_gifs();
if(killme == null)
{
killme = new Thread(this);
killme.start();
}
}
public void stop()
{
killme = null;
}
public boolean mouseUp(Event event, int i, int j)
{
if(pageurl != null)
try
{
getAppletContext().showDocument(new URL(getDocumentBase(), pageurl));
}
catch(Exception _ex)
{
System.out.println("WavyText Error: Could not show page");
}
return true;
}
public boolean mouseEnter(Event event, int i, int j)
{
requestFocus();
if(pageurl != null)
getAppletContext().showStatus(pageurl);
else
getAppletContext().showStatus("");
return true;
}
public boolean mouseExit(Event event, int i, int j)
{
getAppletContext().showStatus("");
return true;
}
public boolean keyDown(Event event, int i)
{
paused = !paused;
return true;
}
public WavyText()
{
paused = false;
}
Image gif;
Image gifsec[];
Image curpic;
Graphics curpicgr;
float ang;
float theta;
String pageurl;
int delay;
int strip;
int xoffset;
int peak;
Thread killme;
boolean paused;