From 11eb39ca2467133c493933812b573809911c9c3b Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 31 Aug 2005 08:40:33 +0000 Subject: Bugzilla #36418: Documentation update for the "reload" change in the AWT Viewer. Submitted by: Richard Wheeldon git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264974 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java | 11 +++++++---- 1 file changed, 7 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 18436ac53..b70723093 100644 --- a/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java +++ b/src/java/org/apache/fop/render/awt/viewer/PreviewPanel.java @@ -53,9 +53,12 @@ import org.apache.fop.render.awt.AWTRenderer; * Fop controls. *

*

In order to embed a PreviewPanel in your own app, create your own renderer, - * and your own agent. Then call setPreviewDialogDisplayed(false) to hide the - * default dialog. Finally create a preview panel with the renderer and add it - * to your gui: + * and your own agent. In order to support reloads, you may also implement your + * own Renderable extension or the default InputHandler. Setting the Renderable + * to null works fine though. + * Then call setPreviewDialogDisplayed(false) to hide the + * default dialog. Finally create a preview panel with the agent, renderable and + * renderer and add it to your gui: *

*
  * AWTRenderer renderer = new AWTRenderer();
@@ -63,7 +66,7 @@ import org.apache.fop.render.awt.AWTRenderer;
  * agent.setRendererOverride(renderer);
  * renderer.setPreviewDialogDisplayed(false);
  * renderer.setUserAgent(agent);
- * previewPanel = new PreviewPanel(agent, renderer);
+ * previewPanel = new PreviewPanel(agent, null, renderer);
  * previewPanel = new PreviewPanel(ua);
  * myGui.add(previewPanel);
  * 
-- cgit v1.2.3