* Abstract base class used by the ImageObject and GraphicsObject which both
* have define an ObjectEnvironmentGroup
*/
-public abstract class AbstractDataObject extends AbstractNamedAFPObject implements Startable, Completable {
+public abstract class AbstractDataObject extends AbstractNamedAFPObject
+ implements Startable, Completable {
/** the object environment group */
protected ObjectEnvironmentGroup objectEnvironmentGroup = null;
AFPResourceInfo resourceInfo = dataObjectInfo.getResourceInfo();
AFPResourceLevel resourceLevel = resourceInfo.getLevel();
ObjectAreaPosition objectAreaPosition = null;
+ int rotation = objectAreaInfo.getRotation();
if (resourceLevel.isInline()) {
int x = objectAreaInfo.getX();
int y = objectAreaInfo.getY();
- int rotation = objectAreaInfo.getRotation();
objectAreaPosition = factory.createObjectAreaPosition(x, y, rotation);
} else {
// positional values are specified in the oaOffset of the include object
- objectAreaPosition = factory.createObjectAreaPosition(0, 0, 0);
+ objectAreaPosition = factory.createObjectAreaPosition(0, 0, rotation);
}
objectAreaPosition.setReferenceCoordinateSystem(
ObjectAreaPosition.REFCSYS_PAGE_SEGMENT_RELATIVE);