Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.xmud.graphicsengine
Class loader  view loader download loader.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended byorg.xmud.graphicsengine.loader
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class loader
extends java.applet.Applet
implements java.awt.event.ActionListener

An example of how to use the Java3D loader interface with the Xj3D codebase.

Version:
$Revision: 1.1.1.1 $

Nested Class Summary
 
Nested classes inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  UtilCanvas3D canvas
          A canvas that can display timing information
(package private)  TransformGroup examineGroup
          A transform for examine navigation style
(package private)  java.awt.Cursor handCursor
          Cursor to display normally
(package private)  DirectionalLight headLight
           
(package private)  MainFrame mf
          The heavyweight frame containing everything
(package private)  Scene scene
          The loaded scene
(package private)  BranchGroup sceneGroup
           
(package private)  BranchGroup sceneRoot
          The whole scenegraph's root
(package private)  SimpleUniverse universe
          The J3D universe to hold everything
(package private)  java.awt.Label URLLabel
          A label for the URL field
(package private)  java.awt.Panel URLPanel
          A panel to contain the user-interface
(package private)  java.awt.TextField URLTextField
          Field to type in URL
(package private)  TransformGroup vpTransGroup
           
(package private)  VRML97Loader vrmlLoader
          The loader implementation used to load VRML97 content
(package private)  java.awt.Cursor waitCursor
          Cursor to display when waiting
(package private)  java.awt.event.WindowAdapter wl
          An adaptor class used to capture close events
 
Fields inherited from class java.applet.Applet
 
Fields inherited from class java.awt.Panel
 
Fields inherited from class java.awt.Container
 
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
loader(java.lang.String initLocation)
          Create a new loader
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Handle user interface actions
(package private)  void gotoLocation(java.lang.String location)
          Load a new world
static void main(java.lang.String[] args)
          A main body for running as an application
 void processEvent(java.awt.AWTEvent e)
          Process and AWT event
private  void setupLighting()
          Setup the worlds lighting.
private  void setupNavigation()
          Setup the navigation system.
(package private)  void setViewpoint()
          Setup the scene's view
 
Methods inherited from class java.applet.Applet
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, 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, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

universe

SimpleUniverse universe
The J3D universe to hold everything


canvas

UtilCanvas3D canvas
A canvas that can display timing information


vrmlLoader

VRML97Loader vrmlLoader
The loader implementation used to load VRML97 content


scene

Scene scene
The loaded scene


sceneRoot

BranchGroup sceneRoot
The whole scenegraph's root


examineGroup

TransformGroup examineGroup
A transform for examine navigation style


sceneGroup

BranchGroup sceneGroup

vpTransGroup

TransformGroup vpTransGroup

headLight

DirectionalLight headLight

mf

MainFrame mf
The heavyweight frame containing everything


wl

java.awt.event.WindowAdapter wl
An adaptor class used to capture close events


URLPanel

java.awt.Panel URLPanel
A panel to contain the user-interface


URLLabel

java.awt.Label URLLabel
A label for the URL field


URLTextField

java.awt.TextField URLTextField
Field to type in URL


waitCursor

java.awt.Cursor waitCursor
Cursor to display when waiting


handCursor

java.awt.Cursor handCursor
Cursor to display normally

Constructor Detail

loader

public loader(java.lang.String initLocation)
Create a new loader

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Handle user interface actions

Specified by:
actionPerformed in interface java.awt.event.ActionListener

processEvent

public void processEvent(java.awt.AWTEvent e)
Process and AWT event


setViewpoint

void setViewpoint()
Setup the scene's view


gotoLocation

void gotoLocation(java.lang.String location)
Load a new world


setupNavigation

private void setupNavigation()
Setup the navigation system. We use a simple examine behavior


setupLighting

private void setupLighting()
Setup the worlds lighting. If none is provided in the VRML file then we create a simple headlight


main

public static void main(java.lang.String[] args)
A main body for running as an application