|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.layoutmgr.AbstractBaseLayoutManager
public abstract class AbstractBaseLayoutManager
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.
Field Summary | |
---|---|
protected FObj |
fobj
The formatting object for this LM |
protected boolean |
generatesBlockArea
Indicator if this LM generates block areas |
protected boolean |
generatesReferenceArea
Indicator if this LM generates reference areas |
Constructor Summary | |
---|---|
AbstractBaseLayoutManager()
Abstract base layout manager. |
|
AbstractBaseLayoutManager(FObj fo)
Abstract base layout manager. |
Method Summary | |
---|---|
protected int |
getAncestorBlockAreaBPD()
Find the first ancestor area that is a block area and returns its BPD. |
protected int |
getAncestorBlockAreaIPD()
Find the first ancestor area that is a block area and returns its IPD. |
int |
getBaseLength(int lengthBase,
FObj fobj)
Returns the base length for the given length base. |
int |
getContentAreaBPD()
Returns the BPD of the content area |
int |
getContentAreaIPD()
Returns the IPD of the content area |
FObj |
getFObj()
Returns the fo this layout manager is associated with. |
boolean |
getGeneratesBlockArea()
Returns an indication if the layout manager generates a block area. |
boolean |
getGeneratesLineArea()
Returns an indication if the layout manager generates a line area. |
boolean |
getGeneratesReferenceArea()
Returns an indication if the layout manager generates a reference area. |
protected int |
getParentAreaBPD()
Find the parent area and returns its BPD. |
protected int |
getParentAreaIPD()
Find the parent area and returns its IPD. |
protected int |
getReferenceAreaBPD()
Find the first ancestor area that is a reference area and returns its BPD. |
int |
getReferenceAreaIPD()
Find the first ancestor area that is a reference area and returns its IPD. |
protected void |
setGeneratesBlockArea(boolean generatesBlockArea)
Lets implementing LM set the flag indicating if they generate block areas. |
protected void |
setGeneratesReferenceArea(boolean generatesReferenceArea)
Lets implementing LM set the flag indicating if they generate reference areas. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.fop.layoutmgr.LayoutManager |
---|
addAreas, addChildArea, addChildLM, addChildLMs, createNextChildLMs, getChangedKnuthElements, getChildLMs, getNextKnuthElements, getParent, getParentArea, getPSLM, initialize, isFinished, notifyPos, setFinished, setParent |
Field Detail |
---|
protected boolean generatesReferenceArea
protected boolean generatesBlockArea
protected FObj fobj
Constructor Detail |
---|
public AbstractBaseLayoutManager()
public AbstractBaseLayoutManager(FObj fo)
fo
- the formatting object for this layout managerMethod Detail |
---|
public int getBaseLength(int lengthBase, FObj fobj)
LengthBase
.
getBaseLength
in interface PercentBaseContext
lengthBase
- Indicates which type of the base length value is to be returnedfobj
- The FO object against which the percentage should be evaluated
protected int getAncestorBlockAreaIPD()
protected int getAncestorBlockAreaBPD()
protected int getParentAreaIPD()
protected int getParentAreaBPD()
public int getReferenceAreaIPD()
protected int getReferenceAreaBPD()
public int getContentAreaIPD()
getContentAreaIPD
in interface LayoutManager
public int getContentAreaBPD()
getContentAreaBPD
in interface LayoutManager
public boolean getGeneratesReferenceArea()
getGeneratesReferenceArea
in interface LayoutManager
protected void setGeneratesReferenceArea(boolean generatesReferenceArea)
generatesReferenceArea
- if true the areas generates by this LM are
reference areas.public boolean getGeneratesBlockArea()
getGeneratesBlockArea
in interface LayoutManager
protected void setGeneratesBlockArea(boolean generatesBlockArea)
generatesBlockArea
- if true the areas generates by this LM are block areas.public boolean getGeneratesLineArea()
getGeneratesLineArea
in interface LayoutManager
public FObj getFObj()
getFObj
in interface LayoutManager
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |