|
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.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 LayoutManager
initialize
in class AbstractLayoutManager
public java.util.List<KnuthSequence> getNextKnuthElements(LayoutContext context, int alignment)
AbstractLayoutManager
getNextKnuthElements
in interface LayoutManager
getNextKnuthElements
in class AbstractLayoutManager
context
- 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 LayoutManager
addAreas
in class AbstractLayoutManager
posIter
- the position iteratorcontext
- the contextpublic Area getParentArea(Area childArea)
AbstractLayoutManager
getParentArea
in interface LayoutManager
getParentArea
in class AbstractLayoutManager
childArea
- the child area for which the parent area is wanted
public int getContentAreaIPD()
AbstractBaseLayoutManager
UnsupportedOperationException
.
getContentAreaIPD
in interface LayoutManager
getContentAreaIPD
in class AbstractBaseLayoutManager
public int getContentAreaBPD()
AbstractBaseLayoutManager
UnsupportedOperationException
.
getContentAreaBPD
in interface LayoutManager
getContentAreaBPD
in class AbstractBaseLayoutManager
public void addChildArea(Area childArea)
AbstractLayoutManager
addChildArea
in interface LayoutManager
addChildArea
in class AbstractLayoutManager
childArea
- the child area to be addedpublic boolean handleOverflow(int milliPoints)
public java.util.List addALetterSpaceTo(java.util.List oldList)
InlineLevelLayoutManager
addALetterSpaceTo
in interface InlineLevelLayoutManager
oldList
- 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 InlineLevelLayoutManager
oldList
- 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 InlineLevelLayoutManager
pos
- the position referring to the needed word chars.
public void hyphenate(Position pos, HyphContext hyphContext)
InlineLevelLayoutManager
hyphenate
in interface InlineLevelLayoutManager
pos
- the Position referring to the wordhyphContext
- the HyphContext storing hyphenation informationpublic boolean applyChanges(java.util.List oldList)
InlineLevelLayoutManager
applyChanges
in interface InlineLevelLayoutManager
oldList
- the list of the old elements the changes refer to
public boolean applyChanges(java.util.List oldList, int depth)
InlineLevelLayoutManager
applyChanges
in interface InlineLevelLayoutManager
oldList
- 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 InlineLevelLayoutManager
oldList
- the elements to replacealignment
- the desired text alignmentdepth
- the depth at which the Positions for this LM in oldList are found
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |