org.apache.fop.layoutmgr.inline

Class ContentLayoutManager

Implemented Interfaces:
InlineLevelLayoutManager, LayoutManager, PercentBaseContext

public class ContentLayoutManager
extends AbstractBaseLayoutManager
implements InlineLevelLayoutManager

Content Layout Manager. For use with objects that contain inline areas such as leader use-content and title.

Field Summary

Fields inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager

fobj, generatesBlockArea, generatesReferenceArea

Constructor Summary

ContentLayoutManager(Area area, LayoutManager parentLM)
Constructs a new ContentLayoutManager
ContentLayoutManager(PageSequenceLayoutManager pslm, Title foTitle)
Constructor using a fo:title formatting object and its PageSequenceLayoutManager parent.

Method Summary

List
addALetterSpaceTo(List oldList)
void
addAreas(PositionIterator posIter, LayoutContext context)
void
addChildArea(Area childArea)
void
addChildLM(LayoutManager lm)
void
addChildLMs(List newLMs)
boolean
applyChanges(List oldList)
boolean
createNextChildLMs(int pos)
void
fillArea(LayoutManager curLM)
LinkedList
getChangedKnuthElements(List oldList, int alignment)
List
getChildLMs()
int
getContentAreaBPD()
Returns the BPD of the content area
int
getContentAreaIPD()
Returns the IPD of the content area
boolean
getGeneratesBlockArea()
boolean
getGeneratesLineArea()
boolean
getGeneratesReferenceArea()
LinkedList
getNextKnuthElements(LayoutContext context, int alignment)
PageSequenceLayoutManager
getPSLM()
LayoutManager
getParent()
Area
getParentArea(Area childArea)
int
getStackingSize()
void
getWordChars(StringBuffer sbChars, Position pos)
void
hyphenate(Position pos, HyphContext hc)
void
initialize()
boolean
isFinished()
Position
notifyPos(Position pos)
void
removeWordSpace(List oldList)
Remove the word space represented by the given elements
void
setFinished(boolean isFinished)
void
setParent(LayoutManager lm)

Methods inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager

getAncestorBlockAreaBPD, getAncestorBlockAreaIPD, getBaseLength, getContentAreaBPD, getContentAreaIPD, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getParentAreaBPD, getParentAreaIPD, getReferenceAreaBPD, getReferenceAreaIPD, setGeneratesBlockArea, setGeneratesReferenceArea

Constructor Details

ContentLayoutManager

public ContentLayoutManager(Area area,
                            LayoutManager parentLM)
Constructs a new ContentLayoutManager
Parameters:
area - The parent area

ContentLayoutManager

public ContentLayoutManager(PageSequenceLayoutManager pslm,
                            Title foTitle)
Constructor using a fo:title formatting object and its PageSequenceLayoutManager parent. throws IllegalStateException if the foTitle has no children. TODO: convert IllegalStateException to FOPException; also in makeLayoutManager and makeContentLayoutManager and callers.
Parameters:
pslm - the PageSequenceLayoutManager parent of this LM
foTitle - the Title FO for which this LM is made

Method Details

addALetterSpaceTo

public List addALetterSpaceTo(List oldList)
Specified by:
addALetterSpaceTo in interface InlineLevelLayoutManager

addAreas

public void addAreas(PositionIterator posIter,
                     LayoutContext context)
Specified by:
addAreas in interface LayoutManager

addChildArea

public void addChildArea(Area childArea)
Specified by:
addChildArea in interface LayoutManager

addChildLM

public void addChildLM(LayoutManager lm)
Specified by:
addChildLM in interface LayoutManager

addChildLMs

public void addChildLMs(List newLMs)
Specified by:
addChildLMs in interface LayoutManager

applyChanges

public boolean applyChanges(List oldList)
Specified by:
applyChanges in interface InlineLevelLayoutManager

createNextChildLMs

public boolean createNextChildLMs(int pos)
Specified by:
createNextChildLMs in interface LayoutManager

fillArea

public void fillArea(LayoutManager curLM)

getChangedKnuthElements

public LinkedList getChangedKnuthElements(List oldList,
                                          int alignment)
Specified by:
getChangedKnuthElements in interface LayoutManager

getChildLMs

public List getChildLMs()
Specified by:
getChildLMs in interface LayoutManager

getContentAreaBPD

public int getContentAreaBPD()
Returns the BPD of the content area
Specified by:
getContentAreaBPD in interface LayoutManager
Overrides:
getContentAreaBPD in interface AbstractBaseLayoutManager
Returns:
the BPD of the content area

getContentAreaIPD

public int getContentAreaIPD()
Returns the IPD of the content area
Specified by:
getContentAreaIPD in interface LayoutManager
Overrides:
getContentAreaIPD in interface AbstractBaseLayoutManager
Returns:
the IPD of the content area

getGeneratesBlockArea

public boolean getGeneratesBlockArea()
Specified by:
getGeneratesBlockArea in interface LayoutManager
Overrides:
getGeneratesBlockArea in interface AbstractBaseLayoutManager

getGeneratesLineArea

public boolean getGeneratesLineArea()
Specified by:
getGeneratesLineArea in interface LayoutManager
Overrides:
getGeneratesLineArea in interface AbstractBaseLayoutManager

getGeneratesReferenceArea

public boolean getGeneratesReferenceArea()
Specified by:
getGeneratesReferenceArea in interface LayoutManager
Overrides:
getGeneratesReferenceArea in interface AbstractBaseLayoutManager

getNextKnuthElements

public LinkedList getNextKnuthElements(LayoutContext context,
                                       int alignment)
Specified by:
getNextKnuthElements in interface LayoutManager

getPSLM

public PageSequenceLayoutManager getPSLM()
Specified by:
getPSLM in interface LayoutManager

getParent

public LayoutManager getParent()
Specified by:
getParent in interface LayoutManager

getParentArea

public Area getParentArea(Area childArea)
Specified by:
getParentArea in interface LayoutManager

getStackingSize

public int getStackingSize()

getWordChars

public void getWordChars(StringBuffer sbChars,
                         Position pos)
Specified by:
getWordChars in interface InlineLevelLayoutManager

hyphenate

public void hyphenate(Position pos,
                      HyphContext hc)
Specified by:
hyphenate in interface InlineLevelLayoutManager

initialize

public void initialize()
Specified by:
initialize in interface LayoutManager

isFinished

public boolean isFinished()
Specified by:
isFinished in interface LayoutManager

notifyPos

public Position notifyPos(Position pos)
Specified by:
notifyPos in interface LayoutManager

removeWordSpace

public void removeWordSpace(List oldList)
Remove the word space represented by the given elements
Specified by:
removeWordSpace in interface InlineLevelLayoutManager
Parameters:
oldList - the elements representing the word space

setFinished

public void setFinished(boolean isFinished)
Specified by:
setFinished in interface LayoutManager

setParent

public void setParent(LayoutManager lm)
Specified by:
setParent in interface LayoutManager

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.