diff options
author | Peter Bernard West <pbwest@apache.org> | 2004-07-10 16:35:25 +0000 |
---|---|---|
committer | Peter Bernard West <pbwest@apache.org> | 2004-07-10 16:35:25 +0000 |
commit | aabfba480046f5c33e9644db69d2a38a759a89bf (patch) | |
tree | 9a508a075024e0ddc7bcc9abe08eef3f8d2de00c | |
parent | fa166cb382a3ee537c9077dcb46ee9278205d893 (diff) | |
download | xmlgraphics-fop-aabfba480046f5c33e9644db69d2a38a759a89bf.tar.gz xmlgraphics-fop-aabfba480046f5c33e9644db69d2a38a759a89bf.zip |
set(Top,Bottom,Left,Right) modified to update BorderRectangle
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197780 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/area/PaddingRectangle.java | 61 |
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); + } + } |