]> source.dussan.org Git - xmlgraphics-fop.git/commit
Moved the FOUserAgent into the constructor of the Renderers
authorMehdi Houshmand <mehdi@apache.org>
Mon, 23 Jan 2012 16:15:23 +0000 (16:15 +0000)
committerMehdi Houshmand <mehdi@apache.org>
Mon, 23 Jan 2012 16:15:23 +0000 (16:15 +0000)
commitfb20c15fa4aafcc71ddb7288d45d32db118a7d86
tree0dcead028ea6374af7b696627de46fd908fc29c6
parentcfd456f554e0e0d89d8455f9d216850a0cc1765b
Moved the FOUserAgent into the constructor of the Renderers

This breaks the public API but for good reasons:
1) the user-agent is essential for configuring the renderers
2) instantiation of the constructor is always followed by call to "setUserAgent()" (in the examples)
3) simplifies the API and reduces mutability of the Renderers

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1234877 13f79535-47bb-0310-9956-ffa450edef68
30 files changed:
examples/embedding/java/embedding/ExampleFO2JPSPrint.java
examples/embedding/java/embedding/atxml/ExampleConcat.java
src/java/org/apache/fop/cli/CommandLineOptions.java
src/java/org/apache/fop/render/AbstractPathOrientedRenderer.java
src/java/org/apache/fop/render/AbstractRenderer.java
src/java/org/apache/fop/render/PrintRenderer.java
src/java/org/apache/fop/render/Renderer.java
src/java/org/apache/fop/render/RendererFactory.java
src/java/org/apache/fop/render/awt/AWTRenderer.java
src/java/org/apache/fop/render/awt/AWTRendererMaker.java
src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java
src/java/org/apache/fop/render/bitmap/PNGRenderer.java
src/java/org/apache/fop/render/bitmap/PNGRendererMaker.java
src/java/org/apache/fop/render/bitmap/TIFFRenderer.java
src/java/org/apache/fop/render/bitmap/TIFFRendererMaker.java
src/java/org/apache/fop/render/intermediate/IFRenderer.java
src/java/org/apache/fop/render/java2d/Java2DRenderer.java
src/java/org/apache/fop/render/print/PageableRenderer.java
src/java/org/apache/fop/render/print/PrintRenderer.java
src/java/org/apache/fop/render/print/PrintRendererMaker.java
src/java/org/apache/fop/render/txt/TXTRenderer.java
src/java/org/apache/fop/render/txt/TXTRendererMaker.java
src/java/org/apache/fop/render/xml/AbstractXMLRenderer.java
src/java/org/apache/fop/render/xml/XMLRenderer.java
src/java/org/apache/fop/render/xml/XMLRendererMaker.java
src/sandbox/org/apache/fop/render/svg/SVGRenderer.java
src/sandbox/org/apache/fop/render/svg/SVGRendererMaker.java
test/java/org/apache/fop/URIResolutionTestCase.java
test/java/org/apache/fop/intermediate/AreaTreeParserTestCase.java
test/java/org/apache/fop/layoutengine/LayoutEngineTestCase.java