|
fop 0.94 | |||||||||
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, isSomethingChanged, log |
Fields inherited from class org.apache.fop.layoutmgr.AbstractLayoutManager |
---|
childLMiter, childLMs, curChildLM, fobjIter, markers, parentLM |
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. |
protected void |
addId()
This method is called by addAreas() so IDs can be added to a page for FOs that support the 'id' property. |
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.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. |
int |
getContentAreaIPD()
Returns the IPD of the content area |
java.util.LinkedList |
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. |
Methods inherited from class org.apache.fop.layoutmgr.inline.LeafNodeLayoutManager |
---|
addALetterSpaceTo, addChildArea, addKnuthElementsForBorderPaddingEnd, addKnuthElementsForBorderPaddingStart, getEffectiveArea, getParentArea, getWordChars, makeAlignmentContext, offsetArea, removeWordSpace, 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, resetPosition, setFinished, setParent, transferForeignAttributes |
Methods inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
---|
getAncestorBlockAreaBPD, getAncestorBlockAreaIPD, getContentAreaBPD, 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, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getParent, getPSLM, isFinished, notifyPos, resetPosition, setFinished, setParent |
Constructor Detail |
---|
public LeaderLayoutManager(Leader node)
node
- the formatting object that creates this areaMethod Detail |
---|
public void initialize()
LayoutManager
initialize
in interface LayoutManager
initialize
in class AbstractLayoutManager
LayoutManager.initialize()
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)
LeafNodeLayoutManager
addAreas
in interface LayoutManager
addAreas
in class LeafNodeLayoutManager
posIter
- the position iteratorcontext
- the layout context for adding the areaLeafNodeLayoutManager.addAreas(PositionIterator, LayoutContext)
public java.util.LinkedList getNextKnuthElements(LayoutContext context, int alignment)
LayoutManager
getNextKnuthElements
in interface LayoutManager
getNextKnuthElements
in class LeafNodeLayoutManager
context
- the LayoutContext used to store layout informationalignment
- the desired text alignement
LayoutManager.getNextKnuthElements(LayoutContext, int)
public void hyphenate(Position pos, HyphContext hc)
InlineLevelLayoutManager
hyphenate
in interface InlineLevelLayoutManager
hyphenate
in class LeafNodeLayoutManager
pos
- the Position referring to the wordhc
- the HyphContext storing hyphenation informationInlineLevelLayoutManager.hyphenate(Position, HyphContext)
public boolean applyChanges(java.util.List oldList)
InlineLevelLayoutManager
applyChanges
in interface InlineLevelLayoutManager
applyChanges
in class LeafNodeLayoutManager
oldList
- the list of the old elements the changes refer to
InlineLevelLayoutManager.applyChanges(List)
public java.util.LinkedList getChangedKnuthElements(java.util.List oldList, int alignment)
LayoutManager
getChangedKnuthElements
in interface LayoutManager
getChangedKnuthElements
in class LeafNodeLayoutManager
oldList
- the elements to replacealignment
- the desired text alignment
LayoutManager.getChangedKnuthElements(List, int)
protected void addId()
LeafNodeLayoutManager
addId
in class LeafNodeLayoutManager
LeafNodeLayoutManager.addId()
public int getBaseLength(int lengthBase, FObj fobj)
PercentBaseContext
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
PercentBaseContext.getBaseLength(int, FObj)
public int getContentAreaIPD()
getContentAreaIPD
in interface LayoutManager
getContentAreaIPD
in class AbstractBaseLayoutManager
LayoutManager.getContentAreaIPD()
|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |