org.foray.demo.embed
Class DemoAWTViewer

java.lang.Object
  extended by org.foray.demo.embed.EmbedDemo
      extended by org.foray.demo.embed.DemoAWTViewer

public class DemoAWTViewer
extends EmbedDemo

This class demonstrates the use of the AWT Viewer.


Field Summary
static String TRANSLATION_PATH
          Constant containing the path to the resources.
 
Constructor Summary
DemoAWTViewer()
          Constructor.
 
Method Summary
protected  PreviewDialog createPreviewDialog(AWTRenderer renderer, Translator res)
          Factory method for a PreviewDialog instance.
static void main(String[] args)
          Command-line interface for the viewer.
 void viewFO(URL fo)
          Views an FO document.
 
Methods inherited from class org.foray.demo.embed.EmbedDemo
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSLATION_PATH

public static final String TRANSLATION_PATH
Constant containing the path to the resources.

See Also:
Constant Field Values
Constructor Detail

DemoAWTViewer

public DemoAWTViewer()
Constructor.

Method Detail

createPreviewDialog

protected PreviewDialog createPreviewDialog(AWTRenderer renderer,
                                            Translator res)
                                     throws org.axsl.output.OutputException
Factory method for a PreviewDialog instance.

Parameters:
renderer - The Renderer.
res - The Translator resource.
Returns:
The newly-created PreviewDialog.
Throws:
org.axsl.output.OutputException - For errors loading resources.

viewFO

public void viewFO(URL fo)
            throws IOException,
                   FOrayException
Views an FO document.

Parameters:
fo - the FO document to view.
Throws:
IOException - For I/O errors.
FOrayException - For errors during FOray processing.

main

public static void main(String[] args)
Command-line interface for the viewer.

Parameters:
args - Command-line arguments. This method currently uses none.


Copyright © 2017. All rights reserved.