|
fop 0.93 | ||||||||||
| 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.table.TableCellLayoutManager
LayoutManager for a table-cell FO. A cell contains blocks. These blocks fill the cell.
| Nested Class Summary |
| Nested classes inherited from class org.apache.fop.layoutmgr.BlockStackingLayoutManager |
BlockStackingLayoutManager.MappingPosition, BlockStackingLayoutManager.StackingIter |
| 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, markers, parentLM |
| Fields inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
fobj, generatesBlockArea, generatesReferenceArea |
| Fields inherited from interface org.apache.fop.layoutmgr.BlockLevelLayoutManager |
LINE_HEIGHT_ADJUSTMENT, LINE_NUMBER_ADJUSTMENT, NO_ADJUSTMENT, SPACE_AFTER_ADJUSTMENT, SPACE_BEFORE_ADJUSTMENT |
| Constructor Summary | |
TableCellLayoutManager(TableCell node,
PrimaryGridUnit pgu)
Create a new Cell layout manager. |
|
| Method Summary | |
void |
addAreas(PositionIterator parentIter,
LayoutContext layoutContext)
Add the areas for the break points. |
void |
addChildArea(Area childArea)
Add the child to the cell block area. |
void |
discardSpace(KnuthGlue spaceGlue)
|
int |
getContentAreaBPD()
Returns the BPD of the content area |
int |
getContentAreaIPD()
Returns the IPD of the content area |
boolean |
getGeneratesBlockArea()
Returns an indication if the layout manager generates a block area. |
boolean |
getGeneratesReferenceArea()
Returns an indication if the layout manager generates a reference area. |
protected int |
getIPIndents()
|
java.util.LinkedList |
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. |
Table |
getTable()
|
TableCell |
getTableCell()
|
void |
initialize()
initialize the layout manager. |
boolean |
mustKeepTogether()
|
boolean |
mustKeepWithNext()
|
boolean |
mustKeepWithPrevious()
|
int |
negotiateBPDAdjustment(int adj,
KnuthElement lastElement)
|
void |
resetPosition(Position resetPos)
Reset the position of the layout. |
void |
setContentHeight(int h)
Set the content height for this cell. |
void |
setInRowIPDOffset(int off)
Set the IPD offset of this cell inside the table-row. |
void |
setRowHeight(int h)
Set the row height that contains this cell. |
void |
setXOffset(int off)
Set the x offset of this cell (usually the same as its parent row). |
void |
setYOffset(int off)
Set the y offset of this cell. |
| Methods inherited from class org.apache.fop.layoutmgr.AbstractLayoutManager |
addChildLM, addChildLMs, createChildLMs, createNextChildLMs, getChildLM, getChildLMs, getCurrentPage, getCurrentPV, getParent, getPSLM, hasNextChildLM, isFinished, isFirst, isLast, notifyPos, reset, setFinished, setParent, transferForeignAttributes |
| Methods inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
getAncestorBlockAreaBPD, getAncestorBlockAreaIPD, getBaseLength, getFObj, getGeneratesLineArea, getParentAreaBPD, getParentAreaIPD, getReferenceAreaBPD, getReferenceAreaIPD, setGeneratesBlockArea, setGeneratesReferenceArea |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.fop.layoutmgr.LayoutManager |
addChildLM, addChildLMs, createNextChildLMs, getChangedKnuthElements, getChildLMs, getFObj, getGeneratesLineArea, getParent, getPSLM, isFinished, notifyPos, setFinished, setParent |
| Methods inherited from interface org.apache.fop.datatypes.PercentBaseContext |
getBaseLength |
| Constructor Detail |
public TableCellLayoutManager(TableCell node,
PrimaryGridUnit pgu)
node - table-cell FO for which to create the LMpgu - primary grid unit for the cell| Method Detail |
public TableCell getTableCell()
public void initialize()
LayoutManager
initialize in interface LayoutManagerinitialize in class AbstractLayoutManagerLayoutManager.initialize()public Table getTable()
protected int getIPIndents()
getIPIndents in class BlockStackingLayoutManagerBlockStackingLayoutManager.getIPIndents()
public java.util.LinkedList getNextKnuthElements(LayoutContext context,
int alignment)
LayoutManager
getNextKnuthElements in interface LayoutManagergetNextKnuthElements in class BlockStackingLayoutManagerLayoutManagerpublic void setYOffset(int off)
off - the y direction offsetpublic void setXOffset(int off)
off - the x offsetpublic void setInRowIPDOffset(int off)
off - the IPD offsetpublic void setContentHeight(int h)
h - the height of the contents of this cellpublic void setRowHeight(int h)
h - the height of the row
public void addAreas(PositionIterator parentIter,
LayoutContext layoutContext)
addAreas in interface LayoutManageraddAreas in class AbstractLayoutManagerparentIter - the iterator of the break positionslayoutContext - the layout context for adding the areasLayoutManager.addAreas(
org.apache.fop.layoutmgr.PositionIterator
, org.apache.fop.layoutmgr.LayoutContext)public Area getParentArea(Area childArea)
getParentArea in interface LayoutManagergetParentArea in class AbstractLayoutManagerchildArea - the child area to get the parent for
public void addChildArea(Area childArea)
addChildArea in interface LayoutManageraddChildArea in class BlockStackingLayoutManagerchildArea - the child to add to the cellpublic void resetPosition(Position resetPos)
resetPosition in interface LayoutManagerresetPosition in class AbstractLayoutManagerresetPos - the position to reset toLayoutManager.resetPosition(Position)
public int negotiateBPDAdjustment(int adj,
KnuthElement lastElement)
negotiateBPDAdjustment in interface BlockLevelLayoutManagernegotiateBPDAdjustment in class BlockStackingLayoutManagerBlockLevelLayoutManagerpublic void discardSpace(KnuthGlue spaceGlue)
discardSpace in interface BlockLevelLayoutManagerdiscardSpace in class BlockStackingLayoutManagerBlockLevelLayoutManagerpublic boolean mustKeepTogether()
mustKeepTogether in interface BlockLevelLayoutManagermustKeepTogether in class BlockStackingLayoutManagerBlockLevelLayoutManager.mustKeepTogether()public boolean mustKeepWithPrevious()
mustKeepWithPrevious in interface BlockLevelLayoutManagermustKeepWithPrevious in class BlockStackingLayoutManagerBlockLevelLayoutManager.mustKeepWithPrevious()public boolean mustKeepWithNext()
mustKeepWithNext in interface BlockLevelLayoutManagermustKeepWithNext in class BlockStackingLayoutManagerBlockLevelLayoutManager.mustKeepWithNext()public int getContentAreaIPD()
getContentAreaIPD in interface LayoutManagergetContentAreaIPD in class BlockStackingLayoutManagerpublic int getContentAreaBPD()
getContentAreaBPD in interface LayoutManagergetContentAreaBPD in class BlockStackingLayoutManagerpublic boolean getGeneratesReferenceArea()
LayoutManager
getGeneratesReferenceArea in interface LayoutManagergetGeneratesReferenceArea in class AbstractBaseLayoutManagerLayoutManager.getGeneratesReferenceArea()public boolean getGeneratesBlockArea()
LayoutManager
getGeneratesBlockArea in interface LayoutManagergetGeneratesBlockArea in class AbstractBaseLayoutManagerLayoutManager.getGeneratesBlockArea()
|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||