//resides in default package.
/*
* (C) ELRIDEV SOFTWARE, 1999. ALL RIGHTS RESERVED.
* THIS SOFTWARE IS THE PROPERTY OF ELRIDEV SOFTWARE, YOU CAN USE THIS SOFTWARE
* ON YOUR WEBPAGE (OR USE THE SOURCE FOR LEARNING JAVA), IT PROVIDED AS AN EXAMPLE,
* WITH NO WARRANTIES WHATSOEVER, SHOULD ANY DAMAGE OCCUR FROM THE USE OF THIS
* PRODUCT ELRIDEV WILL BE HELD IN NO WAY LIABLE FOR DAMAGES.
* YOU CAN ALSO MODIFY THIS CODE FOR YOU OWN PURPOSES, HOWEVER ONCE THIS IS DONE
* YOU MUST INDICATE THAT THESE CHANGES HAVE BEEN MADE, SHOULD YOU WISH IT REMAIN
* FREELY AVAILABLE.
*/
import java.applet.*;
import java.awt.*;
import java.net.*;
/**
* click button, used on a html page as an applet, it will rotate between 2
* images, looking like the image is turning round. the image is configured
* by applet parameters. these are as follows:
*
* ClickNoise the au file to play when clicked.
* EnterNoise the au file to play when mouse is over item
* ImageSrc the first image to rotate
* ImageDest the other image to rotate
* ImageBack use this to set an image background
* ImageBkCol use this to set a background colour
* URLName the name of the URL associated with the button
*
* @version Thor
* @author Dave Cherry
*/
public class ClickBtn extends Applet implements Runnable
{
// THREAD SUPPORT:
// m_ClickBtn is the Thread object for the applet
//--------------------------------------------------------------------------
private Thread m_ClickBtn = null;
final int mainZoomIn=1;
final int mainZoomOut=2;
final int destZoomIn=3;
final int destZoomOut=4;
final int restartZoom=5;
// all my class specifics are here
AudioClip audClicked,audEntered;
Image imgMain,imgDest;
boolean bEntered,bClicked;
double dfCurrentMag,magFactor=0.1;
int iCurrentState;
Image offScreenImage;
Image backImage;
// PARAMETER SUPPORT:
// Parameters allow an HTML author to pass information to the applet;
// the HTML author specifies them using the tag within the