aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/area/Block.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/area/Block.java')
-rw-r--r--src/org/apache/fop/area/Block.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/org/apache/fop/area/Block.java b/src/org/apache/fop/area/Block.java
index 9073c23a7..5dcbb7df4 100644
--- a/src/org/apache/fop/area/Block.java
+++ b/src/org/apache/fop/area/Block.java
@@ -10,6 +10,7 @@ package org.apache.fop.area;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
+import java.util.Iterator;
import java.awt.geom.Rectangle2D;
// block areas hold either more block areas or line
@@ -54,6 +55,18 @@ public class Block extends BlockParent implements Serializable {
children.add(line);
}
+ public MinOptMax getContentBPD() {
+ MinOptMax bpd = new MinOptMax();
+ if(children != null) {
+ for(Iterator iter = children.iterator(); iter.hasNext(); ) {
+ Area area = (Area)iter.next();
+ MinOptMax mom = area.getContentBPD();
+ bpd.add(mom);
+ }
+ }
+ return bpd;
+ }
+
public int getPositioning() {
return positioning;
}