|
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.AbstractLayoutManager
org.apache.fop.layoutmgr.inline.LeafNodeLayoutManager
org.apache.fop.layoutmgr.inline.TextLayoutManager
LayoutManager for text (a sequence of characters) which generates one or more inline areas.
| Field Summary |
| Fields inherited from class org.apache.fop.layoutmgr.inline.LeafNodeLayoutManager |
areaInfo, commonBorderPaddingBackground, curArea, isSomethingChanged |
| Fields inherited from class org.apache.fop.layoutmgr.AbstractLayoutManager |
childLMiter, childLMs, curChildLM, fobjIter, markers, parentLM |
| Fields inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
fobj, generatesBlockArea, generatesReferenceArea |
| Constructor Summary | |
TextLayoutManager(FOText node)
Create a Text layout manager. |
|
| 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)
Generate and add areas to parent area. |
boolean |
applyChanges(java.util.List oldList)
Tell the LM to apply the changes due to hyphenation |
protected TextArea |
createTextArea(MinOptMax width,
int adjust,
LayoutContext context,
int spaceDiff,
int firstIndex,
int lastIndex,
boolean isLastArea)
Create an inline word area. |
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.LinkedList |
getNextKnuthElements(LayoutContext context,
int alignment)
Get a sequence of KnuthElements representing the content of the node assigned to the LM |
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. |
void |
removeWordSpace(java.util.List oldList)
remove the AreaInfo object represented by the given elements, so that it won't generate any element when getChangedKnuthElements will be called |
void |
resetPosition(Position prevPos)
Reset position for returning next BreakPossibility. |
| Methods inherited from class org.apache.fop.layoutmgr.inline.LeafNodeLayoutManager |
addChildArea, addId, addKnuthElementsForBorderPaddingEnd, addKnuthElementsForBorderPaddingStart, get, getAllocationIPD, getEffectiveArea, getParentArea, makeAlignmentContext, offsetArea, resolved, setCommonBorderPaddingBackground, setCurrentArea, widthAdjustArea |
| Methods inherited from class org.apache.fop.layoutmgr.AbstractLayoutManager |
addChildLM, addChildLMs, createChildLMs, createNextChildLMs, getChildLM, getChildLMs, getCurrentPage, getCurrentPV, getParent, getPSLM, hasNextChildLM, isFinished, isFirst, isLast, notifyPos, reset, setFinished, setParent, transferForeignAttributes |
| Methods inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
getAncestorBlockAreaBPD, getAncestorBlockAreaIPD, getBaseLength, getContentAreaBPD, getContentAreaIPD, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, 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 |
addChildLM, addChildLMs, createNextChildLMs, getChildLMs, getContentAreaBPD, getContentAreaIPD, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getParent, getPSLM, isFinished, notifyPos, setFinished, setParent |
| Methods inherited from interface org.apache.fop.datatypes.PercentBaseContext |
getBaseLength |
| Constructor Detail |
public TextLayoutManager(FOText node)
node - The FOText object to be rendered| Method Detail |
public void initialize()
LayoutManager
initialize in interface LayoutManagerinitialize in class AbstractLayoutManagerLayoutManager.initialize()public void resetPosition(Position prevPos)
resetPosition in interface LayoutManagerresetPosition in class AbstractLayoutManagerprevPos - the position to reset toLayoutManager.resetPosition(Position)
public void addAreas(PositionIterator posIter,
LayoutContext context)
addAreas in interface LayoutManageraddAreas in class LeafNodeLayoutManagerposIter - Iterator over Position information returned
by this LayoutManager.context - LayoutContext for adjustments
protected TextArea createTextArea(MinOptMax width,
int adjust,
LayoutContext context,
int spaceDiff,
int firstIndex,
int lastIndex,
boolean isLastArea)
width - the MinOptMax width of the contentadjust - the total ipd adjustment with respect to the optimal widthcontext - the layout contextspaceDiff - unusedfirstIndex - the index of the first AreaInfo used for the TextArealastIndex - the index of the last AreaInfo used for the TextAreaisLastArea - is this TextArea the last in a line?
public java.util.LinkedList getNextKnuthElements(LayoutContext context,
int alignment)
LayoutManager
getNextKnuthElements in interface LayoutManagergetNextKnuthElements in class LeafNodeLayoutManagerLayoutManager.getNextKnuthElements(LayoutContext, int)public java.util.List addALetterSpaceTo(java.util.List oldList)
InlineLevelLayoutManager
addALetterSpaceTo in interface InlineLevelLayoutManageraddALetterSpaceTo in class LeafNodeLayoutManagerInlineLevelLayoutManager.addALetterSpaceTo(List)public void removeWordSpace(java.util.List oldList)
removeWordSpace in interface InlineLevelLayoutManagerremoveWordSpace in class LeafNodeLayoutManageroldList - the elements representing the word space
public void hyphenate(Position pos,
HyphContext hc)
InlineLevelLayoutManager
hyphenate in interface InlineLevelLayoutManagerhyphenate in class LeafNodeLayoutManagerInlineLevelLayoutManager.hyphenate(Position, HyphContext)public boolean applyChanges(java.util.List oldList)
InlineLevelLayoutManager
applyChanges in interface InlineLevelLayoutManagerapplyChanges in class LeafNodeLayoutManagerInlineLevelLayoutManager.applyChanges(List)
public java.util.LinkedList getChangedKnuthElements(java.util.List oldList,
int alignment)
LayoutManager
getChangedKnuthElements in interface LayoutManagergetChangedKnuthElements in class LeafNodeLayoutManagerLayoutManager.getChangedKnuthElements(List, int)
public void getWordChars(java.lang.StringBuffer sbChars,
Position pos)
InlineLevelLayoutManager
getWordChars in interface InlineLevelLayoutManagergetWordChars in class LeafNodeLayoutManagerInlineLevelLayoutManager.getWordChars(StringBuffer, Position)
|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||