]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Replaced PresentationSpaceMixingRulesTriplet (currently unsupported in AFP environmen...
authorAdrian Cumiskey <acumiskey@apache.org>
Fri, 18 Jul 2008 15:18:03 +0000 (15:18 +0000)
committerAdrian Cumiskey <acumiskey@apache.org>
Fri, 18 Jul 2008 15:18:03 +0000 (15:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@677932 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/afp/modca/ObjectAreaDescriptor.java

index d09009f64df169532c80a1232f930c849697f902..bbfd42c53b8af853a9866b64b75a3482bf8c3232 100644 (file)
@@ -27,6 +27,7 @@ import org.apache.fop.render.afp.modca.triplets.DescriptorPositionTriplet;
 import org.apache.fop.render.afp.modca.triplets.MeasurementUnitsTriplet;
 import org.apache.fop.render.afp.modca.triplets.ObjectAreaSizeTriplet;
 import org.apache.fop.render.afp.modca.triplets.PresentationSpaceMixingRulesTriplet;
+import org.apache.fop.render.afp.modca.triplets.PresentationSpaceResetMixingTriplet;
 import org.apache.fop.render.afp.tools.BinaryUtils;
 
 /**
@@ -53,15 +54,18 @@ public class ObjectAreaDescriptor extends AbstractDescriptor {
     protected byte[] getTripletData() throws IOException {
         if (tripletData == null) {
             ByteArrayOutputStream bos = new ByteArrayOutputStream();
-            final byte descriptorPositionId = 0x01;
-            new DescriptorPositionTriplet(descriptorPositionId).write(bos);
+            
+            // Specifies the associated ObjectAreaPosition structured field
+            final byte oapId = 0x01;
+            new DescriptorPositionTriplet(oapId).write(bos);
+
             new MeasurementUnitsTriplet(widthRes, heightRes).write(bos);
+
             new ObjectAreaSizeTriplet(width, height).write(bos);
-            byte[] mixingRules = new byte[] {
-                 PresentationSpaceMixingRulesTriplet.RULE_FORE_ON_BACK, 
-                 PresentationSpaceMixingRulesTriplet.OVERPAINT
-            };
-            new PresentationSpaceMixingRulesTriplet(mixingRules).write(bos);
+            
+            new PresentationSpaceResetMixingTriplet(
+                    PresentationSpaceResetMixingTriplet.NOT_RESET).write(bos);
+            
             this.tripletData = bos.toByteArray();
         }
         return this.tripletData;