org.apache.fop.layoutmgr
Class AbstractBaseLayoutManager
java.lang.Object
org.apache.fop.layoutmgr.AbstractBaseLayoutManager
- LayoutManager, PercentBaseContext
public abstract class AbstractBaseLayoutManager
extends java.lang.Object
The base class for nearly all LayoutManagers.
Provides the functionality for merging the
LayoutManager
and the
PercentBaseContext
interfaces
into a common base calls for all higher LayoutManagers.
fobj
protected FObj fobj
The formatting object for this LM
generatesBlockArea
protected boolean generatesBlockArea
Indicator if this LM generates block areas
generatesReferenceArea
protected boolean generatesReferenceArea
Indicator if this LM generates reference areas
AbstractBaseLayoutManager
public AbstractBaseLayoutManager()
Abstract base layout manager.
AbstractBaseLayoutManager
public AbstractBaseLayoutManager(FObj fo)
Abstract base layout manager.
fo
- the formatting object for this layout manager
getAncestorBlockAreaBPD
protected int getAncestorBlockAreaBPD()
Find the first ancestor area that is a block area
and returns its BPD.
- the bpd of the ancestor block area
getAncestorBlockAreaIPD
protected int getAncestorBlockAreaIPD()
Find the first ancestor area that is a block area
and returns its IPD.
- the ipd of the ancestor block area
getParentAreaBPD
protected int getParentAreaBPD()
Find the parent area and returns its BPD.
- the bpd of the parent area
getParentAreaIPD
protected int getParentAreaIPD()
Find the parent area and returns its IPD.
- the ipd of the parent area
getReferenceAreaBPD
protected int getReferenceAreaBPD()
Find the first ancestor area that is a reference area
and returns its BPD.
- the bpd of the ancestor reference area
getReferenceAreaIPD
public int getReferenceAreaIPD()
Find the first ancestor area that is a reference area
and returns its IPD.
- the ipd of the ancestor reference area
setGeneratesBlockArea
protected void setGeneratesBlockArea(boolean generatesBlockArea)
Lets implementing LM set the flag indicating if they
generate block areas.
generatesBlockArea
- if true the areas generates by this LM are block areas.
setGeneratesReferenceArea
protected void setGeneratesReferenceArea(boolean generatesReferenceArea)
Lets implementing LM set the flag indicating if they
generate reference areas.
generatesReferenceArea
- if true the areas generates by this LM are
reference areas.
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.