aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/awt/viewer
diff options
context:
space:
mode:
authorMehdi Houshmand <mehdi@apache.org>2012-01-23 16:15:23 +0000
committerMehdi Houshmand <mehdi@apache.org>2012-01-23 16:15:23 +0000
commitfb20c15fa4aafcc71ddb7288d45d32db118a7d86 (patch)
tree0dcead028ea6374af7b696627de46fd908fc29c6 /src/java/org/apache/fop/render/awt/viewer
parentcfd456f554e0e0d89d8455f9d216850a0cc1765b (diff)
downloadxmlgraphics-fop-fb20c15fa4aafcc71ddb7288d45d32db118a7d86.tar.gz
xmlgraphics-fop-fb20c15fa4aafcc71ddb7288d45d32db118a7d86.zip
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
Diffstat (limited to 'src/java/org/apache/fop/render/awt/viewer')
-rw-r--r--src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java b/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java
index 2303c0e8e..c850c35e7 100644
--- a/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java
+++ b/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java
@@ -67,12 +67,9 @@ import org.apache.fop.render.awt.AWTRenderer;
* </p>
* <pre>
* FopFactory fopFactory = FopFactory.newInstance();
- * AWTRenderer renderer = new AWTRenderer();
* FOUserAgent agent = fopFactory.newFOUserAgent();
+ * AWTRenderer renderer = new AWTRenderer(agent);
* agent.setRendererOverride(renderer);
- * renderer.setPreviewDialogDisplayed(false);
- * renderer.setUserAgent(agent);
- * renderer.setUserAgent(agent);
* previewPanel = new PreviewPanel(agent, null, renderer);
* previewPanel = new PreviewPanel(ua);
* myGui.add(previewPanel);