curChildLM = (LayoutProcessor) childLMiter.next();
curChildLM.setUserAgent(getUserAgent());
curChildLM.setParent(this);
- curChildLM.init();
+ curChildLM.initialize();
return curChildLM;
}
return null;
/**
- * This method provides a hook for a LayoutManager to intialize traits
+ * This method provides a hook for a LayoutManager to initialize traits
* for the areas it will create, based on Properties set on its FO.
*/
- public void init() {
+ public void initialize() {
if (fobj != null && bInited == false) {
initProperties(fobj.getPropertyManager());
bInited = true;
}
/**
- * This method provides a hook for a LayoutManager to intialize traits
+ * This method provides a hook for a LayoutManager to initialize traits
* for the areas it will create, based on Properties set on its FO.
*/
protected void initProperties(PropertyManager pm) {
lm.setUserAgent(node.getUserAgent());
lm.setFObj(node);
lm.setLMiter(new LMiter(lm, node.getChildren()));
- lm.init();
+ lm.initialize();
// get breaks then add areas to FilledArea
FilledArea fa = new FilledArea();
import org.apache.fop.area.Resolveable;
import org.apache.fop.area.PageViewport;
-import org.apache.avalon.framework.logger.Logger;
-
import java.util.List;
import java.util.Map;
import java.util.ArrayList;
return userAgent;
}
- /**
- * Returns the logger
- * @return the logger
- */
- protected Logger getLogger() {
- return userAgent.getLogger();
- }
-
/** @see org.apache.fop.layoutmgr.LayoutManager */
public void setParent(LayoutProcessor lm) {
parentLM = lm;
public void addAreas(PositionIterator posIter, LayoutContext context) { }
/** @see org.apache.fop.layoutmgr.LayoutManager */
- public void init() {
+ public void initialize() {
//to be done
}
* @return the Title area
*/
public org.apache.fop.area.Title getTitleArea(org.apache.fop.fo.pagination.Title foTitle) {
- org.apache.fop.area.Title title =
- new org.apache.fop.area.Title();
// use special layout manager to add the inline areas
// to the Title.
InlineStackingLayoutManager lm;
lm.setUserAgent(foTitle.getUserAgent());
lm.setFObj(foTitle);
lm.setLMiter(new LMiter(lm, foTitle.children.listIterator()));
- lm.init();
+ lm.initialize();
// get breaks then add areas to title
+ org.apache.fop.area.Title title =
+ new org.apache.fop.area.Title();
ContentLayoutManager clm = new ContentLayoutManager(title);
clm.setUserAgent(foTitle.getUserAgent());
LayoutManagerLS getLayoutManagerLS();
/**
- * Initialise this layout manager.
+ * Initialize this layout manager.
*/
- void init();
+ void initialize();
/**
* Generates inline areas.
lineHeight = lh;
lead = l;
follow = f;
- init(); // Normally done when started by parent!
+ initialize(); // Normally done when started by parent!
}
/**
}
StaticContentLayoutManager lm = getStaticContentLayoutManager(flow);
lm.setUserAgent(getUserAgent());
- lm.init();
+ lm.initialize();
lm.setRegionReference(reg.getRegion());
lm.setParent(this);
LayoutContext childLC = new LayoutContext(0);
if (list.size() > 0) {
replaceLM = (LayoutProcessor)list.get(0);
replaceLM.setParent(this);
- replaceLM.init();
+ replaceLM.initialize();
getLogger().debug("retrieved: " + replaceLM + ":" + list.size());
} else {
getLogger().debug("found no marker with name: " + name);
curChildLM = (LayoutProcessor) childLMiter.next();
curChildLM.setUserAgent(getUserAgent());
curChildLM.setParent(this);
- curChildLM.init();
+ curChildLM.initialize();
cellList.add(curChildLM);
}
}