|
fop svn-trunk | |||||||||
| 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.InlineStackingLayoutManager
org.apache.fop.layoutmgr.inline.InlineLayoutManager
public class InlineLayoutManager
LayoutManager for objects which stack children in the inline direction, such as Inline or Line
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager |
|---|
InlineStackingLayoutManager.StackingIter |
| Field Summary | |
|---|---|
protected Length |
alignmentAdjust
The alignment adjust property |
protected int |
alignmentBaseline
The alignment baseline property |
protected Length |
baselineShift
The baseline shift property |
protected int |
dominantBaseline
The dominant baseline property |
protected SpaceProperty |
lineHeight
The line height property |
| Fields inherited from class org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager |
|---|
childLC, extraBPD |
| Fields inherited from class org.apache.fop.layoutmgr.AbstractLayoutManager |
|---|
childLMiter, childLMs, curChildLM, fobjIter, parentLM |
| Fields inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
|---|
fobj, generatesBlockArea, generatesReferenceArea |
| Constructor Summary | |
|---|---|
InlineLayoutManager(InlineLevel node)
Create an inline layout manager. |
|
| Method Summary | |
|---|---|
void |
addAreas(PositionIterator parentIter,
LayoutContext context)
Generate and add areas to parent area. |
void |
addChildArea(Area childArea)
Add a child area to the current area. |
protected void |
addKnuthElementsForBorderPaddingEnd(java.util.List returnList)
Creates Knuth elements for end border padding and adds them to the return list. |
protected void |
addKnuthElementsForBorderPaddingStart(java.util.List returnList)
Creates Knuth elements for start border padding and adds them to the return list. |
protected InlineArea |
createArea(boolean hasInlineParent)
Create and initialize an InlineArea |
protected Position |
getAuxiliaryPosition()
|
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. |
protected MinOptMax |
getExtraIPD(boolean isNotFirst,
boolean isNotLast)
Returns the extra IPD needed for any leading or trailing fences for the current area. |
java.util.List |
getNextKnuthElements(LayoutContext context,
int alignment)
Get a sequence of KnuthElements representing the content of the node assigned to the LM |
protected SpaceProperty |
getSpaceEnd()
Get the space at the end of the inline area. |
protected SpaceProperty |
getSpaceStart()
Get the space at the start of the inline area. |
protected boolean |
hasLeadingFence(boolean isNotFirst)
Indication if the current area has a leading fence. |
protected boolean |
hasTrailingFence(boolean isNotLast)
Indication if the current area has a trailing fence. |
void |
initialize()
initialize the layout manager. |
boolean |
mustKeepTogether()
|
protected void |
setTraits(boolean isNotFirst,
boolean isNotLast)
Trait setter to be overridden by subclasses. |
| Methods inherited from class org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager |
|---|
addALetterSpaceTo, addSpace, applyChanges, clearPrevIPD, getContext, getCurrentArea, getPrevIPD, getWordChars, hyphenate, removeWordSpace, setChildContext, setCurrentArea, setLMiter |
| Methods inherited from class org.apache.fop.layoutmgr.AbstractLayoutManager |
|---|
addChildLM, addChildLMs, addId, addMarkersToPage, checkEndOfLayout, createChildLMs, createNextChildLMs, getChildLM, getChildLMs, getCurrentPage, getCurrentPV, getParent, getParentArea, getPSLM, hasNextChildLM, isFinished, isFirst, isLast, notifyEndOfLayout, notifyPos, setFinished, setParent, toString, transferExtensionAttachments, transferExtensions, 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, wait, wait, wait |
| Methods inherited from interface org.apache.fop.layoutmgr.LayoutManager |
|---|
addChildLM, addChildLMs, createNextChildLMs, getChildLMs, getContentAreaBPD, getContentAreaIPD, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getParent, getParentArea, getPSLM, isFinished, notifyPos, setFinished, setParent |
| Methods inherited from interface org.apache.fop.datatypes.PercentBaseContext |
|---|
getBaseLength |
| Field Detail |
|---|
protected Length alignmentAdjust
protected int alignmentBaseline
protected Length baselineShift
protected int dominantBaseline
protected SpaceProperty lineHeight
| Constructor Detail |
|---|
public InlineLayoutManager(InlineLevel node)
node - the formatting object that creates the area| Method Detail |
|---|
public void initialize()
initialize in interface LayoutManagerinitialize in class AbstractLayoutManager
protected MinOptMax getExtraIPD(boolean isNotFirst,
boolean isNotLast)
getExtraIPD in class InlineStackingLayoutManagerisNotFirst - true if not the first area for this layout managerisNotLast - true if not the last area for this layout manager
protected boolean hasLeadingFence(boolean isNotFirst)
hasLeadingFence in class InlineStackingLayoutManagerisNotFirst - true if not the first area for this layout manager
protected boolean hasTrailingFence(boolean isNotLast)
hasTrailingFence in class InlineStackingLayoutManagerisNotLast - true if not the last area for this layout manager
protected SpaceProperty getSpaceStart()
getSpaceStart in class InlineStackingLayoutManagerprotected SpaceProperty getSpaceEnd()
getSpaceEnd in class InlineStackingLayoutManagerprotected InlineArea createArea(boolean hasInlineParent)
InlineArea
hasInlineParent - true if the parent is an inline
protected void setTraits(boolean isNotFirst,
boolean isNotLast)
setTraits in class InlineStackingLayoutManagerisNotFirst - true if this is not the first child area addedisNotLast - true if this is not the last child area addedpublic boolean mustKeepTogether()
public java.util.List getNextKnuthElements(LayoutContext context,
int alignment)
getNextKnuthElements in interface LayoutManagergetNextKnuthElements in class AbstractLayoutManagercontext - the LayoutContext used to store layout informationalignment - the desired text alignment
public void addAreas(PositionIterator parentIter,
LayoutContext context)
addAreas in interface LayoutManageraddAreas in class AbstractLayoutManagerparentIter - Iterator over Position information returned
by this LayoutManager.context - layout context.public void addChildArea(Area childArea)
addChildArea in interface LayoutManageraddChildArea in class AbstractLayoutManagerchildArea - the child area to be added
public java.util.List getChangedKnuthElements(java.util.List oldList,
int alignment)
getChangedKnuthElements in interface LayoutManagergetChangedKnuthElements in class InlineStackingLayoutManageroldList - the elements to replacealignment - the desired text alignment
protected void addKnuthElementsForBorderPaddingStart(java.util.List returnList)
returnList - return list to add the additional elements toprotected void addKnuthElementsForBorderPaddingEnd(java.util.List returnList)
returnList - return list to add the additional elements toprotected Position getAuxiliaryPosition()
|
fop svn-trunk | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||