diff options
author | Glen Mazza <gmazza@apache.org> | 2004-07-19 05:33:35 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-07-19 05:33:35 +0000 |
commit | af81f828c5b7a480bf9d0674bbfefb9a60524ac5 (patch) | |
tree | fe5043083a7ab19c6c5285c351ebd49b23d9a045 /src/java/org/apache/fop/render/awt/viewer | |
parent | 74955dc126dccccf831748573270d111e5ca5923 (diff) | |
download | xmlgraphics-fop-af81f828c5b7a480bf9d0674bbfefb9a60524ac5.tar.gz xmlgraphics-fop-af81f828c5b7a480bf9d0674bbfefb9a60524ac5.zip |
1.) Driver constructor modified to require RenderType, and setter functions
for RenderType and FOUserAgent removed, to allow for better checking of
a valid Driver object at time of construction. (Also, will reduce need to
validate Driver object should it be a parameter to a method.)
2.) Added validity checking of renderType to FOTreeBuilder as well, in
effect decoupling Driver from FOTreeBuilder (the latter can work on its own
now.)
3.) Updated the various examples and the documentation to indicate the
new API.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197801 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/PreviewDialog.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/render/awt/viewer/PreviewDialog.java b/src/java/org/apache/fop/render/awt/viewer/PreviewDialog.java index ef565573b..40f47be64 100644 --- a/src/java/org/apache/fop/render/awt/viewer/PreviewDialog.java +++ b/src/java/org/apache/fop/render/awt/viewer/PreviewDialog.java @@ -385,8 +385,7 @@ public class PreviewDialog extends JFrame { private class Reloader extends Thread { public void run() { if (driver == null) { - driver = new Driver(foUserAgent); - driver.setRenderer(Constants.RENDER_AWT); + driver = new Driver(Constants.RENDER_AWT, foUserAgent); } pageLabel.setIcon(null); |