|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
ucar.unidata.idv.control.AppletFrame
public class AppletFrame
Class for supporting applets. Doesn't work yet
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
AppletFrame(Applet a,
int w,
int h,
String baseDirPath,
Hashtable params)
Construct an AppletFrame. |
|
| Method Summary | |
|---|---|
void |
appletResize(int width,
int height)
Resize the applet to the width and height |
Applet |
getApplet(String name)
Get the applet of said name |
AppletContext |
getAppletContext()
Get the applet's context |
Enumeration |
getApplets()
Get an enumeration of the applets. |
AudioClip |
getAudioClip(URL url)
Get the audio clip at the location specified. |
URL |
getCodeBase()
Get the code base |
URL |
getDocumentBase()
Get the document base |
Image |
getImage(URL url)
Get the image at the url |
String |
getParameter(String name)
Get a parameter from the list of parameters |
InputStream |
getStream(String key)
Get the InputStream for the given key |
Iterator |
getStreamKeys()
Get the keys for a given stream |
boolean |
isActive()
See if the applet is active |
void |
setStream(String key,
InputStream stream)
Set the input stream for the given key |
void |
showDocument(URL url)
Show the document at the location specified |
void |
showDocument(URL url,
String target)
Show the document at the url with the target |
void |
showStatus(String status)
Show the status of this applet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AppletFrame(Applet a,
int w,
int h,
String baseDirPath,
Hashtable params)
a - the appletw - width of the frameh - height of the framebaseDirPath - base directory pathparams - applet parameters| Method Detail |
|---|
public void appletResize(int width,
int height)
appletResize in interface AppletStubwidth - new widthheight - new heightpublic AppletContext getAppletContext()
getAppletContext in interface AppletStubpublic URL getCodeBase()
getCodeBase in interface AppletStubpublic URL getDocumentBase()
getDocumentBase in interface AppletStubpublic String getParameter(String name)
getParameter in interface AppletStubname - name of the parameter
public boolean isActive()
isActive in interface AppletStubpublic Image getImage(URL url)
getImage in interface AppletContexturl - location of image
public void showStatus(String status)
showStatus in interface AppletContextstatus - applet statuspublic Applet getApplet(String name)
getApplet in interface AppletContextname - name of the applet
public Enumeration getApplets()
getApplets in interface AppletContextpublic AudioClip getAudioClip(URL url)
getAudioClip in interface AppletContexturl - location of clip
public void showDocument(URL url)
showDocument in interface AppletContexturl - document location
public void showDocument(URL url,
String target)
showDocument in interface AppletContexturl - document URLtarget - targetpublic InputStream getStream(String key)
getStream in interface AppletContextkey - key for stream
public Iterator getStreamKeys()
getStreamKeys in interface AppletContext
public void setStream(String key,
InputStream stream)
setStream in interface AppletContextkey - key to usestream - stream for key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||