org.apache.fop.layoutmgr
public abstract class AbstractBaseLayoutManager extends java.lang.Object implements LayoutManager, PercentBaseContext
LayoutManager
and the PercentBaseContext interfaces
into a common base calls for all higher LayoutManagers.| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
AbstractBaseLayoutManager()
Abstract base layout manager.
|
AbstractBaseLayoutManager(FObj fo)
Abstract base layout manager.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAreas, addChildArea, addChildLM, addChildLMs, createNextChildLMs, getChangedKnuthElements, getChildLMs, getNextKnuthElements, getParent, getParentArea, getPSLM, initialize, isFinished, notifyPos, setFinished, setParentprotected boolean generatesReferenceArea
protected boolean generatesBlockArea
protected FObj fobj
public AbstractBaseLayoutManager()
public AbstractBaseLayoutManager(FObj fo)
fo - the formatting object for this layout managerpublic int getBaseLength(int lengthBase,
FObj fobj)
LengthBase.getBaseLength in interface PercentBaseContextlengthBase - Indicates which type of the base length value is to be returnedfobj - The FO object against which the percentage should be evaluatedprotected int getAncestorBlockAreaIPD()
protected int getAncestorBlockAreaBPD()
protected int getParentAreaIPD()
protected int getParentAreaBPD()
public int getReferenceAreaIPD()
protected int getReferenceAreaBPD()
public int getContentAreaIPD()
getContentAreaIPD in interface LayoutManagerpublic int getContentAreaBPD()
getContentAreaBPD in interface LayoutManagerpublic boolean getGeneratesReferenceArea()
getGeneratesReferenceArea in interface LayoutManagerprotected void setGeneratesReferenceArea(boolean generatesReferenceArea)
generatesReferenceArea - if true the areas generates by this LM are
reference areas.public boolean getGeneratesBlockArea()
getGeneratesBlockArea in interface LayoutManagerprotected void setGeneratesBlockArea(boolean generatesBlockArea)
generatesBlockArea - if true the areas generates by this LM are block areas.public boolean getGeneratesLineArea()
getGeneratesLineArea in interface LayoutManagerpublic FObj getFObj()
getFObj in interface LayoutManagerCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.