diff options
author | Jeremias Maerki <jeremias@apache.org> | 2009-01-13 07:34:18 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2009-01-13 07:34:18 +0000 |
commit | 19b53a3f5d246a17f6da377116ac37360680f929 (patch) | |
tree | 624a00413eaf452a38db9638b60cc912a7df3f5b /src/java/org/apache/fop/render | |
parent | 9fc8b23408b272b6dca8b34ce6037617734268f3 (diff) | |
download | xmlgraphics-fop-19b53a3f5d246a17f6da377116ac37360680f929.tar.gz xmlgraphics-fop-19b53a3f5d246a17f6da377116ac37360680f929.zip |
Added clipping support.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@734062 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render')
-rw-r--r-- | src/java/org/apache/fop/render/java2d/Java2DPainter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/java2d/Java2DPainter.java b/src/java/org/apache/fop/render/java2d/Java2DPainter.java index a3b7bb86e..c32df4f38 100644 --- a/src/java/org/apache/fop/render/java2d/Java2DPainter.java +++ b/src/java/org/apache/fop/render/java2d/Java2DPainter.java @@ -127,7 +127,7 @@ public class Java2DPainter extends AbstractIFPainter { saveGraphicsState(); try { concatenateTransformationMatrix(transform); - //TODO CLIP! + clipRect(clipRect); } catch (IOException ioe) { throw new IFException("I/O error in startViewport()", ioe); } @@ -172,6 +172,7 @@ public class Java2DPainter extends AbstractIFPainter { /** {@inheritDoc} */ public void clipRect(Rectangle rect) throws IFException { + getState().updateClip(rect); } /** {@inheritDoc} */ |