|
fop 0.93 | ||||||||||
| 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.inline.ContentLayoutManager
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 | |
java.util.List |
addALetterSpaceTo(java.util.List oldList)
Tell the LM to modify its data, adding a letter space to the word fragment represented by the given elements, and returning the corrected elements |
void |
addAreas(PositionIterator posIter,
LayoutContext context)
Tell the layout manager to add all the child areas implied by Position objects which will be returned by the Iterator. |
void |
addChildArea(Area childArea)
Add the area as a child of the current area. |
void |
addChildLM(LayoutManager lm)
Add the LM in the argument to the list of child LMs; set this LM as the parent; initialize the LM. |
void |
addChildLMs(java.util.List newLMs)
Add the LMs in the argument to the list of child LMs; |
boolean |
applyChanges(java.util.List oldList)
Tell the LM to apply the changes due to hyphenation |
boolean |
createNextChildLMs(int pos)
Create more child LMs of the parent, up to child LM index pos |
void |
fillArea(LayoutManager curLM)
|
java.util.LinkedList |
getChangedKnuthElements(java.util.List oldList,
int alignment)
Get a sequence of KnuthElements representing the content of the node assigned to the LM, after changes have been applied In the context of line breaking, this method is called after hyphenation has been performed, in order to receive the sequence of elements representing the text together with all possibile hyphenation points. |
java.util.List |
getChildLMs()
|
int |
getContentAreaBPD()
Returns the BPD of the content area |
int |
getContentAreaIPD()
Returns the IPD of the content area |
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. |
java.util.LinkedList |
getNextKnuthElements(LayoutContext context,
int alignment)
Get a sequence of KnuthElements representing the content of the node assigned to the LM |
LayoutManager |
getParent()
Get the parent layout manager. |
Area |
getParentArea(Area childArea)
Get the parent area for an area. |
PageSequenceLayoutManager |
getPSLM()
Get the active PageSequenceLayoutManager instance for this layout process. |
int |
getStackingSize()
|
void |
getWordChars(java.lang.StringBuffer sbChars,
Position pos)
Get the word chars corresponding to the given position |
void |
hyphenate(Position pos,
HyphContext hc)
Tell the LM to hyphenate a word |
void |
initialize()
initialize the layout manager. |
boolean |
isFinished()
Return a value indicating whether this LayoutManager has laid out all its content (or generated BreakPossibilities for all content.) |
Position |
notifyPos(Position pos)
Adds a Position to the Position participating in the first|last determination by assigning it a unique position index. |
void |
removeWordSpace(java.util.List oldList)
Remove the word space represented by the given elements |
void |
resetPosition(Position position)
Reset to the position. |
void |
setFinished(boolean isFinished)
Set a flag indicating whether the LayoutManager has laid out all its content. |
void |
setParent(LayoutManager lm)
Set the parent layout manager. |
| Methods inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
getAncestorBlockAreaBPD, getAncestorBlockAreaIPD, getBaseLength, getFObj, getParentAreaBPD, getParentAreaIPD, getReferenceAreaBPD, getReferenceAreaIPD, setGeneratesBlockArea, setGeneratesReferenceArea |
| 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 |
getFObj |
| Methods inherited from interface org.apache.fop.datatypes.PercentBaseContext |
getBaseLength |
| Constructor Detail |
public ContentLayoutManager(Area area,
LayoutManager parentLM)
area - The parent area
public ContentLayoutManager(PageSequenceLayoutManager pslm,
Title foTitle)
pslm - the PageSequenceLayoutManager parent of this LMfoTitle - the Title FO for which this LM is made| Method Detail |
public void initialize()
LayoutManager
initialize in interface LayoutManagerpublic void fillArea(LayoutManager curLM)
public void addAreas(PositionIterator posIter,
LayoutContext context)
LayoutManager
addAreas in interface LayoutManagerposIter - the position iteratorcontext - the contextpublic int getStackingSize()
public Area getParentArea(Area childArea)
LayoutManager
getParentArea in interface LayoutManagerchildArea - the child area to get the parent for
LayoutManagerpublic void addChildArea(Area childArea)
LayoutManager
addChildArea in interface LayoutManagerchildArea - the child area to addLayoutManager.addChildArea(Area)public void setParent(LayoutManager lm)
LayoutManager
setParent in interface LayoutManagerlm - the parent layout managerLayoutManager.setParent(LayoutManager)public LayoutManager getParent()
LayoutManager
getParent in interface LayoutManagerLayoutManager.getParent()public boolean isFinished()
LayoutManager
isFinished in interface LayoutManagerLayoutManager.isFinished()public void setFinished(boolean isFinished)
LayoutManager
setFinished in interface LayoutManagerisFinished - the value to set the finished flag toLayoutManager.setFinished(boolean)public void resetPosition(Position position)
LayoutManager
resetPosition in interface LayoutManagerposition - the Position to reset toLayoutManager.resetPosition(Position)public boolean createNextChildLMs(int pos)
LayoutManager
createNextChildLMs in interface LayoutManagerpos - index up to which child LMs are requested
LayoutManager.createNextChildLMs(int)public java.util.List getChildLMs()
getChildLMs in interface LayoutManagerLayoutManager.getChildLMs()public void addChildLM(LayoutManager lm)
LayoutManager
addChildLM in interface LayoutManagerlm - the LM to be addedLayoutManager.addChildLM(org.apache.fop.layoutmgr.LayoutManager)public void addChildLMs(java.util.List newLMs)
LayoutManager
addChildLMs in interface LayoutManagernewLMs - the list of LMs to be addedLayoutManager.addChildLMs(java.util.List)
public java.util.LinkedList getNextKnuthElements(LayoutContext context,
int alignment)
LayoutManager
getNextKnuthElements in interface LayoutManagercontext - the LayoutContext used to store layout informationalignment - the desired text alignement
public java.util.List addALetterSpaceTo(java.util.List oldList)
InlineLevelLayoutManager
addALetterSpaceTo in interface InlineLevelLayoutManageroldList - the elements which must be given one more letter space
public void removeWordSpace(java.util.List oldList)
removeWordSpace in interface InlineLevelLayoutManageroldList - the elements representing the word space
public void getWordChars(java.lang.StringBuffer sbChars,
Position pos)
InlineLevelLayoutManager
getWordChars in interface InlineLevelLayoutManagersbChars - the StringBuffer used to append word charspos - the Position referring to the needed word chars
public void hyphenate(Position pos,
HyphContext hc)
InlineLevelLayoutManager
hyphenate in interface InlineLevelLayoutManagerpos - the Position referring to the wordhc - the HyphContext storing hyphenation informationpublic boolean applyChanges(java.util.List oldList)
InlineLevelLayoutManager
applyChanges in interface InlineLevelLayoutManageroldList - the list of the old elements the changes refer to
public java.util.LinkedList getChangedKnuthElements(java.util.List oldList,
int alignment)
LayoutManager
getChangedKnuthElements in interface LayoutManageroldList - the elements to replacealignment - the desired text alignment
public PageSequenceLayoutManager getPSLM()
LayoutManager
getPSLM in interface LayoutManagerpublic int getContentAreaIPD()
getContentAreaIPD in interface LayoutManagergetContentAreaIPD in class AbstractBaseLayoutManagerLayoutManager.getContentAreaIPD()public int getContentAreaBPD()
getContentAreaBPD in interface LayoutManagergetContentAreaBPD in class AbstractBaseLayoutManagerLayoutManager.getContentAreaBPD()public boolean getGeneratesReferenceArea()
LayoutManager
getGeneratesReferenceArea in interface LayoutManagergetGeneratesReferenceArea in class AbstractBaseLayoutManagerLayoutManager.getGeneratesReferenceArea()public boolean getGeneratesBlockArea()
LayoutManager
getGeneratesBlockArea in interface LayoutManagergetGeneratesBlockArea in class AbstractBaseLayoutManagerLayoutManager.getGeneratesBlockArea()public boolean getGeneratesLineArea()
LayoutManager
getGeneratesLineArea in interface LayoutManagergetGeneratesLineArea in class AbstractBaseLayoutManagerLayoutManager.getGeneratesLineArea()public Position notifyPos(Position pos)
LayoutManager
notifyPos in interface LayoutManagerpos - the Position
|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||