Class dnx.lr.app.Document
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.lr.app.Document
java.lang.Object
|
+----dnx.util.DNXObject
|
+----dnx.lr.app.Document
- public class Document
- extends DNXObject
- implements Runnable, DNXObserver
A Document is the lr.app class encapsulating a Scene. A Document
consists of a list of Nexuss, each of which displays some subtree
of the scene and processes input from the user. (Typically an Nexus
corresponds to a top-level window in the window system, but this is
not enforced.) Each Nexus, in turn, contains one or more Views,
which correspond to a particular way of displaying the subtree managed
by the Nexus. The Nexus is responsible for managing the interaction
with the user for its subtree. It receives input events in a uniform
form and determines what to do with them.
-
nexuses
-
-
Document()
-
-
Document(Scene)
-
-
addNexus(Nexus)
-
-
areSceneFramesEnabled()
-
-
beginDelaySceneObserverEvents()
-
-
clearStatusMessage(Nexus)
-
-
debugPrint()
-
-
disableSceneFrames()
-
-
enableSceneFrames()
-
-
endDelaySceneObserverEvents()
-
-
getCurrentFrameRate()
-
-
getDocumentBase()
-
-
getScene()
-
-
javaSucks(Scene)
- This is an alternative entry point for the Document (Scene)
constructor.
-
processSceneObserverEvent(SceneObserverEvent)
-
-
removeNexus(Nexus)
-
-
run()
-
-
sceneHasLoaded()
-
-
setMediaFetcher(Scene)
-
-
showErrorMessage(Nexus, String, String)
-
-
showErrorMessage(String, String)
-
-
showStatusMessage(Nexus, String)
-
-
showStatusMessage(String)
-
-
start()
-
-
stop()
-
-
update(DNXObservable, Object)
- A document is an observer of a scene; the scene
may call update with SceneObserverEvents.
nexuses
protected NexusList nexuses
Document
public Document()
Document
public Document(Scene scene)
javaSucks
protected void javaSucks(Scene scene)
- This is an alternative entry point for the Document (Scene)
constructor. We have to do this bogosity because Java doesn't
allow you to do things before calling the superclass constructor.
If you want to use this in place of calling Document (scene),
call Document () then do your thing then call javaSucks
(scene).
enableSceneFrames
public synchronized void enableSceneFrames()
disableSceneFrames
public synchronized void disableSceneFrames()
areSceneFramesEnabled
public boolean areSceneFramesEnabled()
getScene
public synchronized Scene getScene()
sceneHasLoaded
public boolean sceneHasLoaded()
addNexus
public synchronized void addNexus(Nexus nexus)
removeNexus
public synchronized void removeNexus(Nexus nexus)
getDocumentBase
public abstract URL getDocumentBase()
showStatusMessage
public synchronized void showStatusMessage(Nexus nexus,
String message)
showStatusMessage
public synchronized void showStatusMessage(String message)
clearStatusMessage
public synchronized void clearStatusMessage(Nexus nexus)
showErrorMessage
public abstract void showErrorMessage(Nexus nexus,
String message,
String detail)
setMediaFetcher
public abstract void setMediaFetcher(Scene newScene)
showErrorMessage
public synchronized void showErrorMessage(String message,
String detail)
run
public void run()
getCurrentFrameRate
public float getCurrentFrameRate()
start
public synchronized void start()
stop
public void stop()
debugPrint
public void debugPrint()
beginDelaySceneObserverEvents
public synchronized void beginDelaySceneObserverEvents()
endDelaySceneObserverEvents
public synchronized void endDelaySceneObserverEvents()
processSceneObserverEvent
public void processSceneObserverEvent(SceneObserverEvent arg)
update
public synchronized void update(DNXObservable o,
Object arg)
- A document is an observer of a scene; the scene
may call update with SceneObserverEvents. The default
implementation of this just passes the events on to each nexus,
using the handleSceneEvent() method.
All Packages Class Hierarchy This Package Previous Next Index