1 51 package org.apache.fop.layout; 52 53 import org.apache.fop.fo.properties.Position; 54 55 60 public class BodyRegionArea extends RegionArea { 61 62 private int columnCount; 64 private int columnGap; 65 66 public BodyRegionArea(int xPosition, int yPosition, int width, 67 int height) { 68 super(xPosition, yPosition, width, height); 69 } 70 71 public BodyAreaContainer makeBodyAreaContainer() { 72 BodyAreaContainer area = 73 new BodyAreaContainer(null, xPosition, yPosition, width, 74 height, Position.ABSOLUTE, columnCount, 75 columnGap); 76 area.setBackground(getBackground()); 77 return area; 78 } 79 80 public void setColumnCount(int columnCount) { 81 this.columnCount = columnCount; 82 } 83 84 public int getColumnCount() { 85 return columnCount; 86 } 87 88 public void setColumnGap(int columnGap) { 89 this.columnGap = columnGap; 90 } 91 92 public int getColumnGap() { 93 return columnGap; 94 } 95 96 } 97 | Popular Tags |