|
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.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 |
---|
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 |
addId()
This method is called by addAreas() so IDs can be added to a page for FOs that support the 'id' property. |
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.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. |
protected MinOptMax |
getExtraIPD(boolean isNotFirst,
boolean isNotLast)
Returns the extra IPD needed for any leading or trailing fences for the current area. |
java.util.LinkedList |
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, addMarkersToPage, createChildLMs, createNextChildLMs, getChildLM, getChildLMs, getCurrentPage, getCurrentPV, getParent, getParentArea, getPSLM, hasNextChildLM, isFinished, isFirst, isLast, notifyPos, setFinished, setParent, toString, 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 areaMethod Detail |
---|
public void initialize()
initialize
in interface LayoutManager
initialize
in class AbstractLayoutManager
protected MinOptMax getExtraIPD(boolean isNotFirst, boolean isNotLast)
getExtraIPD
in class InlineStackingLayoutManager
isNotFirst
- 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 InlineStackingLayoutManager
isNotFirst
- true if not the first area for this layout manager
protected boolean hasTrailingFence(boolean isNotLast)
hasTrailingFence
in class InlineStackingLayoutManager
isNotLast
- true if not the last area for this layout manager
protected SpaceProperty getSpaceStart()
getSpaceStart
in class InlineStackingLayoutManager
protected SpaceProperty getSpaceEnd()
getSpaceEnd
in class InlineStackingLayoutManager
protected InlineArea createArea(boolean hasInlineParent)
InlineArea
hasInlineParent
- true if the parent is an inline
protected void setTraits(boolean isNotFirst, boolean isNotLast)
setTraits
in class InlineStackingLayoutManager
isNotFirst
- 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.LinkedList getNextKnuthElements(LayoutContext context, int alignment)
getNextKnuthElements
in interface LayoutManager
getNextKnuthElements
in class AbstractLayoutManager
context
- the LayoutContext used to store layout informationalignment
- the desired text alignement
public void addAreas(PositionIterator parentIter, LayoutContext context)
addAreas
in interface LayoutManager
addAreas
in class AbstractLayoutManager
parentIter
- Iterator over Position information returned
by this LayoutManager.context
- layout context.public void addChildArea(Area childArea)
addChildArea
in interface LayoutManager
addChildArea
in class AbstractLayoutManager
childArea
- the child area to be addedpublic java.util.LinkedList getChangedKnuthElements(java.util.List oldList, int alignment)
getChangedKnuthElements
in interface LayoutManager
getChangedKnuthElements
in class InlineStackingLayoutManager
oldList
- 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()
protected void addId()
addId
in class InlineStackingLayoutManager
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |