diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-03-27 09:51:14 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-03-27 09:51:14 +0000 |
commit | 0a2d149c230858d311f6d4d776072704a0096ac2 (patch) | |
tree | 3dcbf5ed7be99ab2a93f5911ff2ff40e10364fc6 /src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java | |
parent | 60fc6535d1a4bb48faea00e1d4793d18bc0f7f98 (diff) | |
download | xmlgraphics-fop-0a2d149c230858d311f6d4d776072704a0096ac2.tar.gz xmlgraphics-fop-0a2d149c230858d311f6d4d776072704a0096ac2.zip |
Merged Temp_API_Finalization branch back into FOP Trunk:
Finalized API according to the plan in the Wiki: http://wiki.apache.org/xmlgraphics-fop/ApiDesign
In addition to that:
Deprecated the rest of the Fop constructors.
Refactored the FopServlet a bit to make it more versatile and still easy to understand. The FopPrintServlet is now a subclass of FopServlet.
Some further cleanup on the way.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@389086 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java')
-rwxr-xr-x | src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java b/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java index 83214a5ab..54501d91c 100755 --- a/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java +++ b/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java @@ -18,6 +18,7 @@ package org.apache.fop.fo.properties; +import org.apache.fop.apps.FOUserAgent; import org.apache.fop.datatypes.ColorType; import org.apache.fop.datatypes.Length; import org.apache.fop.datatypes.PercentBaseContext; @@ -158,8 +159,9 @@ public class CommonBorderPaddingBackground implements Cloneable { //Additional processing: preload image String url = ImageFactory.getURL(backgroundImage); - ImageFactory fact = ImageFactory.getInstance(); - fopimage = fact.getImage(url, fobj.getUserAgent()); + FOUserAgent userAgent = fobj.getUserAgent(); + ImageFactory fact = userAgent.getFactory().getImageFactory(); + fopimage = fact.getImage(url, userAgent); if (fopimage == null) { fobj.getLogger().error("Background image not available: " + backgroundImage); } else { |