fi.hut.tml.xsmiles.mlfc.aaml
Class AAMLFC

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.MLFC
      extended byfi.hut.tml.xsmiles.mlfc.aaml.AAMLFC
All Implemented Interfaces:
ResourceFetcher

public class AAMLFC
extends MLFC

Advanced Audio Markup Language (AAML). Namespace: http://www.xsmiles.org/2002/aaml

Author:
Kari Pihkala

Nested Class Summary
 class AAMLFC.AAScheduler
          Scheduler to sample audio / listener locations every 50 ms.
 
Field Summary
static int dso
           
static java.lang.String namespace
           
static NativeAudioDirectX nativePlayer
           
static java.lang.String smilnamespace
           
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.MLFC
contentHandler, controlsShown, title
 
Constructor Summary
AAMLFC()
          Constructor.
 
Method Summary
 org.w3c.dom.Element createElementNS(org.apache.xerces.dom.DocumentImpl doc, java.lang.String ns, java.lang.String tag)
          Create a DOM element.
 java.net.URL createURL(java.lang.String partURL)
          Append the given URL to be a full URL.
 void displayStatusText(java.lang.String url)
          Display status text in the broswer.
static boolean forceInitialization()
           
 ListenerElementImpl getListener()
           
 java.lang.String getVersion()
          Get the version of the MLFC.
 java.awt.Dimension getWindowSize()
           
 void gotoExternalLink(java.lang.String url)
          Called from the LinkHandler - this method asks the browser to go to this external link.
 void setSize(java.awt.Dimension d)
          Not implemented method.
 void start()
          Start the MLFC.
 void stop()
          The opposite of init() deactivate is only called for displayable MLFCs
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.MLFC
commitUpdateTransaction, createAttributeNS, get, getContainer, getContentHandler, getLocalname, getMLFCController, getMLFCListener, getMLFCParameters, getResourceReferencer, getTitle, getXMLDocument, init, initMLFC, isHost, isPrimary, pause, rollbackUpdateTransaction, setContainer, setContentHandler, setHost, setMLFCListener, setMLFCParameters, setTitle, setXMLDocument, setZoom, startMLFC, startUpdateTransaction, stopMLFC
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namespace

public static final java.lang.String namespace
See Also:
Constant Field Values

smilnamespace

public static final java.lang.String smilnamespace
See Also:
Constant Field Values

dso

public static int dso

nativePlayer

public static NativeAudioDirectX nativePlayer
Constructor Detail

AAMLFC

public AAMLFC()
Constructor.

Method Detail

forceInitialization

public static boolean forceInitialization()

getVersion

public final java.lang.String getVersion()
Get the version of the MLFC. This version number is updated with the browser version number at compilation time. This version number indicates the browser version this MLFC was compiled with and should be run with.

Overrides:
getVersion in class MLFC
Returns:
MLFC version number.

createElementNS

public org.w3c.dom.Element createElementNS(org.apache.xerces.dom.DocumentImpl doc,
                                           java.lang.String ns,
                                           java.lang.String tag)
Create a DOM element.

Overrides:
createElementNS in class MLFC

getListener

public ListenerElementImpl getListener()

start

public void start()
Description copied from class: MLFC
Start the MLFC. This function is the pair to stop().

Specified by:
start in class MLFC

createURL

public java.net.URL createURL(java.lang.String partURL)
Append the given URL to be a full URL.

Parameters:
partURL - Partial URL, e.g. fanfaari.wav
Returns:
Full URL, e.g. http://www.x-smiles.org/demo/fanfaari.wav

setSize

public void setSize(java.awt.Dimension d)
Not implemented method.


gotoExternalLink

public void gotoExternalLink(java.lang.String url)
Called from the LinkHandler - this method asks the browser to go to this external link.

Parameters:
url - URL to jump to.

displayStatusText

public void displayStatusText(java.lang.String url)
Display status text in the broswer. Usually shows the link destination.


stop

public void stop()
The opposite of init() deactivate is only called for displayable MLFCs

Specified by:
stop in class MLFC

getWindowSize

public java.awt.Dimension getWindowSize()


X-Smiles 1.2