|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--java.applet.Applet
Base applet class.
Field Summary |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Applet()
|
Method Summary | |
void |
destroy()
Cleans up whatever resources are being held. |
AppletContext |
getAppletContext()
Gets a handle to the applet context. |
String |
getAppletInfo()
Returns a string containing information about the author, version and copyright of the applet. |
AudioClip |
getAudioClip(URL url)
Gets an audio clip. |
AudioClip |
getAudioClip(URL url,
String name)
Gets an audio clip. |
URL |
getCodeBase()
Gets the base URL. |
URL |
getDocumentBase()
Gets the document URL. |
Image |
getImage(URL url)
Gets an image given a URL. |
Image |
getImage(URL url,
String name)
Gets an image relative to a URL. |
String |
getParameter(String name)
Gets a parameter of the applet. |
String[][] |
getParameterInfo()
Returns an array of strings describing the parameters that are understood by this applet. |
void |
init()
Initializes the applet. |
boolean |
isActive()
Returns true if the applet is active. |
void |
play(URL url)
Plays an audio clip. |
void |
play(URL url,
String name)
Plays an audio clip. |
void |
resize(Dimension d)
Requests thatthe applet be resized. |
void |
resize(int width,
int height)
Requests that the applet be resized. |
void |
setStub(AppletStub stub)
Sets the applet stub. |
void |
showStatus(String msg)
Shows a status message in the applet's context. |
void |
start()
Called to start the applet. |
void |
stop()
Called to stop the applet. |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.awt.Container |
add, add, add, countComponents, deliverEvent, getComponent, getComponents, getLayout, insets, layout, list, locate, minimumSize, paintComponents, paramString, preferredSize, printComponents, remove, removeAll, removeNotify, setLayout, validate |
Methods inherited from class java.awt.Component |
action, bounds, checkImage, checkImage, createImage, createImage, disable, enable, enable, getBackground, getColorModel, getFont, getFontMetrics, getForeground, getGraphics, getParent, getPeer, getToolkit, gotFocus, handleEvent, hide, imageUpdate, inside, invalidate, isEnabled, isShowing, isValid, isVisible, keyDown, keyUp, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, prepareImage, prepareImage, print, printAll, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setFont, setForeground, show, show, size, toString, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Applet()
Method Detail |
public final void setStub(AppletStub stub)
public boolean isActive()
start()
public URL getDocumentBase()
getCodeBase()
public URL getCodeBase()
getDocumentBase()
public String getParameter(String name)
public AppletContext getAppletContext()
public void resize(int width, int height)
resize
in class Component
width
- the width of the componentheight
- the height of the componentComponent.size()
,
Component.reshape(int, int, int, int)
public void resize(Dimension d)
resize
in class Component
d
- the component dimensionComponent.size()
,
Component.reshape(int, int, int, int)
public void showStatus(String msg)
public Image getImage(URL url)
public Image getImage(URL url, String name)
getImage(java.net.URL)
public AudioClip getAudioClip(URL url)
public AudioClip getAudioClip(URL url, String name)
getAudioClip(java.net.URL)
public String getAppletInfo()
public String[][] getParameterInfo()
String pinfo[][] = { {"fps", "1-10", "frames per second"}, {"repeat", "boolean", "repeat image loop"}, {"imgs", "url", "directory in which the images live"} };
public void play(URL url)
public void play(URL url, String name)
public void init()
start()
,
stop()
,
destroy()
public void start()
init()
,
stop()
,
destroy()
public void stop()
init()
,
start()
,
destroy()
public void destroy()
init()
,
start()
,
stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |