diff options
author | Jeremias Maerki <jeremias@apache.org> | 2008-01-17 13:37:04 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2008-01-17 13:37:04 +0000 |
commit | 341da37f0397ee32757588ffe5d72b63ef51db5b (patch) | |
tree | 98ce246936721a8df7b736698cfc0328ad5c86b6 /src/java/org/apache/fop/render/afp | |
parent | 5b110dff04202cb6e9fd4181e231715b96372cc6 (diff) | |
download | xmlgraphics-fop-341da37f0397ee32757588ffe5d72b63ef51db5b.tar.gz xmlgraphics-fop-341da37f0397ee32757588ffe5d72b63ef51db5b.zip |
Fixed logic error setting the transformation matrix for block-container viewports (applies to absolute and fixed block-containers only). The CTM now only rotates and shifts the content as necessary for reference-orientation and writing-mode. All the rest of the transformation is done by the renderer which allows to add additional transformations as made possible by fox:transform (see below).
Important: External renderer implementations need to adjust for the change and implement the new method concatenateTransformationMatrix(AffineTransform) if the renderer is derived from AbstractPathOrientedRenderer.
New extension attribute fox:transform on fo:block-container allows free-form transformation (rotation, scaling etc.) of absolute and fixed block-containers. Supported only for PDF, PS and Java2D-based renderers.
Added missing region background painting for PCL renderer.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@612815 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/afp')
-rw-r--r-- | src/java/org/apache/fop/render/afp/AFPRenderer.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/afp/AFPRenderer.java b/src/java/org/apache/fop/render/afp/AFPRenderer.java index cdb2f2ec8..5cdd55d98 100644 --- a/src/java/org/apache/fop/render/afp/AFPRenderer.java +++ b/src/java/org/apache/fop/render/afp/AFPRenderer.java @@ -22,6 +22,7 @@ package org.apache.fop.render.afp; import java.awt.Color; import java.awt.Point; import java.awt.Rectangle; +import java.awt.geom.AffineTransform; import java.awt.geom.Rectangle2D; import java.awt.image.RenderedImage; import java.io.FileNotFoundException; @@ -525,6 +526,12 @@ public class AFPRenderer extends AbstractPathOrientedRenderer { // currentFontName = saveFontName; } + /** {@inheritDoc} */ + protected void concatenateTransformationMatrix(AffineTransform at) { + //Not used here since AFPRenderer defines its own renderBlockViewport() method. + throw new UnsupportedOperationException("NYI"); + } + /** * {@inheritDoc} */ |