]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
ADD: Add shading object to page resources
authorarved <arved@unknown>
Tue, 21 Mar 2000 10:54:37 +0000 (10:54 +0000)
committerarved <arved@unknown>
Tue, 21 Mar 2000 10:54:37 +0000 (10:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193309 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/pdf/PDFPage.java

index 63ef4e96067b607ecbb4c884d9c8fee0a6abcde1..c3cfc632693dc9696ff803cc12208f6f6b569407 100644 (file)
@@ -88,8 +88,7 @@ public class PDFPage extends PDFObject {
      * @param pageheight the page's height in points
      */
     public PDFPage(int number, PDFResources resources,
-                   PDFStream contents,
-                  int pagewidth,
+                  PDFStream contents, int pagewidth,
                   int pageheight) {
 
        /* generic creation of object */
@@ -112,7 +111,7 @@ public class PDFPage extends PDFObject {
     public void setParent(PDFPages parent) {
        this.parent = parent;
     }
-
+       
     /**
      * set this page's annotation list
      *
@@ -131,6 +130,9 @@ public class PDFPage extends PDFObject {
        return this.annotList;
     }
 
+       public void addShading(PDFShading shading) {
+               this.resources.addShading(shading);
+       }
     /**
      * represent this object as PDF
      *