|
fop 2.3 | |||||||||
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.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, getBaselineOffset, getChildLMs, getContentAreaBPD, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getNextKnuthElements, getParent, getPSLM, hasLineAreaDescendant, isFinished, isRestartable, notifyPos, setFinished, setParent |
Constructor Detail |
---|
public LeaderLayoutManager(Leader node)
node
- the formatting object that creates this areaMethod Detail |
---|
public void initialize()
initialize
in interface LayoutManager
initialize
in class AbstractLayoutManager
public InlineArea get(LayoutContext context)
get
in class LeafNodeLayoutManager
context
- the layout context
protected MinOptMax getAllocationIPD(int refIPD)
getAllocationIPD
in class LeafNodeLayoutManager
refIPD
- the IPD of the reference area
public void addAreas(PositionIterator posIter, LayoutContext context)
addAreas
in interface LayoutManager
addAreas
in class LeafNodeLayoutManager
posIter
- the position iteratorcontext
- the layout context for adding the areapublic java.util.List getNextKnuthElements(LayoutContext context, int alignment)
getNextKnuthElements
in interface LayoutManager
getNextKnuthElements
in class LeafNodeLayoutManager
context
- the LayoutContext used to store layout informationalignment
- the desired text alignment
public void hyphenate(Position pos, HyphContext hc)
hyphenate
in interface InlineLevelLayoutManager
hyphenate
in class LeafNodeLayoutManager
pos
- the Position referring to the wordhc
- the HyphContext storing hyphenation informationpublic boolean applyChanges(java.util.List oldList)
applyChanges
in interface InlineLevelLayoutManager
applyChanges
in class LeafNodeLayoutManager
oldList
- the list of the old elements the changes refer to
public java.util.List getChangedKnuthElements(java.util.List oldList, int alignment)
getChangedKnuthElements
in interface LayoutManager
getChangedKnuthElements
in class LeafNodeLayoutManager
oldList
- the elements to replacealignment
- the desired text alignment
public int getBaseLength(int lengthBase, FObj fobj)
LengthBase
.
getBaseLength
in interface PercentBaseContext
getBaseLength
in class AbstractBaseLayoutManager
lengthBase
- 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 LayoutManager
getContentAreaIPD
in class AbstractBaseLayoutManager
public void reset()
reset
in interface LayoutManager
reset
in class AbstractLayoutManager
|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |