1 51 package org.apache.fop.layout; 52 53 import java.awt.Rectangle ; 55 56 import org.apache.fop.layout.inline.InlineArea; 58 59 65 public class LinkedRectangle { 66 67 70 protected Rectangle link; 71 72 75 protected LineArea lineArea; 76 77 80 protected InlineArea inlineArea; 81 82 public LinkedRectangle(Rectangle link, LineArea lineArea, 83 InlineArea inlineArea) { 84 this.link = link; 85 this.lineArea = lineArea; 86 this.inlineArea = inlineArea; 87 } 88 89 public LinkedRectangle(LinkedRectangle lr) { 90 this.link = new Rectangle (lr.getRectangle()); 91 this.lineArea = lr.getLineArea(); 92 this.inlineArea = lr.getInlineArea(); 93 } 94 95 public void setRectangle(Rectangle link) { 96 this.link = link; 97 } 98 99 public Rectangle getRectangle() { 100 return this.link; 101 } 102 103 public LineArea getLineArea() { 104 return this.lineArea; 105 } 106 107 public void setLineArea(LineArea lineArea) { 108 this.lineArea = lineArea; 109 } 110 111 public InlineArea getInlineArea() { 112 return this.inlineArea; 113 } 114 115 public void setLineArea(InlineArea inlineArea) { 116 this.inlineArea = inlineArea; 117 } 118 119 public void setX(int x) { 120 this.link.x = x; 121 } 122 123 public void setY(int y) { 124 this.link.y = y; 125 } 126 127 public void setWidth(int width) { 128 this.link.width = width; 129 } 130 131 public void setHeight(int height) { 132 this.link.height = height; 133 } 134 135 public int getX() { 136 return this.link.x; 137 } 138 139 public int getY() { 140 return this.link.y; 141 } 142 143 public int getWidth() { 144 return this.link.width; 145 } 146 147 public int getHeight() { 148 return this.link.height; 149 } 150 151 } 152 | Popular Tags |