diff options
author | Jeremias Maerki <jeremias@apache.org> | 2008-12-09 15:00:35 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2008-12-09 15:00:35 +0000 |
commit | a6ddced309701a1ca8d79a9e7bec3288afba2cc8 (patch) | |
tree | c3d2bcfe7277246d9a2acc3675721a99f4de5727 /src/java/org/apache/fop/render/pdf/PDFContentGenerator.java | |
parent | 9d339f0968314f0cfcc4a720628fed1845292ce1 (diff) | |
parent | f9d4720b99f5e0fb423b097d7207dfab446d911c (diff) | |
download | xmlgraphics-fop-a6ddced309701a1ca8d79a9e7bec3288afba2cc8.tar.gz xmlgraphics-fop-a6ddced309701a1ca8d79a9e7bec3288afba2cc8.zip |
Merge from Trunk revisions 719662 - 724689.
Conflict for ImageHandler interface resolved by renaming Trunk's ImageHandler to ImageHandlerBase and extending the other ImageHandler from that.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@724729 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/pdf/PDFContentGenerator.java')
-rw-r--r-- | src/java/org/apache/fop/render/pdf/PDFContentGenerator.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java b/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java index 70e0f7eb5..4b0f35bec 100644 --- a/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java +++ b/src/java/org/apache/fop/render/pdf/PDFContentGenerator.java @@ -29,8 +29,8 @@ import org.apache.fop.pdf.PDFColor; import org.apache.fop.pdf.PDFDocument; import org.apache.fop.pdf.PDFFilterList; import org.apache.fop.pdf.PDFNumber; +import org.apache.fop.pdf.PDFPaintingState; import org.apache.fop.pdf.PDFResourceContext; -import org.apache.fop.pdf.PDFState; import org.apache.fop.pdf.PDFStream; import org.apache.fop.pdf.PDFTextUtil; import org.apache.fop.pdf.PDFXObject; @@ -52,7 +52,7 @@ public class PDFContentGenerator { private PDFStream currentStream; /** drawing state */ - protected PDFState currentState = null; + protected PDFPaintingState currentState = null; /** Text generation utility holding the current font status */ protected PDFTextUtil textutil; @@ -77,7 +77,7 @@ public class PDFContentGenerator { } }; - this.currentState = new PDFState(); + this.currentState = new PDFPaintingState(); } /** @@ -116,7 +116,7 @@ public class PDFContentGenerator { * Returns the {@code PDFState} associated with this instance. * @return the PDF state */ - public PDFState getState() { + public PDFPaintingState getState() { return this.currentState; } @@ -149,7 +149,7 @@ public class PDFContentGenerator { /** {@inheritDoc} */ protected void saveGraphicsState() { endTextObject(); - currentState.push(); + currentState.save(); currentStream.add("q\n"); } @@ -162,7 +162,7 @@ public class PDFContentGenerator { endTextObject(); currentStream.add("Q\n"); if (popState) { - currentState.pop(); + currentState.restore(); } } |