dzzd
Class DzzDApplet

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended bydzzd.DzzDApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
DzzDJSApplet

public class DzzDApplet
extends java.applet.Applet

DzzDApplet provide an easy way to implements 3DzzD API Applet.

Overview:

This class will create and initialise a main Render3D.

This class provide three methods and you should overload at least one of them.

Methods overload overview and events order:

1 - Main Render3D is created.

2 - The method init3DzzD() is called : you can overload it to perform initialision and/or register a Render3DCallBack using the main Render3D.

3 - Main Render3D is started.

4 - The method start3DzzD() is called : you can overload it to perform other initialision and/or register a Render3DCallBack using the main Render3D.

5 - Applet is running : the main Render3D calls its Render3DCallBack events methods until user request to close browser/appletviever.

6 - Main Render3D is stopped.

7 - The method destroy3DzzD() is called : you can overload it to perform whatever you want before exiting.

Since:
1.0
Version:
1.0, 01/01/04
Author:
Bruno Augier
See Also:
DzzDJSApplet, Serialized Form

Field Summary
 
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
DzzDApplet()
           
 
Method Summary
 void destroy()
          Called by appletviewer/browser just before removing this applet.
 void destroy3DzzD()
          This method will be called just before removing this applet from memory.
 java.lang.String getAppletInfo()
          Gets Applet information.
 java.lang.String getBaseURL()
          Return applet base URL.
 int getHeight()
          Return applet height.
 IRender3D getRender3D()
          Return the main Render3D.
 int getWidth()
          Return applet width.
 void init3DzzD()
          This method will be called when main Render3D has been created and just before it start.
 void start()
          Called by appletviewer/browser when applet must start or resume.
 void start3DzzD()
          This method will be called when main Render3D has been created and just after it start.
 
Methods inherited from class java.applet.Applet
getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DzzDApplet

public DzzDApplet()
Method Detail

getRender3D

public final IRender3D getRender3D()
Return the main Render3D.

Returns:
the main Render3D initialised when Applet started.

getBaseURL

public final java.lang.String getBaseURL()
Return applet base URL.

Returns:
a string representation of the location of this applet as an URL.

start

public final void start()
Called by appletviewer/browser when applet must start or resume.


destroy

public final void destroy()
Called by appletviewer/browser just before removing this applet.


getAppletInfo

public final java.lang.String getAppletInfo()
Gets Applet information.

Returns:
a string with applet information.

getWidth

public final int getWidth()
Return applet width.

Returns:
applet width

getHeight

public final int getHeight()
Return applet height.

Returns:
applet height

init3DzzD

public void init3DzzD()
This method will be called when main Render3D has been created and just before it start. You may overload this method to initialise 3D scene and register Render3DCallBack.


start3DzzD

public void start3DzzD()
This method will be called when main Render3D has been created and just after it start. You may overload this method to initialise 3D scene and register Render3DCallBack.


destroy3DzzD

public void destroy3DzzD()
This method will be called just before removing this applet from memory. You may overload this method if you need to know when applet is shutted down.

You can for example do a proper server disconnection there.

Note: main Render3D will be stopped just before calling this method.