|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.layoutmgr.AbstractBaseLayoutManager
org.apache.fop.layoutmgr.AbstractLayoutManager
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager
public abstract class AbstractPageSequenceLayoutManager
Abstract base class for a page sequence layout manager.
Field Summary | |
---|---|
protected AreaTreeHandler |
areaTreeHandler
AreaTreeHandler which activates the PSLM and controls the rendering of its pages. |
protected Page |
curPage
Current page with page-viewport-area being filled by the PSLM. |
protected int |
currentPageNum
the current page number |
protected IDTracker |
idTracker
ID tracker supplied by the AreaTreeHandler |
protected AbstractPageSequence |
pageSeq
page sequence formatting object being processed by this class |
protected int |
startPageNum
The stating page number |
Fields inherited from class org.apache.fop.layoutmgr.AbstractLayoutManager |
---|
childLMiter, childLMs, curChildLM, fobjIter, parentLayoutManager |
Fields inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
---|
fobj, generatesBlockArea, generatesReferenceArea |
Constructor Summary | |
---|---|
AbstractPageSequenceLayoutManager(AreaTreeHandler ath,
AbstractPageSequence pseq)
Constructor |
Method Summary | |
---|---|
void |
addIDToPage(java.lang.String id)
Add an ID reference to the current page. |
void |
addUnresolvedArea(java.lang.String id,
Resolvable res)
Identify an unresolved area (one needing an idref to be resolved, e.g. |
boolean |
associateLayoutManagerID(java.lang.String id)
Add an id reference of the layout manager in the AreaTreeHandler, if the id hasn't been resolved yet |
protected abstract Page |
createPage(int pageNumber,
boolean isBlank)
Creates and returns a new page. |
void |
doForcePageCount(Numeric nextPageSeqInitialPageNumber)
Act upon the force-page-count trait, in relation to the initial-page-number trait of the following page-sequence. |
protected void |
finishPage()
Finishes a page in preparation for a new page. |
Page |
getCurrentPage()
Provides access to the current page. |
protected int |
getCurrentPageNum()
Provides access to the current page number |
PageViewport |
getFirstPVWithID(java.lang.String idref)
This returns the first PageViewport that contains an id trait matching the idref argument, or null if no such PV exists. |
protected int |
getLastPageNumber()
|
PageViewport |
getLastPVWithID(java.lang.String idref)
This returns the last PageViewport that contains an id trait matching the idref argument, or null if no such PV exists. |
LayoutManagerMaker |
getLayoutManagerMaker()
|
void |
initialize()
initialize the layout manager. |
protected Page |
makeNewPage(boolean isBlank)
Makes a new page |
void |
notifyEndOfLayout(java.lang.String id)
Notify the areaTreeHandler that the LayoutManagers containing idrefs have finished creating areas |
void |
reset()
Re-initializes this layout manager in order to re-generate its Knuth elements according to a new IPD value. |
RetrieveMarker |
resolveRetrieveMarker(RetrieveMarker rm)
Bind the RetrieveMarker to the corresponding Marker subtree. |
protected void |
setCurrentPage(Page currentPage)
Provides access for setting the current page. |
Methods inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
---|
getAncestorBlockAreaBPD, getAncestorBlockAreaIPD, getBaseLength, getContentAreaBPD, getContentAreaIPD, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getNextKnuthElements, getParentAreaBPD, getParentAreaIPD, getReferenceAreaBPD, getReferenceAreaIPD, isRestartable, setGeneratesBlockArea, setGeneratesReferenceArea |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.fop.layoutmgr.TopLevelLayoutManager |
---|
activateLayout, finishPageSequence |
Field Detail |
---|
protected AreaTreeHandler areaTreeHandler
protected IDTracker idTracker
protected AbstractPageSequence pageSeq
protected Page curPage
protected int currentPageNum
protected int startPageNum
Constructor Detail |
---|
public AbstractPageSequenceLayoutManager(AreaTreeHandler ath, AbstractPageSequence pseq)
ath
- the area tree handler objectpseq
- fo:page-sequence to processMethod Detail |
---|
public LayoutManagerMaker getLayoutManagerMaker()
public Page getCurrentPage()
getCurrentPage
in class AbstractLayoutManager
getCurrentPage()
protected void setCurrentPage(Page currentPage)
currentPage
- the new current Pageprotected int getCurrentPageNum()
public void initialize()
initialize
in interface LayoutManager
initialize
in class AbstractLayoutManager
public PageViewport getFirstPVWithID(java.lang.String idref)
idref
- the idref trait needing to be resolved
public PageViewport getLastPVWithID(java.lang.String idref)
idref
- the idref trait needing to be resolved
public void addIDToPage(java.lang.String id)
id
- the ID reference to addpublic boolean associateLayoutManagerID(java.lang.String id)
id
- the id to track
public void notifyEndOfLayout(java.lang.String id)
id
- the id for which layout has finishedpublic void addUnresolvedArea(java.lang.String id, Resolvable res)
id
- the ID reference to addres
- the resolvable object that needs resolvingpublic RetrieveMarker resolveRetrieveMarker(RetrieveMarker rm)
rm
- the RetrieveMarker instance whose properties are to
used to find the matching Marker.
protected abstract Page createPage(int pageNumber, boolean isBlank)
pageNumber
- the page numberisBlank
- true if it's a blank page
protected Page makeNewPage(boolean isBlank)
isBlank
- whether this page is blank or not
protected void finishPage()
public void doForcePageCount(Numeric nextPageSeqInitialPageNumber)
doForcePageCount
in interface TopLevelLayoutManager
nextPageSeqInitialPageNumber
- initial-page-number trait of next page-sequencepublic void reset()
reset
in interface LayoutManager
reset
in class AbstractLayoutManager
protected int getLastPageNumber()
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |