pbwest 2004/07/10 09:31:34
Modified: src/java/org/apache/fop/area Tag: FOP_0-20-0_Alt-Design
BlockAllocationRectangle.java
Log:
public setAllocationFrame extracted so that allocation-rectangle
can be updated on changes to the other frames of an area
Revision Changes Path
No revision
No revision
1.1.2.3 +13 -6
xml-fop/src/java/org/apache/fop/area/Attic/BlockAllocationRectangle.java
Index: BlockAllocationRectangle.java
===================================================================
RCS file:
/home/cvs/xml-fop/src/java/org/apache/fop/area/Attic/BlockAllocationRectangle.java,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -r1.1.2.2 -r1.1.2.3
--- BlockAllocationRectangle.java 29 Jun 2004 07:41:45 -0000 1.1.2.2
+++ BlockAllocationRectangle.java 10 Jul 2004 16:31:34 -0000 1.1.2.3
@@ -27,6 +27,10 @@
public class BlockAllocationRectangle extends AreaFrame implements
AllocationRectangle {
+ private PaddingRectangle padding;
+ private BorderRectangle borders;
+ private SpacesRectangle spaces;
+
/**
* @param area
* @param contents
@@ -43,13 +47,16 @@
// Now extend the AreaFrame to co-incide with the
// edges of the border rectangle in the BPDir, and with the edges of
// the spaces rectangle in the IPDir.
- PaddingRectangle padding = area.getPadding();
- BorderRectangle borders = area.getBorders();
- SpacesRectangle spaces = area.getSpaces();
+ padding = area.getPadding();
+ borders = area.getBorders();
+ spaces = area.getSpaces();
+ setAllocationFrame();
+ }
+
+ public void setAllocationFrame() {
setStart(spaces.getStart() + borders.getStart() + padding.getStart());
setEnd(spaces.getEnd() + borders.getEnd() + padding.getEnd());
setBefore(borders.getBefore() + padding.getBefore());
setAfter(borders.getAfter() + padding.getAfter());
}
-
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]