Class MeshDemoApplet

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--MeshDemoApplet

public final class MeshDemoApplet
extends JApplet
implements ActionListener

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" >

See Also:
Serialized Form

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
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
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
, addNotify, constructComponentName
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyOrientation, countComponents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getCursorTarget, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, nextFocus, paint, paintComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printOneComponent, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, remove, removeAll, removeContainerListener, removeNotify, setCursor, setFocusOwner, setFont, transferFocus, updateCursor, validate, validateTree, writeObject
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getIntrinsicCursor, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

meshes

private Map meshes
A set of (JMenuItem,URL) pairs.

demo

private MeshDemo demo
The program.

PARAM_MESHNAME_PREFIX

public static final String PARAM_MESHNAME_PREFIX
The prefix of the mesh name parameter.

PARAM_MESHFILE_PREFIX

public static final String PARAM_MESHFILE_PREFIX
The prefix of the mesh file parameter.
Constructor Detail

MeshDemoApplet

public MeshDemoApplet()
Constructs the applet
Method Detail

init

public void init()
Initializes the applet.
Overrides:
init in class Applet

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

loadMesh

public void loadMesh(URL mesh)
Loads a mesh file.
Parameters:
mesh - URL to the mesh file.

getAppletInfo

public String getAppletInfo()
Overrides:
getAppletInfo in class Applet

getParameterInfo

public String[][] getParameterInfo()
Overrides:
getParameterInfo in class Applet

main

public static void main(String[] args)
                 throws IOException
Just calls MeshDemo.main().
See Also:
MeshDemo.main(java.lang.String[])