|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Panel
|
+--java.applet.Applet
|
+--javax.swing.JApplet
|
+--MeshDemoApplet
Wrapper applet for MeshDemo. It enables MEshDemo to be run as an applet.
MeshDemo then loads the mesh files specified by the applet parameters,
see below.
Example Applet parameter tag:
<PARAM NAME="meshname0" VALUE="First Mesh" > <PARAM NAME="meshfile0" VALUE="meshes/box.mesh" > <PARAM NAME="meshname1" VALUE="Second Mesh" > <PARAM NAME="meshfile1" VALUE="meshes/house.mesh" > <PARAM NAME="meshname2" VALUE="Third Mesh" > <PARAM NAME="meshfile2" VALUE="meshes/plane.mesh" >
| Inner classes inherited from class javax.swing.JApplet |
JApplet.AccessibleJApplet |
| Inner classes inherited from class java.awt.Component |
Component.AWTTreeLock |
| Field Summary | |
private MeshDemo |
demo
The program. |
private Map |
meshes
A set of (JMenuItem,URL) pairs. |
static String |
PARAM_MESHFILE_PREFIX
The prefix of the mesh file parameter. |
static String |
PARAM_MESHNAME_PREFIX
The prefix of the mesh name parameter. |
| Fields inherited from class javax.swing.JApplet |
accessibleContext,
rootPane,
rootPaneCheckingEnabled |
| Fields inherited from class java.applet.Applet |
serialVersionUID,
stub |
| Fields inherited from class java.awt.Panel |
base,
nameCounter,
serialVersionUID |
| Fields inherited from class java.awt.Container |
component,
containerListener,
containerSerializedDataVersion,
dispatcher,
layoutMgr,
maxSize,
ncomponents,
serialVersionUID |
| Constructor Summary | |
MeshDemoApplet()
Constructs the applet |
|
| Method Summary | |
void |
actionPerformed(ActionEvent e)
|
String |
getAppletInfo()
|
String[][] |
getParameterInfo()
|
void |
init()
Initializes the applet. |
void |
loadMesh(URL mesh)
Loads a mesh file. |
static void |
main(String[] args)
Just calls MeshDemo.main(). |
| Methods inherited from class javax.swing.JApplet |
addImpl,
createRootPane,
createRootPaneException,
getAccessibleContext,
getContentPane,
getGlassPane,
getJMenuBar,
getLayeredPane,
getRootPane,
isRootPaneCheckingEnabled,
paramString,
processKeyEvent,
remove,
setContentPane,
setGlassPane,
setJMenuBar,
setLayeredPane,
setLayout,
setRootPane,
setRootPaneCheckingEnabled,
update |
| Methods inherited from class java.applet.Applet |
destroy,
getAppletContext,
getAudioClip,
getAudioClip,
getCodeBase,
getDocumentBase,
getImage,
getImage,
getLocale,
getParameter,
isActive,
newAudioClip,
play,
play,
resize,
resize,
setStub,
showStatus,
start,
stop |
| Methods inherited from class java.awt.Panel |
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
| Field Detail |
private Map meshes
private MeshDemo demo
public static final String PARAM_MESHNAME_PREFIX
public static final String PARAM_MESHFILE_PREFIX
| Constructor Detail |
public MeshDemoApplet()
| Method Detail |
public void init()
public void actionPerformed(ActionEvent e)
public void loadMesh(URL mesh)
mesh - URL to the mesh file.public String getAppletInfo()
public String[][] getParameterInfo()
public static void main(String[] args)
throws IOException
MeshDemo.main(java.lang.String[])
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||