]> source.dussan.org Git - xmlgraphics-fop.git/commit
Fop.java gets two new constructors: Fop(String) and Fop(String, FOUserAgent) where...
authorJeremias Maerki <jeremias@apache.org>
Fri, 11 Nov 2005 13:44:40 +0000 (13:44 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 11 Nov 2005 13:44:40 +0000 (13:44 +0000)
commit82b916bf0d5dff2475e7b591e6ada7d45fa1b2b9
tree299bd11ae1cb5d1f812fdf912ffc775bfafdb600
parent97581a9081ec184b9755bdc07ce049df9419ca06
Fop.java gets two new constructors: Fop(String) and Fop(String, FOUserAgent) where the String is the MIME type for the desired output format.

MimeConstants provides a comprehensive list of MIME types used in Fop.java.

Non-standard, FOP-specific MIME types changed to a uniform pattern: application/X-fop-awt-preview, application/X-fop-print and application/X-fop-areatree.

RendererFactory now supports manual registration and dynamic discovery of Renderers and FOEventHandlers by their MIME types. Instantitation is done using MIME types everywhere.

The RENDER_* constants are mapped to MIME types in Fop.java.

RendererFactory is now an instantiable class whose reference is held by FOUserAgent just like it is done for the XLMHandlers.

Renderers and FOEventHandlers now each have a *Maker class which is a kind of factory class which is used to register a Renderer/FOEventHandler and additionally serves to provide additional information about the thing, such as the MIME types it supports and if the implementation requires an OutputStream.

The command-line gets a new option: -out application/pdf myfile.pdf is the generic way to create an output file. If someone created a WordML output handler and provided the right service resource file he could specify "-out text/xml+msword out.xml". ".out list" lists all MIME types that are available for output.

Renderers can now potionally expose a Graphics2DAdapter which in concert with Graphics2DImagePainter can be used by FOP extensions to paint their content directly using a Graphics2D instance. That makes it possible to avoid a detour via SVG/Batik in certain cases.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332549 13f79535-47bb-0310-9956-ffa450edef68
45 files changed:
src/java/org/apache/fop/apps/FOUserAgent.java
src/java/org/apache/fop/apps/Fop.java
src/java/org/apache/fop/apps/MimeConstants.java [new file with mode: 0644]
src/java/org/apache/fop/area/AreaTreeHandler.java
src/java/org/apache/fop/area/CachedRenderPagesModel.java
src/java/org/apache/fop/area/RenderPagesModel.java
src/java/org/apache/fop/cli/CommandLineOptions.java
src/java/org/apache/fop/cli/Main.java
src/java/org/apache/fop/fo/FOTreeBuilder.java
src/java/org/apache/fop/render/AbstractFOEventHandlerMaker.java [new file with mode: 0644]
src/java/org/apache/fop/render/AbstractRenderer.java
src/java/org/apache/fop/render/AbstractRendererMaker.java [new file with mode: 0644]
src/java/org/apache/fop/render/Graphics2DAdapter.java [new file with mode: 0644]
src/java/org/apache/fop/render/Graphics2DImagePainter.java [new file with mode: 0644]
src/java/org/apache/fop/render/Renderer.java
src/java/org/apache/fop/render/RendererFactory.java
src/java/org/apache/fop/render/XMLHandlerRegistry.java
src/java/org/apache/fop/render/awt/AWTRenderer.java
src/java/org/apache/fop/render/awt/AWTRendererMaker.java [new file with mode: 0644]
src/java/org/apache/fop/render/bitmap/PNGRenderer.java
src/java/org/apache/fop/render/bitmap/PNGRendererMaker.java [new file with mode: 0644]
src/java/org/apache/fop/render/bitmap/TIFFRenderer.java
src/java/org/apache/fop/render/bitmap/TIFFRendererMaker.java [new file with mode: 0644]
src/java/org/apache/fop/render/java2d/Java2DGraphics2DAdapter.java [new file with mode: 0644]
src/java/org/apache/fop/render/java2d/Java2DRenderer.java
src/java/org/apache/fop/render/java2d/Java2DSVGHandler.java
src/java/org/apache/fop/render/mif/MIFFOEventHandlerMaker.java [new file with mode: 0644]
src/java/org/apache/fop/render/mif/MIFHandler.java
src/java/org/apache/fop/render/pcl/PCLRenderer.java
src/java/org/apache/fop/render/pcl/PCLRendererMaker.java [new file with mode: 0644]
src/java/org/apache/fop/render/pdf/PDFGraphics2DAdapter.java [new file with mode: 0644]
src/java/org/apache/fop/render/pdf/PDFRenderer.java
src/java/org/apache/fop/render/pdf/PDFRendererMaker.java [new file with mode: 0644]
src/java/org/apache/fop/render/print/PrintRendererMaker.java [new file with mode: 0644]
src/java/org/apache/fop/render/ps/PSGraphics2DAdapter.java [new file with mode: 0644]
src/java/org/apache/fop/render/ps/PSRenderer.java
src/java/org/apache/fop/render/ps/PSRendererMaker.java [new file with mode: 0644]
src/java/org/apache/fop/render/ps/PSSVGHandler.java
src/java/org/apache/fop/render/rtf/RTFFOEventHandlerMaker.java [new file with mode: 0644]
src/java/org/apache/fop/render/svg/SVGRendererMaker.java [new file with mode: 0644]
src/java/org/apache/fop/render/txt/TXTFOEventHandlerMaker.java [new file with mode: 0644]
src/java/org/apache/fop/render/txt/TXTHandler.java
src/java/org/apache/fop/render/txt/TXTRendererMaker.java [new file with mode: 0644]
src/java/org/apache/fop/render/xml/XMLRenderer.java
src/java/org/apache/fop/render/xml/XMLRendererMaker.java [new file with mode: 0644]