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.
-
engine
-
-
BrowserNexus(AWTDocument, Container)
-
-
BrowserNexus(AWTDocument, Container, boolean)
-
-
frameUpdate(long)
- Called from the document every so often to do automatic repositioning
of the camera, such as in a fly viewer.
-
getEngine()
-
-
handleSceneEvent(SceneObserverEvent)
-
-
handleViewEvent(View, Event)
- Called from a ViewCanvas to handle events occurring in the
panel.
-
rootChanged()
-
engine
public BrowserEngine engine
BrowserNexus
public BrowserNexus(AWTDocument document,
Container container)
BrowserNexus
public BrowserNexus(AWTDocument document,
Container container,
boolean createDefaultEngine)
getEngine
public BrowserEngine getEngine()
rootChanged
public void rootChanged()
- Overrides:
- rootChanged in class Nexus
handleViewEvent
public boolean handleViewEvent(View view,
Event e)
- Called from a ViewCanvas to handle events occurring in the
panel.
- Overrides:
- handleViewEvent in class AWTNexus
handleSceneEvent
public void handleSceneEvent(SceneObserverEvent ev)
- Overrides:
- handleSceneEvent in class Nexus
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