/*
* @(#)AppletStub.java 1.7 95/09/16 Arthur van Hoff
*
* Copyright (c) 1994-1995 Sun Microsystems, Inc. All Rights Reserved.
*
* Permission to use, copy, modify, and distribute this software
* and its documentation for NON-COMMERCIAL purposes and without
* fee is hereby granted provided that this copyright notice
* appears in all copies. Please refer to the file "copyright.html"
* for further important copyright and licensing information.
*
* SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
* THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
* ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
* DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
*/
package java.applet;
import java.net.URL;
/**
* Applet stub. This interface is used to implement an
* applet viewer. It is not normally used by applet programmers.
*
* @version 1.7, 16 Sep 1995
* @author Arthur van Hoff
*/
public interface AppletStub {
/**
* Returns true if the applet is active.
*/
boolean isActive();
/**
* Gets the document URL.
*/
URL getDocumentBase();
/**
* Gets the base URL.
*/
URL getCodeBase();
/**
* Gets a paramater of the applet.
*/
String getParameter(String name);
/**
* Gets a handler to the applet's context.
*/
AppletContext getAppletContext();
/**
* Is called when the applet wants to be resized.
*/
void appletResize(int width, int height);
}