summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/fop/area/PaddingRectangle.java61
1 files changed, 59 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/area/PaddingRectangle.java b/src/java/org/apache/fop/area/PaddingRectangle.java
index c02cb1b2d..2e72d2ca5 100644
--- a/src/java/org/apache/fop/area/PaddingRectangle.java
+++ b/src/java/org/apache/fop/area/PaddingRectangle.java
@@ -32,12 +32,28 @@ public class PaddingRectangle extends AreaFrame {
private static final String revision = "$Revision$";
- public PaddingRectangle(Area area, Area.AreaGeometry content) {
+ /**
+ * Instantiates a <code>PaddingRectangle</code> within the given instance
+ * of <code>Area</code>, with the given <code>ContentRectangle</code> as
+ * content.
+ * @param area the containing area instance
+ * @param content the <i>content-rectangle</i> framed by this padding
+ */
+ public PaddingRectangle(Area area, ContentRectangle content) {
super(area, content);
borders = new BorderRectangle(area, this);
}
- /**
+ /**
+ * Instantiates a <code>PaddingRectangle</code> within the given instance
+ * of <code>Area</code>, with the given offset and dimension values, the
+ * given <code>ContentRectangle</code> as content at the given offset from
+ * the origin corner of the <i>padding-rectangle</i>.
+ * @param area the containing area instance
+ * @param ipOffset
+ * @param bpOffset
+ * @param ipDim
+ * @param bpDim
* @param contents
* @param contentOffset
*/
@@ -64,4 +80,45 @@ public class PaddingRectangle extends AreaFrame {
public BorderRectangle getBorders() {
return borders;
}
+
+ /**
+ * {@inheritDoc}
+ * <p>The containing <code>BorderRectangle</code> is notified of the
+ * change.
+ */
+ public void setTop(double top) {
+ super.setTop(top);
+ borders.setContents(this);
+ }
+
+ /**
+ * {@inheritDoc}
+ * <p>The containing <code>BorderRectangle</code> is notified of the
+ * change.
+ */
+ public void setLeft(double left) {
+ super.setLeft(left);
+ borders.setContents(this);
+ }
+
+ /**
+ * {@inheritDoc}
+ * <p>The containing <code>BorderRectangle</code> is notified of the
+ * change.
+ */
+ public void setBottom(double bottom) {
+ super.setBottom(bottom);
+ borders.setContents(this);
+ }
+
+ /**
+ * {@inheritDoc}
+ * <p>The containing <code>BorderRectangle</code> is notified of the
+ * change.
+ */
+ public void setRight(double right) {
+ super.setRight(right);
+ borders.setContents(this);
+ }
+
}