diff options
author | Manuel Mall <manuel@apache.org> | 2005-11-14 05:05:35 +0000 |
---|---|---|
committer | Manuel Mall <manuel@apache.org> | 2005-11-14 05:05:35 +0000 |
commit | 862f28b0608e4c669b19c0730b9f730cfdb69076 (patch) | |
tree | d7eaf88fce8870c085e9faab648435b138064ade /src/java/org/apache/fop/area/inline/FilledArea.java | |
parent | 35f6e9d8d347d74de70a37a9ca5472275461c306 (diff) | |
download | xmlgraphics-fop-862f28b0608e4c669b19c0730b9f730cfdb69076.tar.gz xmlgraphics-fop-862f28b0608e4c669b19c0730b9f730cfdb69076.zip |
Correct a few more problems related to leaders: text-align was not handled correctly, use-content was drawing incorrect borders
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@344037 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area/inline/FilledArea.java')
-rw-r--r-- | src/java/org/apache/fop/area/inline/FilledArea.java | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/area/inline/FilledArea.java b/src/java/org/apache/fop/area/inline/FilledArea.java index 9c3bcf4ca..214e4110a 100644 --- a/src/java/org/apache/fop/area/inline/FilledArea.java +++ b/src/java/org/apache/fop/area/inline/FilledArea.java @@ -21,6 +21,7 @@ package org.apache.fop.area.inline; import java.util.List; import java.util.ListIterator; import java.util.ArrayList; +import java.util.Iterator; /** * Filled area. @@ -84,7 +85,21 @@ public class FilledArea extends InlineParent { } /** - * Get the child areas for this filed area. + * @see org.apache.fop.area.Area#getBPD + */ + public int getBPD() { + int bpd = 0; + for (Iterator childAreaIt = getChildAreas().iterator(); childAreaIt.hasNext();) { + InlineArea area = (InlineArea)childAreaIt.next(); + if (bpd < area.getBPD()) { + bpd = area.getBPD(); + } + } + return bpd; + } + + /** + * Get the child areas for this filled area. * This copies the references of the inline areas so that * it fills the total width of the area a whole number of times * for the unit width. |