1 51 package org.apache.fop.layout; 52 53 import org.apache.fop.fo.properties.*; 54 55 public class RegionArea { 56 57 protected int xPosition; 58 protected int yPosition; 59 protected int width; 60 protected int height; 61 62 protected BackgroundProps background; 63 64 public RegionArea(int xPosition, int yPosition, int width, int height) { 65 this.xPosition = xPosition; 66 this.yPosition = yPosition; 67 this.width = width; 68 this.height = height; 69 } 70 71 public AreaContainer makeAreaContainer() { 72 AreaContainer area = 73 new AreaContainer(null, xPosition, yPosition, width, height, 74 Position.ABSOLUTE, true); 75 area.setBackground(getBackground()); 76 return area; 77 } 78 79 public BackgroundProps getBackground() { 80 return this.background; 81 } 82 83 public void setBackground(BackgroundProps bg) { 84 this.background = bg; 85 } 86 87 public int getHeight() { 88 return height; 89 } 90 91 public int getWidth() { 92 return width; 93 } 94 95 } 96 | Popular Tags |