|
fop 1.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.LeafNodeLayoutManager
org.apache.fop.layoutmgr.inline.LeaderLayoutManager
public class LeaderLayoutManager
LayoutManager for the fo:leader formatting object
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.fop.layoutmgr.inline.LeafNodeLayoutManager |
|---|
LeafNodeLayoutManager.AreaInfo |
| Field Summary |
|---|
| Fields inherited from class org.apache.fop.layoutmgr.inline.LeafNodeLayoutManager |
|---|
alignmentContext, areaInfo, commonBorderPaddingBackground, curArea, log, somethingChanged |
| Fields inherited from class org.apache.fop.layoutmgr.AbstractLayoutManager |
|---|
childLMiter, childLMs, curChildLM, fobjIter, parentLayoutManager |
| Fields inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
|---|
generatesBlockArea, generatesReferenceArea |
| Constructor Summary | |
|---|---|
LeaderLayoutManager(Leader node)
Constructor |
|
| Method Summary | |
|---|---|
void |
addAreas(PositionIterator posIter,
LayoutContext context)
Add the area for this layout manager. |
boolean |
applyChanges(java.util.List oldList)
Tell the LM to apply the changes due to hyphenation |
InlineArea |
get(LayoutContext context)
Return the inline area for this leader. |
protected MinOptMax |
getAllocationIPD(int refIPD)
Return the allocated IPD for this area. |
int |
getBaseLength(int lengthBase,
FObj fobj)
Returns the base length for the given length base. |
java.util.List |
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 possible hyphenation points. |
int |
getContentAreaIPD()
Returns the IPD of the content area |
java.util.List |
getNextKnuthElements(LayoutContext context,
int alignment)
Get a sequence of KnuthElements representing the content of the node assigned to the LM. |
void |
hyphenate(Position pos,
HyphContext hc)
Tell the LM to hyphenate a word |
void |
initialize()
initialize the layout manager. |
void |
reset()
Re-initializes this layout manager in order to re-generate its Knuth elements according to a new IPD value. |
| Methods inherited from class org.apache.fop.layoutmgr.inline.LeafNodeLayoutManager |
|---|
addALetterSpaceTo, addALetterSpaceTo, addChildArea, addKnuthElementsForBorderPaddingEnd, addKnuthElementsForBorderPaddingStart, applyChanges, getChangedKnuthElements, getEffectiveArea, getParentArea, getWordChars, makeAlignmentContext, offsetArea, resolved, setCommonBorderPaddingBackground, setCurrentArea, widthAdjustArea |
| Methods inherited from class org.apache.fop.layoutmgr.AbstractLayoutManager |
|---|
addChildLM, addChildLMs, addId, addMarkersToPage, checkEndOfLayout, createChildLMs, createNextChildLMs, getChildLM, getChildLMs, getCurrentPage, getCurrentPV, getParent, getPSLM, hasNextChildLM, isFinished, isFirst, isLast, notifyEndOfLayout, notifyPos, setCurrentChildLM, setFinished, setParent, toString, transferExtensionAttachments, transferExtensions, transferForeignAttributes |
| Methods inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
|---|
getAncestorBlockAreaBPD, getAncestorBlockAreaIPD, getContentAreaBPD, 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, getChildLMs, getContentAreaBPD, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getNextKnuthElements, getParent, getPSLM, isFinished, isRestartable, notifyPos, setFinished, setParent |
| Constructor Detail |
|---|
public LeaderLayoutManager(Leader node)
node - the formatting object that creates this area| Method Detail |
|---|
public void initialize()
initialize in interface LayoutManagerinitialize in class AbstractLayoutManagerpublic InlineArea get(LayoutContext context)
get in class LeafNodeLayoutManagercontext - the layout context
protected MinOptMax getAllocationIPD(int refIPD)
getAllocationIPD in class LeafNodeLayoutManagerrefIPD - the IPD of the reference area
public void addAreas(PositionIterator posIter,
LayoutContext context)
addAreas in interface LayoutManageraddAreas in class LeafNodeLayoutManagerposIter - the position iteratorcontext - the layout context for adding the area
public java.util.List getNextKnuthElements(LayoutContext context,
int alignment)
getNextKnuthElements in interface LayoutManagergetNextKnuthElements in class LeafNodeLayoutManagercontext - the LayoutContext used to store layout informationalignment - the desired text alignment
public void hyphenate(Position pos,
HyphContext hc)
hyphenate in interface InlineLevelLayoutManagerhyphenate in class LeafNodeLayoutManagerpos - the Position referring to the wordhc - the HyphContext storing hyphenation informationpublic boolean applyChanges(java.util.List oldList)
applyChanges in interface InlineLevelLayoutManagerapplyChanges in class LeafNodeLayoutManageroldList - the list of the old elements the changes refer to
public java.util.List getChangedKnuthElements(java.util.List oldList,
int alignment)
getChangedKnuthElements in interface LayoutManagergetChangedKnuthElements in class LeafNodeLayoutManageroldList - the elements to replacealignment - the desired text alignment
public int getBaseLength(int lengthBase,
FObj fobj)
LengthBase.
getBaseLength in interface PercentBaseContextgetBaseLength in class AbstractBaseLayoutManagerlengthBase - Indicates which type of the base length value is to be returnedfobj - The FO object against which the percentage should be evaluated
public int getContentAreaIPD()
getContentAreaIPD in interface LayoutManagergetContentAreaIPD in class AbstractBaseLayoutManagerpublic void reset()
reset in interface LayoutManagerreset in class AbstractLayoutManager
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||