aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render
diff options
context:
space:
mode:
authorAdrian Cumiskey <acumiskey@apache.org>2008-07-18 15:18:03 +0000
committerAdrian Cumiskey <acumiskey@apache.org>2008-07-18 15:18:03 +0000
commit49868791f418b4cb7494e6ab9b402265253aca41 (patch)
treea73d6ebe65cbcaec7998fc2a6837605574f8a421 /src/java/org/apache/fop/render
parent1c8e854d814a64633af4c09b8a97017bda8ea4c5 (diff)
downloadxmlgraphics-fop-49868791f418b4cb7494e6ab9b402265253aca41.tar.gz
xmlgraphics-fop-49868791f418b4cb7494e6ab9b402265253aca41.zip
Replaced PresentationSpaceMixingRulesTriplet (currently unsupported in AFP environments...) with PresentationSpaceResetMixingTriplet.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@677932 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render')
-rw-r--r--src/java/org/apache/fop/render/afp/modca/ObjectAreaDescriptor.java18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/java/org/apache/fop/render/afp/modca/ObjectAreaDescriptor.java b/src/java/org/apache/fop/render/afp/modca/ObjectAreaDescriptor.java
index d09009f64..bbfd42c53 100644
--- a/src/java/org/apache/fop/render/afp/modca/ObjectAreaDescriptor.java
+++ b/src/java/org/apache/fop/render/afp/modca/ObjectAreaDescriptor.java
@@ -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;