|
fop 2.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.SpacedBorderedPaddedBlockLayoutManager
org.apache.fop.layoutmgr.table.TableLayoutManager
public class TableLayoutManager
LayoutManager for a table FO. A table consists of columns, table header, table footer and multiple table bodies. The header, footer and body add the areas created from the table cells. The table then creates areas for the columns, bodies and rows the render background.
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.SpacedBorderedPaddedBlockLayoutManager |
---|
discardBorderAfter, discardBorderBefore, discardPaddingAfter, discardPaddingBefore, effSpaceAfter, effSpaceBefore |
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 | |
---|---|
TableLayoutManager(Table node)
Create a new table layout manager. |
Method Summary | |
---|---|
void |
addAreas(PositionIterator parentIter,
LayoutContext layoutContext)
The table area is a reference area that contains areas for columns, bodies, rows and the contents are in cells. |
void |
addChildArea(Area childArea)
Add the child area to this layout manager. |
protected void |
clearTableFragmentMarkers()
Clears the list of markers in the current table fragment. |
void |
discardSpace(KnuthGlue spaceGlue)
Discard space. |
void |
flagAsHavingRetrieveTableMarker()
|
Position |
getAuxiliaryPosition()
|
int |
getBaseLength(int lengthBase,
FObj fobj)
Returns the base length for the given length base. |
ColumnSetup |
getColumns()
|
protected CommonBorderPaddingBackground |
getCommonBorderPaddingBackground()
Returns the CommonBorderPaddingBackground instance from the FO handled by this layout manager. |
int |
getHalfBorderSeparationBPD()
|
int |
getHalfBorderSeparationIPD()
|
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. |
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. |
Table |
getTable()
|
void |
initialize()
initialize the layout manager. |
int |
negotiateBPDAdjustment(int adj,
KnuthElement lastElement)
Negotiate BPD adjustment. |
protected void |
possiblyRegisterMarkersForTables(java.util.Map<java.lang.String,Marker> markers,
boolean isStarting,
boolean isFirst,
boolean isLast)
|
void |
registerMarkers(java.util.Map<java.lang.String,Marker> marks,
boolean starting,
boolean isfirst,
boolean islast)
Register the markers for this table. |
protected void |
repeatAddAreasForSavedTableHeaderTableCellLayoutManagers()
Calls addAreas() for each of the saved TableCellLayoutManagers. |
void |
reset()
Re-initializes this layout manager in order to re-generate its Knuth elements according to a new IPD value. |
RetrieveTableMarker |
resolveRetrieveTableMarker(RetrieveTableMarker rtm)
Resolves a RetrieveTableMarker by finding a qualifying Marker to which it is bound to. |
protected void |
saveTableHeaderTableCellLayoutManagers(TableCellLayoutManager tclm)
Saves a TableCellLayoutManager for later use. |
void |
setRepeateHeader(boolean repeateHeader)
|
Methods inherited from class org.apache.fop.layoutmgr.SpacedBorderedPaddedBlockLayoutManager |
---|
getBaselineOffset, notifyBorder, notifyPadding, notifySpace |
Methods inherited from class org.apache.fop.layoutmgr.AbstractBaseLayoutManager |
---|
getAncestorBlockAreaBPD, getAncestorBlockAreaIPD, 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.BreakOpportunity |
---|
getBreakBefore |
Methods inherited from interface org.apache.fop.layoutmgr.LayoutManager |
---|
addChildLM, addChildLMs, createNextChildLMs, getChildLMs, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getParent, getPSLM, hasLineAreaDescendant, isFinished, isRestartable, notifyPos, setFinished, setParent |
Constructor Detail |
---|
public TableLayoutManager(Table node)
node
- the table FOMethod Detail |
---|
protected CommonBorderPaddingBackground getCommonBorderPaddingBackground()
SpacedBorderedPaddedBlockLayoutManager
CommonBorderPaddingBackground
instance from the FO handled by this layout manager.
getCommonBorderPaddingBackground
in class SpacedBorderedPaddedBlockLayoutManager
public Table getTable()
public ColumnSetup getColumns()
public void initialize()
initialize
in interface LayoutManager
initialize
in class AbstractLayoutManager
public int getHalfBorderSeparationBPD()
public int getHalfBorderSeparationIPD()
public java.util.List getNextKnuthElements(LayoutContext context, int alignment)
getNextKnuthElements
in interface LayoutManager
getNextKnuthElements
in class BlockStackingLayoutManager
context
- the LayoutContext used to store layout informationalignment
- the desired text alignment
public Position getAuxiliaryPosition()
getAuxiliaryPosition
in class BlockStackingLayoutManager
public void addAreas(PositionIterator parentIter, LayoutContext layoutContext)
addAreas
in interface LayoutManager
addAreas
in class AbstractLayoutManager
parentIter
- the position iteratorlayoutContext
- the layout context for adding areaspublic Area getParentArea(Area childArea)
getParentArea
in interface LayoutManager
getParentArea
in class AbstractLayoutManager
childArea
- the child area
public void addChildArea(Area childArea)
addChildArea
in interface LayoutManager
addChildArea
in class BlockStackingLayoutManager
childArea
- the child area to addpublic int negotiateBPDAdjustment(int adj, KnuthElement lastElement)
negotiateBPDAdjustment
in interface BlockLevelLayoutManager
negotiateBPDAdjustment
in class BlockStackingLayoutManager
adj
- amount to adjustlastElement
- the last knuth element
public void discardSpace(KnuthGlue spaceGlue)
discardSpace
in interface BlockLevelLayoutManager
discardSpace
in class BlockStackingLayoutManager
spaceGlue
- the spacepublic KeepProperty getKeepTogetherProperty()
IllegalStateException
.
Must be implemented by the subclass, if applicable.
getKeepTogetherProperty
in interface BlockLevelLayoutManager
getKeepTogetherProperty
in class BlockStackingLayoutManager
public KeepProperty getKeepWithPreviousProperty()
IllegalStateException
.
Must be implemented by the subclass, if applicable.
getKeepWithPreviousProperty
in interface BlockLevelLayoutManager
getKeepWithPreviousProperty
in class BlockStackingLayoutManager
public KeepProperty getKeepWithNextProperty()
IllegalStateException
.
Must be implemented by the subclass, if applicable.
getKeepWithNextProperty
in interface BlockLevelLayoutManager
getKeepWithNextProperty
in class BlockStackingLayoutManager
public int getBaseLength(int lengthBase, FObj fobj)
LengthBase
.
getBaseLength
in interface PercentBaseContext
getBaseLength
in class AbstractBaseLayoutManager
lengthBase
- Indicates which type of the base length value is to be returnedfobj
- The FO object against which the percentage should be evaluated
public void reset()
reset
in interface LayoutManager
reset
in class BlockStackingLayoutManager
protected void saveTableHeaderTableCellLayoutManagers(TableCellLayoutManager tclm)
tclm
- a TableCellLayoutManager that has a RetrieveTableMarkerprotected void repeatAddAreasForSavedTableHeaderTableCellLayoutManagers()
public RetrieveTableMarker resolveRetrieveTableMarker(RetrieveTableMarker rtm)
rtm
- the RetrieveTableMarker to be resolved
public void registerMarkers(java.util.Map<java.lang.String,Marker> marks, boolean starting, boolean isfirst, boolean islast)
marks
- the map of markers to addstarting
- if the area being added is starting or endingisfirst
- if the area being added has is-first traitislast
- if the area being added has is-last traitprotected void clearTableFragmentMarkers()
public void flagAsHavingRetrieveTableMarker()
protected void possiblyRegisterMarkersForTables(java.util.Map<java.lang.String,Marker> markers, boolean isStarting, boolean isFirst, boolean isLast)
possiblyRegisterMarkersForTables
in class AbstractLayoutManager
public void setRepeateHeader(boolean repeateHeader)
|
fop 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |