diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2014-07-10 18:00:58 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2014-07-10 18:00:58 +0000 |
commit | ed15912213167d400aab00ece6766362d4430e41 (patch) | |
tree | 4fe3d77ccbf5145d4ac7a66926657859bfeb717f /src/java/org/apache/fop/render/ps | |
parent | 1cc7422fab91ce2f6dfb07762b6bed6c4913793f (diff) | |
download | xmlgraphics-fop-ed15912213167d400aab00ece6766362d4430e41.tar.gz xmlgraphics-fop-ed15912213167d400aab00ece6766362d4430e41.zip |
Removed createGradient abstract method, that was not having any specific implementation in sub-classes
Removed unnecessary GradientRegistrar interface
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609532 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/ps')
-rw-r--r-- | src/java/org/apache/fop/render/ps/svg/PSSVGGraphics2D.java | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/src/java/org/apache/fop/render/ps/svg/PSSVGGraphics2D.java b/src/java/org/apache/fop/render/ps/svg/PSSVGGraphics2D.java index 7e0dcb496..8e7315801 100644 --- a/src/java/org/apache/fop/render/ps/svg/PSSVGGraphics2D.java +++ b/src/java/org/apache/fop/render/ps/svg/PSSVGGraphics2D.java @@ -33,14 +33,11 @@ import org.apache.batik.ext.awt.RadialGradientPaint; import org.apache.xmlgraphics.java2d.ps.PSGraphics2D; import org.apache.xmlgraphics.ps.PSGenerator; -import org.apache.fop.render.shading.Function; -import org.apache.fop.render.shading.GradientRegistrar; import org.apache.fop.render.shading.PSGradientFactory; import org.apache.fop.render.shading.Pattern; -import org.apache.fop.render.shading.Shading; -public class PSSVGGraphics2D extends PSGraphics2D implements GradientRegistrar { +public class PSSVGGraphics2D extends PSGraphics2D { private static final Log LOG = LogFactory.getLog(PSSVGGraphics2D.class); @@ -109,36 +106,4 @@ public class PSSVGGraphics2D extends PSGraphics2D implements GradientRegistrar { return new PSSVGGraphics2D(this); } - /** - * Registers a function object against the output format document - * @param function The function object to register - * @return Returns either the function which has already been registered - * or the current new registered object. - */ - public Function registerFunction(Function function) { - //Objects aren't needed to be registered in Postscript - return function; - } - - /** - * Registers a shading object against the otuput format document - * @param shading The shading object to register - * @return Returs either the shading which has already been registered - * or the current new registered object - */ - public Shading registerShading(Shading shading) { - //Objects aren't needed to be registered in Postscript - return shading; - } - - /** - * Registers a pattern object against the output format document - * @param pattern The pattern object to register - * @return Returns either the pattern which has already been registered - * or the current new registered object - */ - public Pattern registerPattern(Pattern pattern) { - // TODO Auto-generated method stub - return pattern; - } } |