diff options
author | Keiron Liddle <keiron@apache.org> | 2002-06-27 11:45:55 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-06-27 11:45:55 +0000 |
commit | d3b6621df5e65468d8fa65ad35e07e316635e97c (patch) | |
tree | 2e884f12b1b33cbb472a8cb8be218de5e5fbd95e /src/org/apache/fop/pdf/PDFState.java | |
parent | e86556e4f1a88428e437e805774090f40ca14ccb (diff) | |
download | xmlgraphics-fop-d3b6621df5e65468d8fa65ad35e07e316635e97c.tar.gz xmlgraphics-fop-d3b6621df5e65468d8fa65ad35e07e316635e97c.zip |
added transparency for images
made pdf package more self contained
started on patterns/gradients for svg
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194926 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/pdf/PDFState.java')
-rw-r--r-- | src/org/apache/fop/pdf/PDFState.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/apache/fop/pdf/PDFState.java b/src/org/apache/fop/pdf/PDFState.java index 45d91c5fb..036a00fed 100644 --- a/src/org/apache/fop/pdf/PDFState.java +++ b/src/org/apache/fop/pdf/PDFState.java @@ -47,6 +47,7 @@ public class PDFState { private final static String FONTSIZE = "fontSize"; private final static String FONTNAME = "fontName"; private final static String CLIP = "clip"; + private final static String GSTATE = "gstate"; Color color = Color.black; Color backcolor = Color.white; @@ -63,6 +64,7 @@ public class PDFState { float fontSize = 0; String fontName = ""; Shape clip = null; + PDFGState gstate = null; ArrayList stateStack = new ArrayList(); @@ -89,6 +91,7 @@ public class PDFState { saveMap.put(FONTSIZE, new Float(fontSize)); saveMap.put(FONTNAME, fontName); saveMap.put(CLIP, clip); + saveMap.put(GSTATE, gstate); stateStack.add(saveMap); @@ -114,6 +117,7 @@ public class PDFState { fontSize = ((Float)saveMap.get(FONTSIZE)).floatValue(); fontName = (String)saveMap.get(FONTNAME); clip = (Shape)saveMap.get(CLIP); + gstate = (PDFGState)saveMap.get(GSTATE); } } |