aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/svg
diff options
context:
space:
mode:
authorAdrian Cumiskey <acumiskey@apache.org>2008-11-20 16:38:44 +0000
committerAdrian Cumiskey <acumiskey@apache.org>2008-11-20 16:38:44 +0000
commit8a08b69ee6049677c1578a9c0791140caf6a1d6a (patch)
treedd944704ebf88860345226a0e1ff7c82cf774cae /src/java/org/apache/fop/svg
parent13992fd89fac85aa890b253468a405c3609c322c (diff)
downloadxmlgraphics-fop-8a08b69ee6049677c1578a9c0791140caf6a1d6a.tar.gz
xmlgraphics-fop-8a08b69ee6049677c1578a9c0791140caf6a1d6a.zip
SetCurrentPosition fix for line drawing.
AbstractPaintingState push(), pushAll(), pop(), popAll() renamed to save(), saveAll() and restore(), restoreAll(). Some Javadoc improvements/updates. Added Completable, Startable object writing interfaces. StructuredDataObject interface renamed to StructuredData. High level DataStream class moved from afp.modca to afp package. Graphics*Relative objects removed and feature provided by absolute implementation. GraphicsArea broken into GraphicsAreaBegin and GraphicsAreaEnd since areas are able to span more than one segment. Improvement in SetLineWidth thickness precision. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@719274 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/svg')
-rw-r--r--src/java/org/apache/fop/svg/AbstractFOPBridgeContext.java3
-rw-r--r--src/java/org/apache/fop/svg/PDFGraphics2D.java12
2 files changed, 9 insertions, 6 deletions
diff --git a/src/java/org/apache/fop/svg/AbstractFOPBridgeContext.java b/src/java/org/apache/fop/svg/AbstractFOPBridgeContext.java
index be1c3c122..ae4d67516 100644
--- a/src/java/org/apache/fop/svg/AbstractFOPBridgeContext.java
+++ b/src/java/org/apache/fop/svg/AbstractFOPBridgeContext.java
@@ -30,6 +30,9 @@ import org.apache.fop.fonts.FontInfo;
import org.apache.xmlgraphics.image.loader.ImageManager;
import org.apache.xmlgraphics.image.loader.ImageSessionContext;
+/**
+ * A FOP base implementation of a Batik BridgeContext.
+ */
public abstract class AbstractFOPBridgeContext extends BridgeContext {
/** The font list. */
diff --git a/src/java/org/apache/fop/svg/PDFGraphics2D.java b/src/java/org/apache/fop/svg/PDFGraphics2D.java
index ab0ece2a7..5053209e3 100644
--- a/src/java/org/apache/fop/svg/PDFGraphics2D.java
+++ b/src/java/org/apache/fop/svg/PDFGraphics2D.java
@@ -608,7 +608,7 @@ public class PDFGraphics2D extends AbstractGraphics2D implements NativeImageHand
if (newClip || newTransform) {
currentStream.write("q\n");
- paintingState.push();
+ paintingState.save();
if (newTransform) {
concatMatrix(tranvals);
}
@@ -634,7 +634,7 @@ public class PDFGraphics2D extends AbstractGraphics2D implements NativeImageHand
if (newClip || newTransform) {
currentStream.write("Q\n");
- paintingState.pop();
+ paintingState.restore();
}
return;
}
@@ -646,7 +646,7 @@ public class PDFGraphics2D extends AbstractGraphics2D implements NativeImageHand
doDrawing(false, true, false);
if (newClip || newTransform) {
currentStream.write("Q\n");
- paintingState.pop();
+ paintingState.restore();
}
}
@@ -1614,7 +1614,7 @@ public class PDFGraphics2D extends AbstractGraphics2D implements NativeImageHand
if (newClip || newTransform) {
currentStream.write("q\n");
- paintingState.push();
+ paintingState.save();
if (newTransform) {
concatMatrix(tranvals);
}
@@ -1638,7 +1638,7 @@ public class PDFGraphics2D extends AbstractGraphics2D implements NativeImageHand
if (newClip || newTransform) {
currentStream.write("Q\n");
- paintingState.pop();
+ paintingState.restore();
}
return;
}
@@ -1651,7 +1651,7 @@ public class PDFGraphics2D extends AbstractGraphics2D implements NativeImageHand
iter.getWindingRule() == PathIterator.WIND_EVEN_ODD);
if (newClip || newTransform) {
currentStream.write("Q\n");
- paintingState.pop();
+ paintingState.restore();
}
}