aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/apps/FopFactory.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2010-12-13 14:49:56 +0000
committerJeremias Maerki <jeremias@apache.org>2010-12-13 14:49:56 +0000
commitce6d9e1eeef5f7b17fada9f07145e7e430586bf1 (patch)
tree1cf77ef1eee183895d06be19c30628b5a79cbefb /src/java/org/apache/fop/apps/FopFactory.java
parentad93316e324520818ebfd4f4e02644f681c31812 (diff)
downloadxmlgraphics-fop-ce6d9e1eeef5f7b17fada9f07145e7e430586bf1.tar.gz
xmlgraphics-fop-ce6d9e1eeef5f7b17fada9f07145e7e430586bf1.zip
Adjust to changes in XML Graphics Commons:
- equals() to ColorUtil.isSameColor() - ICCColorSpaceExt to ICCColorSpaceWithIntent - int to RenderingIntent enum git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Color@1045155 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/apps/FopFactory.java')
-rw-r--r--src/java/org/apache/fop/apps/FopFactory.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/apps/FopFactory.java b/src/java/org/apache/fop/apps/FopFactory.java
index 15279dc01..7e97442e6 100644
--- a/src/java/org/apache/fop/apps/FopFactory.java
+++ b/src/java/org/apache/fop/apps/FopFactory.java
@@ -40,7 +40,7 @@ import org.apache.commons.logging.LogFactory;
import org.apache.xmlgraphics.image.loader.ImageContext;
import org.apache.xmlgraphics.image.loader.ImageManager;
-import org.apache.xmlgraphics.java2d.color.ICCColorSpaceExt;
+import org.apache.xmlgraphics.java2d.color.RenderingIntent;
import org.apache.fop.fo.ElementMapping;
import org.apache.fop.fo.ElementMappingRegistry;
@@ -157,6 +157,7 @@ public class FopFactory implements ImageContext {
this.fontManager = new FontManager() {
/** {@inheritDoc} */
+ @Override
public void setFontBaseURL(String fontBase) throws MalformedURLException {
super.setFontBaseURL(getFOURIResolver().checkBaseURL(fontBase));
}
@@ -373,6 +374,7 @@ public class FopFactory implements ImageContext {
* @throws MalformedURLException if there's a problem with a file URL
* @deprecated use getFontManager().setFontBaseURL(fontBase) instead
*/
+ @Deprecated
public void setFontBaseURL(String fontBase) throws MalformedURLException {
getFontManager().setFontBaseURL(fontBase);
}
@@ -381,6 +383,7 @@ public class FopFactory implements ImageContext {
* @return the font base URL
* @deprecated use getFontManager().setFontBaseURL(fontBase) instead
*/
+ @Deprecated
public String getFontBaseURL() {
return getFontManager().getFontBaseURL();
}
@@ -491,6 +494,7 @@ public class FopFactory implements ImageContext {
* @return true if kerning on base 14 fonts is enabled
* @deprecated use getFontManager().isBase14KerningEnabled() instead
*/
+ @Deprecated
public boolean isBase14KerningEnabled() {
return getFontManager().isBase14KerningEnabled();
}
@@ -500,6 +504,7 @@ public class FopFactory implements ImageContext {
* @param value true if kerning should be activated
* @deprecated use getFontManager().setBase14KerningEnabled(boolean) instead
*/
+ @Deprecated
public void setBase14KerningEnabled(boolean value) {
getFontManager().setBase14KerningEnabled(value);
}
@@ -708,6 +713,7 @@ public class FopFactory implements ImageContext {
* @param useCache use cache or not
* @deprecated use getFontManager().setUseCache(boolean) instead
*/
+ @Deprecated
public void setUseCache(boolean useCache) {
getFontManager().setUseCache(useCache);
}
@@ -717,6 +723,7 @@ public class FopFactory implements ImageContext {
* @return whether this factory is uses the cache
* @deprecated use getFontManager().useCache() instead
*/
+ @Deprecated
public boolean useCache() {
return getFontManager().useCache();
}
@@ -726,6 +733,7 @@ public class FopFactory implements ImageContext {
* @return the font cache
* @deprecated use getFontManager().getFontCache() instead
*/
+ @Deprecated
public FontCache getFontCache() {
return getFontManager().getFontCache();
}
@@ -771,11 +779,11 @@ public class FopFactory implements ImageContext {
* @param profileName the profile name
* @param baseUri a base URI to resolve relative URIs
* @param iccProfileSrc ICC Profile source to return a ColorSpace for
- * @param renderingIntent overriding rendering intent (see {@link ICCColorSpaceExt}.*)
+ * @param renderingIntent overriding rendering intent
* @return ICC ColorSpace object or null if ColorSpace could not be created
*/
public ColorSpace getColorSpace(String profileName, String baseUri, String iccProfileSrc,
- int renderingIntent) {
+ RenderingIntent renderingIntent) {
return colorSpaceCache.get(profileName, baseUri, iccProfileSrc, renderingIntent);
}