|
fop 1.1 | |||||||||
| 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.BlockStackingLayoutManager
org.apache.fop.layoutmgr.list.ListItemLayoutManager
public class ListItemLayoutManager
LayoutManager for a list-item FO. The list item contains a list item label and a list item body.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.fop.layoutmgr.BlockStackingLayoutManager |
|---|
BlockStackingLayoutManager.MappingPosition |
| Field Summary |
|---|
| Fields inherited from class org.apache.fop.layoutmgr.BlockStackingLayoutManager |
|---|
adjustedSpaceAfter, adjustedSpaceBefore, bpUnit, breakBeforeServed, endIndent, firstVisibleMarkServed, foSpaceAfter, foSpaceBefore, parentArea, referenceIPD, startIndent, storedList |
| 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 | |
|---|---|
ListItemLayoutManager(ListItem node)
Create a new list item layout manager. |
|
| Method Summary | |
|---|---|
void |
addAreas(PositionIterator parentIter,
LayoutContext layoutContext)
Add the areas for the break points. |
void |
addChildArea(Area childArea)
Add the child. |
protected void |
addFirstVisibleMarks(java.util.List<ListElement> elements,
LayoutContext context,
int alignment)
Overridden to unconditionally add elements for space-before. |
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. |
KeepProperty |
getKeepTogetherProperty()
Returns the keep-together property specified on the FObj. |
KeepProperty |
getKeepWithNextProperty()
Returns the keep-with-next property specified on the FObj. |
KeepProperty |
getKeepWithPreviousProperty()
Returns the keep-with-previous property specified on the FObj. |
protected ListItem |
getListItemFO()
Convenience method. |
java.util.List |
getNextKnuthElements(LayoutContext context,
int alignment)
Get a sequence of KnuthElements representing the content of the node assigned to the LM. |
Area |
getParentArea(Area childArea)
Return an Area which can contain the passed childArea. |
void |
initialize()
initialize the layout manager. |
void |
notifyBorder(RelSide side,
MinOptMax effectiveLength)
Notifies the layout manager about the effective length/width of its border. |
void |
notifyPadding(RelSide side,
MinOptMax effectiveLength)
Notifies the layout manager about the effective length/width of its padding. |
void |
notifySpace(RelSide side,
MinOptMax effectiveLength)
Notifies the layout manager about the effective length of its space. |
void |
reset()
Re-initializes this layout manager in order to re-generate its Knuth elements according to a new IPD value. |
void |
setBody(ListItemBody node)
Create a LM for the fo:list-item-body object |
void |
setLabel(ListItemLabel node)
Create a LM for the fo:list-item-label object |
| Methods inherited from class org.apache.fop.layoutmgr.AbstractLayoutManager |
|---|
addChildLM, addChildLMs, addId, addMarkersToPage, checkEndOfLayout, createChildLMs, createNextChildLMs, getChildLM, getChildLMs, getCurrentPage, getCurrentPV, getParent, getPSLM, hasNextChildLM, isFinished, isFirst, isLast, notifyEndOfLayout, notifyPos, setCurrentChildLM, setFinished, setParent, toString, transferExtensionAttachments, transferExtensions, transferForeignAttributes |
| Methods inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
|---|
getAncestorBlockAreaBPD, getAncestorBlockAreaIPD, getBaseLength, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, 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, getChildLMs, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getParent, getPSLM, isFinished, isRestartable, notifyPos, setFinished, setParent |
| Methods inherited from interface org.apache.fop.datatypes.PercentBaseContext |
|---|
getBaseLength |
| Constructor Detail |
|---|
public ListItemLayoutManager(ListItem node)
node - list-item to create the layout manager for| Method Detail |
|---|
protected ListItem getListItemFO()
public void setLabel(ListItemLabel node)
node - the fo:list-item-label FOpublic void setBody(ListItemBody node)
node - the fo:list-item-body FOpublic void initialize()
initialize in interface LayoutManagerinitialize in class AbstractLayoutManager
public java.util.List getNextKnuthElements(LayoutContext context,
int alignment)
getNextKnuthElements in interface LayoutManagergetNextKnuthElements in class BlockStackingLayoutManagercontext - the LayoutContext used to store layout informationalignment - the desired text alignment
protected void addFirstVisibleMarks(java.util.List<ListElement> elements,
LayoutContext context,
int alignment)
addFirstVisibleMarks in class BlockStackingLayoutManagerelements - the element listcontext - the layout contextalignment - the vertical alignment
public java.util.List getChangedKnuthElements(java.util.List oldList,
int alignment)
getChangedKnuthElements in interface LayoutManagergetChangedKnuthElements in class BlockStackingLayoutManageroldList - the elements to replacealignment - the desired text alignment
public void addAreas(PositionIterator parentIter,
LayoutContext layoutContext)
addAreas in interface LayoutManageraddAreas in class AbstractLayoutManagerparentIter - the position iteratorlayoutContext - the layout context for adding areaspublic Area getParentArea(Area childArea)
getParentArea in interface LayoutManagergetParentArea in class AbstractLayoutManagerchildArea - the child area
public void addChildArea(Area childArea)
addChildArea in interface LayoutManageraddChildArea in class BlockStackingLayoutManagerchildArea - the child areapublic KeepProperty getKeepTogetherProperty()
IllegalStateException.
Must be implemented by the subclass, if applicable.
getKeepTogetherProperty in interface BlockLevelLayoutManagergetKeepTogetherProperty in class BlockStackingLayoutManagerpublic KeepProperty getKeepWithPreviousProperty()
IllegalStateException.
Must be implemented by the subclass, if applicable.
getKeepWithPreviousProperty in interface BlockLevelLayoutManagergetKeepWithPreviousProperty in class BlockStackingLayoutManagerpublic KeepProperty getKeepWithNextProperty()
IllegalStateException.
Must be implemented by the subclass, if applicable.
getKeepWithNextProperty in interface BlockLevelLayoutManagergetKeepWithNextProperty in class BlockStackingLayoutManager
public void notifySpace(RelSide side,
MinOptMax effectiveLength)
notifySpace in interface ConditionalElementListenerside - the side to which the space applieseffectiveLength - the effective length after space-resolution (null means zero length)
public void notifyBorder(RelSide side,
MinOptMax effectiveLength)
notifyBorder in interface ConditionalElementListenerside - the side to which the border applieseffectiveLength - the effective length in the current break situation
(null means zero length)
public void notifyPadding(RelSide side,
MinOptMax effectiveLength)
notifyPadding in interface ConditionalElementListenerside - the side to which the padding applieseffectiveLength - the effective length in the current break situation
(null means zero length)public void reset()
reset in interface LayoutManagerreset in class BlockStackingLayoutManager
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||