else {
MessageHandler.errorln("ERROR: simple-page-master must have a region of class "+RegionBody.REGION_CLASS);
}
if (getRegion(RegionBefore.REGION_CLASS) != null) {
RegionArea before =
getRegion(RegionBefore.REGION_CLASS).makeRegionArea(contentRectangleXPosition,
contentRectangleYPosition,contentRectangleWidth,contentRectangleHeight);
this.pageMaster.addBefore(before);
beforePrecedence = ((RegionBefore)getRegion(RegionBefore.REGION_CLASS)).getPrecedence();
beforeHeight = before.getHeight();
}
else {
beforePrecedence = false;
}
if (getRegion(RegionAfter.REGION_CLASS) != null) {
RegionArea after =
getRegion(RegionAfter.REGION_CLASS).makeRegionArea(contentRectangleXPosition,
contentRectangleYPosition,contentRectangleWidth,contentRectangleHeight);
this.pageMaster.addAfter(after);
afterPrecedence = ((RegionAfter)getRegion(RegionAfter.REGION_CLASS)).getPrecedence();
afterHeight = after.getHeight();
}
else {
afterPrecedence = false;
}
if (getRegion(RegionStart.REGION_CLASS) != null) {
RegionArea start =
((RegionStart)getRegion(RegionStart.REGION_CLASS)).makeRegionArea(
contentRectangleXPosition,
contentRectangleYPosition,contentRectangleWidth,contentRectangleHeight,
beforePrecedence, afterPrecedence, beforeHeight, afterHeight);
this.pageMaster.addStart(start);
}
if (getRegion(RegionEnd.REGION_CLASS) != null) {
RegionArea end =
((RegionEnd)getRegion(RegionEnd.REGION_CLASS)).makeRegionArea(
contentRectangleXPosition,
contentRectangleYPosition,contentRectangleWidth,contentRectangleHeight,
beforePrecedence, afterPrecedence, beforeHeight, afterHeight);
this.pageMaster.addEnd(end);