fi.hut.tml.xsmiles.mlfc.xslfo
Class XSLFOMLFC

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

public class XSLFOMLFC
extends MLFC

MLFC for displaying XSL FO documents.


Field Summary
 int currentPage
           
protected  Driver2 driver
           
protected  java.awt.Component foGraphicComponent
           
 int pageCount
           
static java.lang.String TRANSLATION_PATH
           
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.MLFC
contentHandler, controlsShown, title
 
Constructor Summary
XSLFOMLFC()
           
 
Method Summary
 void buildAndFormatFOTree(org.w3c.dom.Document foDoc, java.lang.String language, java.awt.Container cont)
           
 org.w3c.dom.Element createElementNS(org.apache.xerces.dom.DocumentImpl doc, java.lang.String URI, java.lang.String tagname)
          Create a DOM element.
 AWTRendererInterface createRenderer(java.lang.String className, org.apache.fop.viewer.Translator aRes)
           
 void dispose()
           
 MLFCController getMLFCController()
           
 java.lang.String getVersion()
          Get the version of the MLFC.
 void goToPage(int number)
          Change the current visible page
 void refresh()
           
 void setScale(double scaleFactor)
           
 void setScale(java.lang.String scaleStr)
           
 void showPage(boolean doRender)
           
 void start()
          Start the MLFC.
 void stop()
          Stop the MLFC.
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.MLFC
commitUpdateTransaction, createAttributeNS, get, getContainer, getContentHandler, getLocalname, 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

driver

protected Driver2 driver

foGraphicComponent

protected java.awt.Component foGraphicComponent

TRANSLATION_PATH

public static java.lang.String TRANSLATION_PATH

currentPage

public int currentPage

pageCount

public int pageCount
Constructor Detail

XSLFOMLFC

public XSLFOMLFC()
Method Detail

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.

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

createElementNS

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

Overrides:
createElementNS in class MLFC

refresh

public void refresh()

buildAndFormatFOTree

public void buildAndFormatFOTree(org.w3c.dom.Document foDoc,
                                 java.lang.String language,
                                 java.awt.Container cont)
Parameters:
cont - The container, where to place extension elements

stop

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

Specified by:
stop in class MLFC

goToPage

public void goToPage(int number)
Change the current visible page

Parameters:
number - the page number to go to

setScale

public void setScale(java.lang.String scaleStr)

setScale

public void setScale(double scaleFactor)

showPage

public void showPage(boolean doRender)

dispose

public void dispose()

createRenderer

public AWTRendererInterface createRenderer(java.lang.String className,
                                           org.apache.fop.viewer.Translator aRes)

getMLFCController

public MLFCController getMLFCController()
Overrides:
getMLFCController in class MLFC
Returns:
The mlfcController object for this MLFC. Null returned, if no mlfcController defined in MLFC.
See Also:
MLFCController


X-Smiles 1.2