pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r992040 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/
Date Thu, 02 Sep 2010 18:02:45 GMT
Author: lehmi
Date: Thu Sep  2 18:02:44 2010
New Revision: 992040

URL: http://svn.apache.org/viewvc?rev=992040&view=rev
Log:
PDFBOX-812: removed PageDrawer.colorChanged call

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingCMYKColor.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingCalRGBColor.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingColorSpace.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingGrayColor.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingICCBasedColor.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingRGBColor.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingCMYKColor.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingCalRGBColor.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingColorSpace.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingGrayColor.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingICCBasedColor.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingRGBColor.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingCMYKColor.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingCMYKColor.java?rev=992040&r1=992039&r2=992040&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingCMYKColor.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingCMYKColor.java
Thu Sep  2 18:02:44 2010
@@ -21,7 +21,6 @@ import java.util.List;
 
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSNumber;
-import org.apache.pdfbox.pdfviewer.PageDrawer;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorState;
 import org.apache.pdfbox.pdmodel.graphics.color.PDDeviceCMYK;
@@ -52,11 +51,5 @@ public class SetNonStrokingCMYKColor ext
             values[i] = ((COSNumber)arguments.get( i )).floatValue();
         }
         colorInstance.setColorSpaceValue( values );
-
-        if (context instanceof PageDrawer)
-        {
-            PageDrawer drawer = (PageDrawer)context;
-            drawer.colorChanged(false);
-        }
     }
 }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingCalRGBColor.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingCalRGBColor.java?rev=992040&r1=992039&r2=992040&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingCalRGBColor.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingCalRGBColor.java
Thu Sep  2 18:02:44 2010
@@ -21,7 +21,6 @@ import java.util.List;
 
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSNumber;
-import org.apache.pdfbox.pdfviewer.PageDrawer;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorState;
 import org.apache.pdfbox.util.PDFOperator;
 
@@ -48,11 +47,5 @@ public class SetNonStrokingCalRGBColor e
             values[i] = ((COSNumber)arguments.get( i )).floatValue();
         }
         colorInstance.setColorSpaceValue( values );
-
-        if (context instanceof PageDrawer)
-        {
-            PageDrawer drawer = (PageDrawer)context;
-            drawer.colorChanged(false);
-        }
     }
 }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingColorSpace.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingColorSpace.java?rev=992040&r1=992039&r2=992040&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingColorSpace.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingColorSpace.java
Thu Sep  2 18:02:44 2010
@@ -21,7 +21,6 @@ import java.util.List;
 
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSName;
-import org.apache.pdfbox.pdfviewer.PageDrawer;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpaceFactory;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorState;
@@ -66,11 +65,5 @@ public class SetNonStrokingColorSpace ex
             }
         }
         colorInstance.setColorSpaceValue( values );
-
-        if (context instanceof PageDrawer)
-        {
-            PageDrawer drawer = (PageDrawer)context;
-            drawer.colorChanged(false);
-        }
     }
 }
\ No newline at end of file

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingGrayColor.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingGrayColor.java?rev=992040&r1=992039&r2=992040&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingGrayColor.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingGrayColor.java
Thu Sep  2 18:02:44 2010
@@ -21,7 +21,6 @@ import java.util.List;
 
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSNumber;
-import org.apache.pdfbox.pdfviewer.PageDrawer;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorState;
 import org.apache.pdfbox.pdmodel.graphics.color.PDDeviceGray;
@@ -56,11 +55,5 @@ public class SetNonStrokingGrayColor ext
             throw new IOException( "Error: Expected at least one argument when setting non
stroking gray color");
         }
         colorInstance.setColorSpaceValue( values );
-
-        if (context instanceof PageDrawer)
-        {
-            PageDrawer drawer = (PageDrawer)context;
-            drawer.colorChanged(false);
-        }
     }
 }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingICCBasedColor.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingICCBasedColor.java?rev=992040&r1=992039&r2=992040&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingICCBasedColor.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingICCBasedColor.java
Thu Sep  2 18:02:44 2010
@@ -21,7 +21,6 @@ import java.util.List;
 
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSNumber;
-import org.apache.pdfbox.pdfviewer.PageDrawer;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorState;
 import org.apache.pdfbox.util.PDFOperator;
@@ -50,11 +49,5 @@ public class SetNonStrokingICCBasedColor
             values[i] = ((COSNumber)arguments.get( i )).floatValue();
         }
         colorInstance.setColorSpaceValue( values );
-        
-        if (context instanceof PageDrawer)
-        {
-            PageDrawer drawer = (PageDrawer)context;
-            drawer.colorChanged(true);
-        }
     }
 }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingRGBColor.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingRGBColor.java?rev=992040&r1=992039&r2=992040&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingRGBColor.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetNonStrokingRGBColor.java
Thu Sep  2 18:02:44 2010
@@ -21,7 +21,6 @@ import java.util.List;
 
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSNumber;
-import org.apache.pdfbox.pdfviewer.PageDrawer;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorState;
 import org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB;
@@ -52,11 +51,5 @@ public class SetNonStrokingRGBColor exte
             values[i] = ((COSNumber)arguments.get( i )).floatValue();
         }
         colorInstance.setColorSpaceValue( values );
-
-        if (context instanceof PageDrawer)
-        {
-            PageDrawer drawer = (PageDrawer)context;
-            drawer.colorChanged(false);
-        }
     }
 }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingCMYKColor.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingCMYKColor.java?rev=992040&r1=992039&r2=992040&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingCMYKColor.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingCMYKColor.java
Thu Sep  2 18:02:44 2010
@@ -21,7 +21,6 @@ import java.util.List;
 
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSNumber;
-import org.apache.pdfbox.pdfviewer.PageDrawer;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorState;
 import org.apache.pdfbox.pdmodel.graphics.color.PDDeviceCMYK;
 import org.apache.pdfbox.util.PDFOperator;
@@ -52,11 +51,5 @@ public class SetStrokingCMYKColor extend
             values[i] = ((COSNumber)arguments.get( i )).floatValue();
         }
         color.setColorSpaceValue( values );
-
-        if (context instanceof PageDrawer)
-        {
-            PageDrawer drawer = (PageDrawer)context;
-            drawer.colorChanged(true);
-        }
     }
 }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingCalRGBColor.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingCalRGBColor.java?rev=992040&r1=992039&r2=992040&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingCalRGBColor.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingCalRGBColor.java
Thu Sep  2 18:02:44 2010
@@ -21,7 +21,6 @@ import java.util.List;
 
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSNumber;
-import org.apache.pdfbox.pdfviewer.PageDrawer;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorState;
 import org.apache.pdfbox.util.PDFOperator;
 
@@ -50,10 +49,5 @@ public class SetStrokingCalRGBColor exte
             values[i] = ((COSNumber)arguments.get( i )).floatValue();
         }
         color.setColorSpaceValue( values );
-        if (context instanceof PageDrawer)
-        {
-            PageDrawer drawer = (PageDrawer)context;
-            drawer.colorChanged(true);
-        }
     }
 }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingColorSpace.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingColorSpace.java?rev=992040&r1=992039&r2=992040&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingColorSpace.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingColorSpace.java
Thu Sep  2 18:02:44 2010
@@ -21,7 +21,6 @@ import java.util.List;
 
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSName;
-import org.apache.pdfbox.pdfviewer.PageDrawer;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpaceFactory;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorState;
@@ -69,11 +68,5 @@ public class SetStrokingColorSpace exten
             }
         }
         color.setColorSpaceValue( values );
-
-        if (context instanceof PageDrawer)
-        {
-            PageDrawer drawer = (PageDrawer)context;
-            drawer.colorChanged(true);
-        }
     }
 }
\ No newline at end of file

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingGrayColor.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingGrayColor.java?rev=992040&r1=992039&r2=992040&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingGrayColor.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingGrayColor.java
Thu Sep  2 18:02:44 2010
@@ -21,8 +21,6 @@ import java.util.List;
 
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSNumber;
-import org.apache.pdfbox.pdfviewer.PageDrawer;
-import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorState;
 import org.apache.pdfbox.pdmodel.graphics.color.PDDeviceGray;
 import org.apache.pdfbox.util.PDFOperator;
@@ -57,10 +55,5 @@ public class SetStrokingGrayColor extend
             throw new IOException( "Error: Expected at least one argument when setting non
stroking gray color");
         }
         color.setColorSpaceValue( values );
-        if (context instanceof PageDrawer)
-        {
-            PageDrawer drawer = (PageDrawer)context;
-            drawer.colorChanged(true);
-        }
     }
 }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingICCBasedColor.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingICCBasedColor.java?rev=992040&r1=992039&r2=992040&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingICCBasedColor.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingICCBasedColor.java
Thu Sep  2 18:02:44 2010
@@ -21,7 +21,6 @@ import java.util.List;
 
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSNumber;
-import org.apache.pdfbox.pdfviewer.PageDrawer;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorState;
 import org.apache.pdfbox.util.PDFOperator;
@@ -50,11 +49,5 @@ public class SetStrokingICCBasedColor ex
             values[i] = ((COSNumber)arguments.get( i )).floatValue();
         }
         color.setColorSpaceValue( values );
-        
-        if (context instanceof PageDrawer)
-        {
-            PageDrawer drawer = (PageDrawer)context;
-            drawer.colorChanged(true);
-        }
     }
 }

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingRGBColor.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingRGBColor.java?rev=992040&r1=992039&r2=992040&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingRGBColor.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/operator/SetStrokingRGBColor.java
Thu Sep  2 18:02:44 2010
@@ -21,8 +21,6 @@ import java.util.List;
 
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSNumber;
-import org.apache.pdfbox.pdfviewer.PageDrawer;
-import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace;
 import org.apache.pdfbox.pdmodel.graphics.color.PDColorState;
 import org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB;
 import org.apache.pdfbox.util.PDFOperator;
@@ -53,10 +51,5 @@ public class SetStrokingRGBColor extends
             values[i] = ((COSNumber)arguments.get( i )).floatValue();
         }
         color.setColorSpaceValue( values );
-        if (context instanceof PageDrawer)
-        {
-            PageDrawer drawer = (PageDrawer)context;
-            drawer.colorChanged(true);
-        }
     }
 }



Mime
View raw message