yext.export.module
Class PDFOutputModule

java.lang.Object
  extended by y.module.YModule
      extended by y.module.io.IOHandlerModule
          extended by yext.export.module.OutputModule
              extended by yext.export.module.PDFOutputModule

public class PDFOutputModule
extends OutputModule

Exports a diagram to a PDF document.

Provides an option dialog for specifying PDF export settings interactively.

 

Field Summary
protected static String ATTR_UNIT
           
protected static String GROUP_MARGINS
           
protected static String GROUP_PAGE
           
static String MODULE_NAME
           
protected static String OPTION_AUTOMATIC_PAGE_SIZE
           
protected static String OPTION_MARGIN_BOTTOM
           
protected static String OPTION_MARGIN_LEFT
           
protected static String OPTION_MARGIN_RIGHT
           
protected static String OPTION_MARGIN_TOP
           
protected static String OPTION_ORIENTATION
           
protected static String OPTION_PAPER
           
protected static String OPTION_TEXT_RENDERING_POLICY
           
protected static String TAB_PDF
           
protected static String VALUE_LANDSCAPE
           
protected static String VALUE_PLAIN_TEXT
           
protected static String VALUE_PLAIN_TEXT_WITH_EMBEDDED_FONTS
           
protected static String VALUE_PORTRAIT
           
protected static String VALUE_VECTORIZED_TEXT
           
 
Fields inherited from class yext.export.module.OutputModule
OPTION_SELECTION_PAINTING, TAB_IMAGE
 
Fields inherited from class y.module.io.IOHandlerModule
INPUT_MODE, OPTION_CLIP_GRAPH, OPTION_CLIP_TYPE, OPTION_CLIP_VIEW, OPTION_CUSTOM_HEIGHT, OPTION_CUSTOM_WIDTH, OPTION_GENERATE_HTML_TABLE, OPTION_MARGIN, OPTION_SCALING_FACTOR, OPTION_SIZE_TYPE, OPTION_SIZE_USE_CUSTOM_HEIGHT, OPTION_SIZE_USE_CUSTOM_WIDTH, OPTION_SIZE_USE_ORIGINAL, OPTION_TILE_COLUMN_COUNT, OPTION_TILE_ROW_COUNT, OPTION_TILING_ACTIVE, OUTPUT_MODE, TAB_TILING, TAB_VIEWPORT, vpc
 
Fields inherited from class y.module.YModule
FAILED, moduleListenerSupport, PRECONDITION_VIOLATED, SUCCESS
 
Constructor Summary
PDFOutputModule()
          Initializes a new PDFOutputModule instance with the module name PDF_OUTPUT.
 
Method Summary
protected  void addPdfOptions(OptionHandler options)
          Adds PDF specific output options to the given option handler.
protected  void addTilingOptions(OptionHandler options)
          Adds tiling specific output options to the given option handler.
protected  IOHandler createIOHandler()
          Returns a new instance of PDFOutputHandler.
protected  OptionHandler createOptionHandler()
          Creates an option handler for PDF output.
protected  void mainrun()
          Exports the module's associated graph to a PDF document.
 
Methods inherited from class yext.export.module.OutputModule
addRenderingOptions, configureRendering
 
Methods inherited from class y.module.io.IOHandlerModule
addViewPortOptions, adoptRenderingHints, adoptViewPortOptions, configureViewPort, getIOHandler, getIOMode, getURL, setIOHandler, setIOMode, setURL
 
Methods inherited from class y.module.YModule
addModuleListener, createThread, dispose, exceptionHappened, fitGraph2DView, getAuthor, getDescription, getExitStatus, getGraph2D, getGraph2DView, getModuleListeners, getModuleName, getOptionHandler, getTimer, getView, init, initGuiFactory, isAbortable, isBackupRealizersEnabled, removeModuleListener, run, setBackupRealizersEnabled, setExitStatus, setGraph2D, setModuleName, setOptionHandler, start, startAsThread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE_NAME

public static final String MODULE_NAME
See Also:
Constant Field Values

TAB_PDF

protected static final String TAB_PDF
See Also:
Constant Field Values

OPTION_TEXT_RENDERING_POLICY

protected static final String OPTION_TEXT_RENDERING_POLICY
See Also:
Constant Field Values

OPTION_AUTOMATIC_PAGE_SIZE

protected static final String OPTION_AUTOMATIC_PAGE_SIZE
See Also:
Constant Field Values

GROUP_PAGE

protected static final String GROUP_PAGE
See Also:
Constant Field Values

OPTION_PAPER

protected static final String OPTION_PAPER
See Also:
Constant Field Values

OPTION_ORIENTATION

protected static final String OPTION_ORIENTATION
See Also:
Constant Field Values

GROUP_MARGINS

protected static final String GROUP_MARGINS
See Also:
Constant Field Values

OPTION_MARGIN_TOP

protected static final String OPTION_MARGIN_TOP
See Also:
Constant Field Values

OPTION_MARGIN_LEFT

protected static final String OPTION_MARGIN_LEFT
See Also:
Constant Field Values

OPTION_MARGIN_BOTTOM

protected static final String OPTION_MARGIN_BOTTOM
See Also:
Constant Field Values

OPTION_MARGIN_RIGHT

protected static final String OPTION_MARGIN_RIGHT
See Also:
Constant Field Values

VALUE_PORTRAIT

protected static final String VALUE_PORTRAIT
See Also:
Constant Field Values

VALUE_LANDSCAPE

protected static final String VALUE_LANDSCAPE
See Also:
Constant Field Values

VALUE_PLAIN_TEXT

protected static final String VALUE_PLAIN_TEXT
See Also:
Constant Field Values

VALUE_PLAIN_TEXT_WITH_EMBEDDED_FONTS

protected static final String VALUE_PLAIN_TEXT_WITH_EMBEDDED_FONTS
See Also:
Constant Field Values

VALUE_VECTORIZED_TEXT

protected static final String VALUE_VECTORIZED_TEXT
See Also:
Constant Field Values

ATTR_UNIT

protected static final String ATTR_UNIT
See Also:
Constant Field Values
Constructor Detail

PDFOutputModule

public PDFOutputModule()
Initializes a new PDFOutputModule instance with the module name PDF_OUTPUT.

Method Detail

addPdfOptions

protected void addPdfOptions(OptionHandler options)
Adds PDF specific output options to the given option handler.


addTilingOptions

protected void addTilingOptions(OptionHandler options)
Adds tiling specific output options to the given option handler.

Overrides:
addTilingOptions in class IOHandlerModule

createIOHandler

protected IOHandler createIOHandler()
Returns a new instance of PDFOutputHandler.

Specified by:
createIOHandler in class IOHandlerModule
Returns:
a new instance of PDFOutputHandler.

createOptionHandler

protected OptionHandler createOptionHandler()
Creates an option handler for PDF output.

Calls addPdfOptions(OptionHandler) and addTilingOptions(OptionHandler).

Overrides:
createOptionHandler in class OutputModule
Returns:
an option handler for EPS output.

mainrun

protected void mainrun()
Exports the module's associated graph to a PDF document.

Overrides:
mainrun in class OutputModule
See Also:
IOHandlerModule.getIOHandler()


© Copyright 2007-2015,
yWorks GmbH.
All rights reserved.