diff options
author | Karen Lease <klease@apache.org> | 2002-05-26 15:02:44 +0000 |
---|---|---|
committer | Karen Lease <klease@apache.org> | 2002-05-26 15:02:44 +0000 |
commit | cf792550e99092e4137e54393d355263b7e34e5e (patch) | |
tree | 30fe8efe2ca295184c85aa6d89202bcacfc2d8f1 /src/org/apache/fop/area/LineArea.java | |
parent | 17c3c8e200822fb2856be9358e61bf50539c7cec (diff) | |
download | xmlgraphics-fop-cf792550e99092e4137e54393d355263b7e34e5e.tar.gz xmlgraphics-fop-cf792550e99092e4137e54393d355263b7e34e5e.zip |
PR:
Obtained from:
Submitted by:
Reviewed by:
Separate Position from BreakPoss and create Leaf and NonLeafPosition classes.
Move management of Trait to top level Area class and use HAshMap instead of List.
Generalize handling of Trait in XMLRenderer and AreaTreeBuilder.
Improve handling of word-space and inter-area inline spaces in BP-style layout
managers. Set border and padding traits on InlineParent areas.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194840 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/area/LineArea.java')
-rw-r--r-- | src/org/apache/fop/area/LineArea.java | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/org/apache/fop/area/LineArea.java b/src/org/apache/fop/area/LineArea.java index 25d4d66dc..306d50be6 100644 --- a/src/org/apache/fop/area/LineArea.java +++ b/src/org/apache/fop/area/LineArea.java @@ -46,6 +46,12 @@ public class LineArea extends Area { return new MinOptMax(lineHeight); } + public void addChild(Area childArea) { + if (childArea instanceof InlineArea) { + addInlineArea((InlineArea)childArea); + } + } + public void addInlineArea(InlineArea area) { inlineAreas.add(area); } @@ -54,20 +60,6 @@ public class LineArea extends Area { return inlineAreas; } - // store properties in array list, need better solution - ArrayList props = null; - - public void addTrait(Trait prop) { - if (props == null) { - props = new ArrayList(); - } - props.add(prop); - } - - public List getTraitList() { - return props; - } - public void verticalAlign(int lh, int lead, int follow) { int maxHeight = lh; List inlineAreas = getInlineAreas(); |