fi.hut.tml.xsmiles.content.xml
Class MLFCManager

java.lang.Object
  extended byfi.hut.tml.xsmiles.content.xml.MLFCManager

public class MLFCManager
extends java.lang.Object

Activates and deactivates MLFCs upon requests. See Technical Requirements Specification for further details on MLFC management. Note: there are 3 phases in creating/stopping a primary MLFC: init-start-destroy : the first two are for synchronization purposes

Author:
Jukka Heinonen, Juha, Mikko Honkala

Field Summary
static java.lang.String SOURCEMLFC_CLASS
           
 
Constructor Summary
MLFCManager()
           
 
Method Summary
static void activateMLFC(XMLDocument document, java.awt.Container c, MLFCListener mlfcListener, BrowserWindow browser, boolean primary)
          Activates a new Primary MLFC.
static void closeMLFC(XMLDocument doc)
           
static MLFC getSourceMLFC()
          Returns a new Source MLFC object.
static void initMLFC(XMLDocument document, java.awt.Container c, MLFCListener mlfcListener, BrowserWindow browser, XSmilesContentHandler ch)
           
static void initMLFCs(java.util.Hashtable MLFCs, XMLDocument doc, java.awt.Container c, MLFCListener ml, BrowserWindow browza, XSmilesContentHandler ch)
          Initialize the xforms elements in this document / presentation.
static void initMLFCs(java.util.Hashtable MLFCs, XMLDocument doc, java.awt.Container c, MLFCListener ml, XSmilesContentHandler ch)
           
static void pauseMLFC(XMLDocument document)
           
static void setZoom(double zoom, org.w3c.dom.Document doc)
          notify that the zoom level has changed.
static void startMLFCs(java.util.Hashtable MLFCs, XMLDocument doc, java.awt.Container c, MLFCListener ml)
           
static void startMLFCs(java.util.Hashtable MLFCs, XMLDocument doc, java.awt.Container c, MLFCListener ml, BrowserWindow browza)
          Initialize the xforms elements in this document / presentation.
static void stopMLFC(XMLDocument doc)
          stops all MLFCs in the doc.
static void stopMLFCs(java.util.Hashtable MLFCs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCEMLFC_CLASS

public static final java.lang.String SOURCEMLFC_CLASS
See Also:
Constant Field Values
Constructor Detail

MLFCManager

public MLFCManager()
Method Detail

initMLFC

public static void initMLFC(XMLDocument document,
                            java.awt.Container c,
                            MLFCListener mlfcListener,
                            BrowserWindow browser,
                            XSmilesContentHandler ch)

pauseMLFC

public static void pauseMLFC(XMLDocument document)

activateMLFC

public static void activateMLFC(XMLDocument document,
                                java.awt.Container c,
                                MLFCListener mlfcListener,
                                BrowserWindow browser,
                                boolean primary)
                         throws java.lang.Exception
Activates a new Primary MLFC. ?@param document The XMLDocument which is to be shown.

Throws:
java.lang.Exception

stopMLFC

public static void stopMLFC(XMLDocument doc)
stops all MLFCs in the doc.


closeMLFC

public static void closeMLFC(XMLDocument doc)

startMLFCs

public static void startMLFCs(java.util.Hashtable MLFCs,
                              XMLDocument doc,
                              java.awt.Container c,
                              MLFCListener ml)
Returns:
The current primary MLFC, which is used at this moment null is returned, if no MLFC is used at the moment (should be impossible)

startMLFCs

public static void startMLFCs(java.util.Hashtable MLFCs,
                              XMLDocument doc,
                              java.awt.Container c,
                              MLFCListener ml,
                              BrowserWindow browza)
Initialize the xforms elements in this document / presentation. will be MOVED TO MLFCManager!


initMLFCs

public static void initMLFCs(java.util.Hashtable MLFCs,
                             XMLDocument doc,
                             java.awt.Container c,
                             MLFCListener ml,
                             XSmilesContentHandler ch)

initMLFCs

public static void initMLFCs(java.util.Hashtable MLFCs,
                             XMLDocument doc,
                             java.awt.Container c,
                             MLFCListener ml,
                             BrowserWindow browza,
                             XSmilesContentHandler ch)
Initialize the xforms elements in this document / presentation. will be MOVED TO MLFCManager!


stopMLFCs

public static void stopMLFCs(java.util.Hashtable MLFCs)

getSourceMLFC

public static MLFC getSourceMLFC()
Returns a new Source MLFC object.

Returns:
Source MLFC

setZoom

public static void setZoom(double zoom,
                           org.w3c.dom.Document doc)
notify that the zoom level has changed. Note that some content may choose to not implement zooming.



X-Smiles 1.2