|
fop 2.2 | |||||||||
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
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, parentLayoutManager |
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 isInline)
Create and initialize an InlineArea |
protected InlineParent |
createInlineParent()
Creates the inline area that will contain the areas returned by the children of this layout manager. |
protected Position |
getAuxiliaryPosition()
|
java.util.List |
getChangedKnuthElements(java.util.List oldList,
int alignment,
int depth)
Get a sequence of KnuthElements representing the content of the node assigned to the LM, after changes have been applied |
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, addALetterSpaceTo, addSpace, applyChanges, applyChanges, getBreakBefore, getChangedKnuthElements, getContext, getCurrentArea, getWordChars, hyphenate, setChildContext, setCurrentArea, setLMiter |
Methods inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
---|
getAncestorBlockAreaBPD, getAncestorBlockAreaIPD, getBaseLength, getContentAreaBPD, getContentAreaIPD, 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, getContentAreaIPD, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getNextKnuthElements, getParent, getParentArea, getPSLM, hasLineAreaDescendant, isFinished, isRestartable, notifyPos, reset, 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 isInline)
InlineArea
isInline
- true if the parent is an inline
protected InlineParent createInlineParent()
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.List getNextKnuthElements(LayoutContext context, int alignment)
getNextKnuthElements
in interface LayoutManager
getNextKnuthElements
in class AbstractLayoutManager
context
- the LayoutContext used to store layout informationalignment
- the desired text alignment
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.List getChangedKnuthElements(java.util.List oldList, int alignment, int depth)
getChangedKnuthElements
in interface InlineLevelLayoutManager
getChangedKnuthElements
in class InlineStackingLayoutManager
oldList
- the elements to replacealignment
- the desired text alignmentdepth
- the depth at which the Positions for this LM in oldList are found
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()
Position
instance used for things like spaces.
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |