Class dnx.lr.app.BrowserNexus
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.lr.app.BrowserNexus

java.lang.Object
   |
   +----dnx.util.DNXObject
           |
           +----dnx.lr.app.Nexus
                   |
                   +----dnx.lr.app.AWTNexus
                           |
                           +----dnx.lr.app.BrowserNexus

public class BrowserNexus
extends AWTNexus
A BrowserNexus is a particular kind of AWTNexus that's especially suited for making browsers. It contains an associated BrowserEngine that implements the essential functionality of a browser, and it passes the appropriate inputs to the engine by providing rootChanged(), handleViewEvent(), handleSceneEvent(), and frameUpdate() methods that pass the corresponding actions onto the engine for processing. The correct way to use this is to make sure that the SceneObserverEvents that get generated when the scene's root node is set are generated after* the nexus has been created, so that those SceneObserverEvents get correctly sent to the nexus and thence on to the engine. To do this, create the Scene with a second parameter of false and then call setRootFromContents() after the nexus has been created. If you don't do this, then the background, fog, navigation info, and similar stuff won't get initialized correctly because the engine won't get the proper SceneObserverEvents.

Variable Index

 o engine

Constructor Index

 o BrowserNexus(AWTDocument, Container)
 o BrowserNexus(AWTDocument, Container, boolean)

Method Index

 o frameUpdate(long)
Called from the document every so often to do automatic repositioning of the camera, such as in a fly viewer.
 o getEngine()
 o handleSceneEvent(SceneObserverEvent)
 o handleViewEvent(View, Event)
Called from a ViewCanvas to handle events occurring in the panel.
 o rootChanged()

Variables

 o engine
  public BrowserEngine engine

Constructors

 o BrowserNexus
  public BrowserNexus(AWTDocument document,
                      Container container)
 o BrowserNexus
  public BrowserNexus(AWTDocument document,
                      Container container,
                      boolean createDefaultEngine)

Methods

 o getEngine
  public BrowserEngine getEngine()
 o rootChanged
  public void rootChanged()
Overrides:
rootChanged in class Nexus
 o handleViewEvent
  public boolean handleViewEvent(View view,
                                 Event e)
Called from a ViewCanvas to handle events occurring in the panel.
Overrides:
handleViewEvent in class AWTNexus
 o handleSceneEvent
  public void handleSceneEvent(SceneObserverEvent ev)
Overrides:
handleSceneEvent in class Nexus
 o frameUpdate
  public void frameUpdate(long when)
Called from the document every so often to do automatic repositioning of the camera, such as in a fly viewer.
Overrides:
frameUpdate in class Nexus

All Packages  Class Hierarchy  This Package  Previous  Next  Index