diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2008-05-29 14:44:56 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2008-05-29 14:44:56 +0000 |
commit | df16894515e5927bc1442225fb0210d2db4c11c9 (patch) | |
tree | 638f26108c1c4a97810d3ec9dac207f5ff44dfb6 /src | |
parent | 148262a130fc9d7a0c6c73bd1b552f09dbe8ce31 (diff) | |
download | xmlgraphics-fop-df16894515e5927bc1442225fb0210d2db4c11c9.tar.gz xmlgraphics-fop-df16894515e5927bc1442225fb0210d2db4c11c9.zip |
Added accessor/instantiator method for ObjectEnvironmentGroup
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@661340 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/render/afp/modca/AbstractDataObject.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/render/afp/modca/AbstractDataObject.java b/src/java/org/apache/fop/render/afp/modca/AbstractDataObject.java index a57526a04..9bf713127 100644 --- a/src/java/org/apache/fop/render/afp/modca/AbstractDataObject.java +++ b/src/java/org/apache/fop/render/afp/modca/AbstractDataObject.java @@ -62,11 +62,19 @@ public abstract class AbstractDataObject extends AbstractPreparedObjectContainer */ public void setViewport(int x, int y, int width, int height, int widthRes, int heightRes, int rotation) { + getObjectEnvironmentGroup().setObjectArea(x, y, width, height, + widthRes, heightRes, rotation); + } + + /** + * Gets the ObjectEnvironmentGroup + * @return the object environment group + */ + protected ObjectEnvironmentGroup getObjectEnvironmentGroup() { if (objectEnvironmentGroup == null) { objectEnvironmentGroup = new ObjectEnvironmentGroup(); } - objectEnvironmentGroup.setObjectArea(x, y, width, height, - widthRes, heightRes, rotation); + return objectEnvironmentGroup; } /** |