*
* @param child the child area to add
*/
- public void addChild(Area child) {
+ public void addChildArea(Area child) {
}
/**
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* @param childArea the inline child area to add
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
if (childArea instanceof InlineArea) {
addInlineArea((InlineArea)childArea);
}
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* @param childArea the child area to add
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
if (childArea instanceof InlineArea) {
inlines.add(childArea);
increaseIPD(((InlineArea) childArea).getAllocIPD());
// protected void flush(Area area, boolean bFinished) {
// if (area != null) {
// // area.setFinished(true);
- // parentLM.addChild(area, bFinished); // ????
+ // parentLM.addChildArea(area, bFinished); // ????
// if (bFinished) {
// setCurrentArea(null);
// }
protected void flush() {
}
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
}
/**
/**
* Add the child to the block container.
*
- * @see org.apache.fop.layoutmgr.LayoutManager#addChild(Area)
+ * @see org.apache.fop.layoutmgr.LayoutManager#addChildArea(Area)
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
if (referenceArea != null) {
referenceArea.addBlock((Block) childArea);
}
}
/**
- * @see org.apache.fop.layoutmgr.LayoutManager#addChild(org.apache.fop.area.Area)
+ * @see org.apache.fop.layoutmgr.LayoutManager#addChildArea(Area)
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
if (curBlockArea != null) {
if (childArea instanceof LineArea) {
curBlockArea.addLineArea((LineArea) childArea);
if (sp != 0) {
Block spacer = new Block();
spacer.setBPD(sp);
- parentLM.addChild(spacer);
+ parentLM.addChildArea(spacer);
}
}
* If so, add it. Otherwise initiate breaking.
* @param childArea the area to add: will be some block-stacked Area.
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
addChildToArea(childArea, getCurrentArea());
}
*/
protected void flush() {
if (getCurrentArea() != null) {
- parentLM.addChild(getCurrentArea());
+ parentLM.addChildArea(getCurrentArea());
}
}
return holder;
}
- /** @see org.apache.fop.layoutmgr.LayoutManager */
- public void addChild(Area childArea) {
- holder.addChild(childArea);
+ /**
+ * @see org.apache.fop.layoutmgr.LayoutManager#addChildArea(Area)
+ **/
+ public void addChildArea(Area childArea) {
+ holder.addChildArea(childArea);
}
/**
* Add child area to a the correct container, depending on its
* area class. A Flow can fill at most one area container of any class
* at any one time. The actual work is done by BlockStackingLM.
- * @param childArea child area to add
+ * @see org.apache.fop.layoutmgr.LayoutManager#addChildArea(Area)
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
addChildToArea(childArea,
this.currentAreas[childArea.getAreaClass()]);
}
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
setTraits(bAreaCreated, !bIsLast);
- parentLM.addChild(getCurrentArea());
+ parentLM.addChildArea(getCurrentArea());
context.setFlags(LayoutContext.LAST_AREA, bIsLast);
bAreaCreated = true;
}
}
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
// Make sure childArea is inline area
if (childArea instanceof InlineArea) {
Area parent = getCurrentArea();
getContext().getLeadingSpace().resolve(false),
getContext().getSpaceAdjust());
}
- parent.addChild(childArea);
+ parent.addChildArea(childArea);
}
}
//getLogger().debug("Add leading space: " + iAdjust);
Space ls = new Space();
ls.setIPD(iAdjust);
- parentArea.addChild(ls);
+ parentArea.addChildArea(ls);
}
}
}
*
* @param childArea the child area to add
*/
- void addChild(Area childArea);
+ void addChildArea(Area childArea);
/**
* Tell the layout manager to add all the child areas implied
}
FilledArea fa = new FilledArea();
fa.setUnitWidth(width);
- fa.addChild(t);
+ fa.addChildArea(t);
if (spacer != null) {
- fa.addChild(spacer);
+ fa.addChildArea(spacer);
}
fa.setBPD(font.getAscender());
}
fa.setUnitWidth(width);
if (spacer != null) {
- fa.addChild(spacer);
+ fa.addChildArea(spacer);
}
leaderArea = fa;
}
clm.addAreas(contentIter, context);
offsetArea(context);
- parentLM.addChild(curArea);
+ parentLM.addChildArea(curArea);
while (posIter.hasNext()) {
posIter.next();
* This is a leaf-node, so this method is never called.
* @param childArea the childArea to add
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
}
/**
offsetArea(context);
widthAdjustArea(context);
- parentLM.addChild(curArea);
+ parentLM.addChildArea(curArea);
while (posIter.hasNext()) {
posIter.next();
addSpace(lineArea, lc.getTrailingSpace().resolve(true),
lc.getSpaceAdjust());
}
- parentLM.addChild(lineArea);
+ parentLM.addChildArea(lineArea);
}
setCurrentArea(null); // ?? necessary
}
/**
* For now, only handle normal flow areas.
- *
- * @param childArea the child area to add
+ * @see org.apache.fop.layoutmgr.LayoutManager#addChildArea(org.apache.fop.area.Area)
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
if (childArea == null) {
return;
}
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Add child area to a the correct container, depending on its
* area class. A Flow can fill at most one area container of any class
* at any one time. The actual work is done by BlockStackingLM.
- * @param childArea child area to add
+ * @see org.apache.fop.layoutmgr.LayoutManager#addChildArea(Area)
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
region.addBlock((Block)childArea);
}
word = t;
if (word != null) {
- parentLM.addChild(word);
+ parentLM.addChildArea(word);
}
}
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* @param childArea the child to add to the cell
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
if (curBlockArea != null) {
curBlockArea.addBlock((Block) childArea);
}
*
* @param childArea the child area to add
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
if (curBlockArea != null) {
curBlockArea.addBlock((Block) childArea);
}
*
* @param childArea the child area
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
if (curBlockArea != null) {
curBlockArea.addBlock((Block) childArea);
}
*
* @param childArea the child area to add
*/
- public void addChild(Area childArea) {
- parentLM.addChild(childArea);
+ public void addChildArea(Area childArea) {
+ parentLM.addChildArea(childArea);
}
/**
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* @param childArea the child area to add
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
if (curBlockArea != null) {
curBlockArea.addBlock((Block) childArea);
}
block.setXOffset(dx + borderStartWidth);
block.setYOffset(dy);
TraitSetter.addCollapsingBorders(block, gu.effBorders, outer);
- parentLM.addChild(block);
+ parentLM.addChildArea(block);
dx += gu.column.getWidth().getValue();
}
dy += lastRowHeight;
*
* @param childArea the child to add to the cell
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
if (curBlockArea != null) {
curBlockArea.addBlock((Block) childArea);
}
rowArea.setIPD(referenceIPD);
rowArea.setXOffset(xoffset);
rowArea.setYOffset(yoffset);
- parentLM.addChild(rowArea);
+ parentLM.addChildArea(rowArea);
}
for (Iterator iter = lfp.cellBreaks.iterator(); iter.hasNext();) {
*
* @param childArea the child area
*/
- public void addChild(Area childArea) {
- parentLM.addChild(childArea);
+ public void addChildArea(Area childArea) {
+ parentLM.addChildArea(childArea);
}
/**
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* @param childArea the area to add
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
if (curBlockArea != null) {
curBlockArea.addBlock((Block) childArea);
}
*
* @param childArea the child area to add
*/
- public void addChild(Area childArea) {
+ public void addChildArea(Area childArea) {
if (curBlockArea != null) {
curBlockArea.addBlock((Block) childArea);
}