|
fop 0.95 | ||||||||||
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
LayoutManager for the fo:leader formatting object
Nested Class Summary |
Nested classes 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, 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. This adds the single inline area to the parent. |
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. Length base should be one of the constants defined in LengthBase . |
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. For example, if the text "representation" originates a single box element when getNextKnuthElements() is called, it will be now split in syllables (rep-re-sen-ta-tion) each one originating a box and divided by additional elements allowing a line break. In the context of page breaking, this method is called only if the pages need to be "vertically justified" modifying (also) the quantity of lines created by the paragraphs, and after a first page breaking has been performed. According to the result of the first page breaking, each paragraph now knows how many lines it must create (among the existing layout possibilities) and has to create a sequence of elements representing this layout; in particular, each box, representing a line, will contain a LineBreakPositions that will be used in the addAreas() phase. LMs having children look at the old list of elements in order to know which ones they must get the new elements from, as break conditions of preserved linefeeds can divide children into smaller groups (page sequences or paragraphs). LMs having no children can simply return the old elements if they have nothing to change. Inline LMs need to know the text alignment because it affects the elements representing feasible breaks between syllables. |
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. Allows each layout manager to calculate often used values. |
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, addMarkersToPage, createChildLMs, createNextChildLMs, getChildLM, getChildLMs, getCurrentPage, getCurrentPV, getParent, getPSLM, hasNextChildLM, isFinished, isFirst, isLast, notifyPos, setFinished, setParent, toString, 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, 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, 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.LinkedList getNextKnuthElements(LayoutContext context, int alignment)
getNextKnuthElements
in interface LayoutManager
getNextKnuthElements
in class LeafNodeLayoutManager
public void hyphenate(Position pos, HyphContext hc)
hyphenate
in interface InlineLevelLayoutManager
hyphenate
in class LeafNodeLayoutManager
public boolean applyChanges(java.util.List oldList)
applyChanges
in interface InlineLevelLayoutManager
applyChanges
in class LeafNodeLayoutManager
public java.util.LinkedList getChangedKnuthElements(java.util.List oldList, int alignment)
getChangedKnuthElements
in interface LayoutManager
getChangedKnuthElements
in class LeafNodeLayoutManager
protected void addId()
addId
in class LeafNodeLayoutManager
public int getBaseLength(int lengthBase, FObj fobj)
LengthBase
.
getBaseLength
in interface PercentBaseContext
getBaseLength
in class AbstractBaseLayoutManager
public int getContentAreaIPD()
getContentAreaIPD
in interface LayoutManager
getContentAreaIPD
in class AbstractBaseLayoutManager
|
fop 0.95 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |