diff options
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(); |