diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2008-06-09 11:19:44 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2008-06-09 11:19:44 +0000 |
commit | 1dbe17e5b2edc0639f92cbb7644107dae8f6ad7e (patch) | |
tree | db41dd50af80e9fa35cef7f2e2f26fb36756bb03 /src/java/org/apache/fop/render/afp/modca/IncludeObject.java | |
parent | 2665e6b83c40656cc728ef356bb932387ca9207e (diff) | |
download | xmlgraphics-fop-1dbe17e5b2edc0639f92cbb7644107dae8f6ad7e.tar.gz xmlgraphics-fop-1dbe17e5b2edc0639f92cbb7644107dae8f6ad7e.zip |
* Created new AreaObjectInfo class POJO to cleanup all this long parameter passingthat seems to be going on.
* convertToGrayscale() method changed so that it is performing an atomic function, again simplified/cleaned up parameter passing.
* Fixed bug with handling TIFF images.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@664679 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/afp/modca/IncludeObject.java')
-rw-r--r-- | src/java/org/apache/fop/render/afp/modca/IncludeObject.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/render/afp/modca/IncludeObject.java b/src/java/org/apache/fop/render/afp/modca/IncludeObject.java index 188664264..85cb283a8 100644 --- a/src/java/org/apache/fop/render/afp/modca/IncludeObject.java +++ b/src/java/org/apache/fop/render/afp/modca/IncludeObject.java @@ -23,6 +23,7 @@ import java.io.IOException; import java.io.OutputStream; import org.apache.fop.render.afp.DataObjectInfo; +import org.apache.fop.render.afp.ObjectAreaInfo; import org.apache.fop.render.afp.modca.triplets.FullyQualifiedNameTriplet; import org.apache.fop.render.afp.modca.triplets.MappingOptionTriplet; import org.apache.fop.render.afp.modca.triplets.ObjectClassificationTriplet; @@ -133,8 +134,8 @@ public class IncludeObject extends AbstractNamedAFPObject implements DataObjectA } DataObjectInfo dataObjectInfo = dataObjectAccessor.getDataObjectInfo(); - - setObjectArea(dataObjectInfo.getX(), dataObjectInfo.getY()); + ObjectAreaInfo objectAreaInfo = dataObjectInfo.getObjectAreaInfo(); + setObjectArea(objectAreaInfo.getX(), objectAreaInfo.getY()); super.setFullyQualifiedName( FullyQualifiedNameTriplet.TYPE_REPLACE_FIRST_GID_NAME, @@ -147,11 +148,11 @@ public class IncludeObject extends AbstractNamedAFPObject implements DataObjectA ObjectClassificationTriplet.CLASS_TIME_INVARIANT_PAGINATED_PRESENTATION_OBJECT, objectType); - super.setMeasurementUnits(dataObjectInfo.getWidthRes(), dataObjectInfo.getHeightRes()); + super.setMeasurementUnits(objectAreaInfo.getWidthRes(), objectAreaInfo.getHeightRes()); super.setMappingOption(MappingOptionTriplet.SCALE_TO_FIT); - super.setObjectAreaSize(dataObjectInfo.getWidth(), dataObjectInfo.getHeight()); + super.setObjectAreaSize(objectAreaInfo.getWidth(), objectAreaInfo.getHeight()); } /** |