|
fop 2.1 | |||||||||
| 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.inline.InlineContainerLayoutManager
public class InlineContainerLayoutManager
This creates a single inline container area after laying out the child block areas. All footnotes, floats and id areas are maintained for later retrieval.
| Field Summary |
|---|
| 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 | |
|---|---|
InlineContainerLayoutManager(InlineContainer node)
|
|
| 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 |
java.util.List |
addALetterSpaceTo(java.util.List oldList,
int depth)
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 a child area to the current area. |
boolean |
applyChanges(java.util.List oldList)
Tell the LM to apply the changes due to hyphenation |
boolean |
applyChanges(java.util.List oldList,
int depth)
Tell the LM to apply the changes due to hyphenation |
java.util.List |
getChangedKnuthElements(java.util.List oldList,
int alignment,
int depth)
Get a sequence of KnuthElements representing the content of the node assigned to the LM, after changes have been applied |
int |
getContentAreaBPD()
Returns the BPD of the content area |
int |
getContentAreaIPD()
Returns the IPD of the content area |
java.util.List<KnuthSequence> |
getNextKnuthElements(LayoutContext context,
int alignment)
Get a sequence of KnuthElements representing the content of the node assigned to the LM. |
Area |
getParentArea(Area childArea)
Return an Area which can contain the passed childArea. |
java.lang.String |
getWordChars(Position pos)
Get the word chars corresponding to the given position. |
boolean |
handleOverflow(int milliPoints)
|
void |
hyphenate(Position pos,
HyphContext hyphContext)
Tell the LM to hyphenate a word |
void |
initialize()
initialize the layout manager. |
protected AlignmentContext |
makeAlignmentContext(LayoutContext context)
|
| Methods inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
|---|
getAncestorBlockAreaBPD, getAncestorBlockAreaIPD, getBaseLength, 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.LayoutManager |
|---|
addChildLM, addChildLMs, createNextChildLMs, getBaselineOffset, getChangedKnuthElements, getChildLMs, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getNextKnuthElements, getParent, getPSLM, hasLineAreaDescendant, isFinished, isRestartable, notifyPos, reset, setFinished, setParent |
| Methods inherited from interface org.apache.fop.datatypes.PercentBaseContext |
|---|
getBaseLength |
| Constructor Detail |
|---|
public InlineContainerLayoutManager(InlineContainer node)
| Method Detail |
|---|
public void initialize()
AbstractLayoutManager
initialize in interface LayoutManagerinitialize in class AbstractLayoutManager
public java.util.List<KnuthSequence> getNextKnuthElements(LayoutContext context,
int alignment)
AbstractLayoutManager
getNextKnuthElements in interface LayoutManagergetNextKnuthElements in class AbstractLayoutManagercontext - the LayoutContext used to store layout informationalignment - the desired text alignment
protected AlignmentContext makeAlignmentContext(LayoutContext context)
public void addAreas(PositionIterator posIter,
LayoutContext context)
AbstractLayoutManager
addAreas in interface LayoutManageraddAreas in class AbstractLayoutManagerposIter - the position iteratorcontext - the contextpublic Area getParentArea(Area childArea)
AbstractLayoutManager
getParentArea in interface LayoutManagergetParentArea in class AbstractLayoutManagerchildArea - the child area for which the parent area is wanted
public int getContentAreaIPD()
AbstractBaseLayoutManagerUnsupportedOperationException.
getContentAreaIPD in interface LayoutManagergetContentAreaIPD in class AbstractBaseLayoutManagerpublic int getContentAreaBPD()
AbstractBaseLayoutManagerUnsupportedOperationException.
getContentAreaBPD in interface LayoutManagergetContentAreaBPD in class AbstractBaseLayoutManagerpublic void addChildArea(Area childArea)
AbstractLayoutManager
addChildArea in interface LayoutManageraddChildArea in class AbstractLayoutManagerchildArea - the child area to be addedpublic boolean handleOverflow(int milliPoints)
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 java.util.List addALetterSpaceTo(java.util.List oldList,
int depth)
InlineLevelLayoutManager
addALetterSpaceTo in interface InlineLevelLayoutManageroldList - the elements which must be given one more letter spacedepth - the depth at which the Positions for this LM in oldList are found
public java.lang.String getWordChars(Position pos)
InlineLevelLayoutManager
getWordChars in interface InlineLevelLayoutManagerpos - the position referring to the needed word chars.
public void hyphenate(Position pos,
HyphContext hyphContext)
InlineLevelLayoutManager
hyphenate in interface InlineLevelLayoutManagerpos - the Position referring to the wordhyphContext - 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 boolean applyChanges(java.util.List oldList,
int depth)
InlineLevelLayoutManager
applyChanges in interface InlineLevelLayoutManageroldList - the list of the old elements the changes refer todepth - the depth at which the Positions for this LM in oldList are found
public java.util.List getChangedKnuthElements(java.util.List oldList,
int alignment,
int depth)
InlineLevelLayoutManager
getChangedKnuthElements in interface InlineLevelLayoutManageroldList - the elements to replacealignment - the desired text alignmentdepth - the depth at which the Positions for this LM in oldList are found
|
fop 2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||