diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2014-07-10 17:53:22 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2014-07-10 17:53:22 +0000 |
commit | 290077cc211419f8ddae314657704da1a7204cdc (patch) | |
tree | 775c3cf6ab769f05317dd5655bda4a0c30482d70 /src/java/org/apache/fop/render/ps | |
parent | 2cf4301b4fae392b6d904457974092f3634902c0 (diff) | |
download | xmlgraphics-fop-290077cc211419f8ddae314657704da1a7204cdc.tar.gz xmlgraphics-fop-290077cc211419f8ddae314657704da1a7204cdc.zip |
Moved checks for repeated gradient out of gradient-creation methods
Will ease factorizing of common code between PDF and PostScript
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609527 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 | 10 |
1 files changed, 0 insertions, 10 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 12a482c94..c4f46ede9 100644 --- a/src/java/org/apache/fop/render/ps/svg/PSSVGGraphics2D.java +++ b/src/java/org/apache/fop/render/ps/svg/PSSVGGraphics2D.java @@ -97,11 +97,6 @@ public class PSSVGGraphics2D extends PSGraphics2D implements GradientRegistrar { } private void handleLinearGradient(LinearGradientPaint gp, PSGenerator gen) throws IOException { - MultipleGradientPaint.CycleMethodEnum cycle = gp.getCycleMethod(); - if (cycle != MultipleGradientPaint.NO_CYCLE) { - return; - } - List<Double> matrix = createGradientTransform(gp); Point2D startPoint = gp.getStartPoint(); @@ -125,11 +120,6 @@ public class PSSVGGraphics2D extends PSGraphics2D implements GradientRegistrar { } private void handleRadialGradient(RadialGradientPaint gp, PSGenerator gen) throws IOException { - MultipleGradientPaint.CycleMethodEnum cycle = gp.getCycleMethod(); - if (cycle != MultipleGradientPaint.NO_CYCLE) { - return; - } - List<Double> matrix = createGradientTransform(gp); double ar = gp.getRadius(); |