|
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 cellMethod Detail |
public TableCell getTableCell()
public void initialize()
LayoutManager
initialize
in interface LayoutManager
initialize
in class AbstractLayoutManager
LayoutManager.initialize()
public Table getTable()
protected int getIPIndents()
getIPIndents
in class BlockStackingLayoutManager
BlockStackingLayoutManager.getIPIndents()
public java.util.LinkedList getNextKnuthElements(LayoutContext context, int alignment)
LayoutManager
getNextKnuthElements
in interface LayoutManager
getNextKnuthElements
in class BlockStackingLayoutManager
LayoutManager
public 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 rowpublic void addAreas(PositionIterator parentIter, LayoutContext layoutContext)
addAreas
in interface LayoutManager
addAreas
in class AbstractLayoutManager
parentIter
- 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 LayoutManager
getParentArea
in class AbstractLayoutManager
childArea
- the child area to get the parent for
public void addChildArea(Area childArea)
addChildArea
in interface LayoutManager
addChildArea
in class BlockStackingLayoutManager
childArea
- the child to add to the cellpublic void resetPosition(Position resetPos)
resetPosition
in interface LayoutManager
resetPosition
in class AbstractLayoutManager
resetPos
- the position to reset toLayoutManager.resetPosition(Position)
public int negotiateBPDAdjustment(int adj, KnuthElement lastElement)
negotiateBPDAdjustment
in interface BlockLevelLayoutManager
negotiateBPDAdjustment
in class BlockStackingLayoutManager
BlockLevelLayoutManager
public void discardSpace(KnuthGlue spaceGlue)
discardSpace
in interface BlockLevelLayoutManager
discardSpace
in class BlockStackingLayoutManager
BlockLevelLayoutManager
public boolean mustKeepTogether()
mustKeepTogether
in interface BlockLevelLayoutManager
mustKeepTogether
in class BlockStackingLayoutManager
BlockLevelLayoutManager.mustKeepTogether()
public boolean mustKeepWithPrevious()
mustKeepWithPrevious
in interface BlockLevelLayoutManager
mustKeepWithPrevious
in class BlockStackingLayoutManager
BlockLevelLayoutManager.mustKeepWithPrevious()
public boolean mustKeepWithNext()
mustKeepWithNext
in interface BlockLevelLayoutManager
mustKeepWithNext
in class BlockStackingLayoutManager
BlockLevelLayoutManager.mustKeepWithNext()
public int getContentAreaIPD()
getContentAreaIPD
in interface LayoutManager
getContentAreaIPD
in class BlockStackingLayoutManager
public int getContentAreaBPD()
getContentAreaBPD
in interface LayoutManager
getContentAreaBPD
in class BlockStackingLayoutManager
public boolean getGeneratesReferenceArea()
LayoutManager
getGeneratesReferenceArea
in interface LayoutManager
getGeneratesReferenceArea
in class AbstractBaseLayoutManager
LayoutManager.getGeneratesReferenceArea()
public boolean getGeneratesBlockArea()
LayoutManager
getGeneratesBlockArea
in interface LayoutManager
getGeneratesBlockArea
in class AbstractBaseLayoutManager
LayoutManager.getGeneratesBlockArea()
|
fop 0.93 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |