public class TableRenderer extends BoxRenderer implements InlineItem
Modifier and Type | Class and Description |
---|---|
class |
TableRenderer.BorderLimits |
class |
TableRenderer.ColumnStruct |
Renderer.ReflowPhase
Modifier and Type | Field and Description |
---|---|
boolean |
childAvoidsPageBreak |
int |
maxPrefWidth |
int |
minPrefWidth |
boolean |
pageBrokenChildren |
int |
tableNettoWidth |
abb, offset, row
Constructor and Description |
---|
TableRenderer(Element element) |
addAbsChild, borderBottom, borderLeft, borderRight, borderTop, containingBlock, createAssignedPageBreak, createAssignedPageBreak, createAssignedPageBreak, dashCalculator, expandHeight, findParentRenderer, getChildAt, getContentHeight, getContentWidth, getHeight, getParentForAbs, getScrollbarWidth, getTextBaseline, hasBackground, hasBorder, hasPadding, hasPercentualWidth, hasWidthBase, isAbsPositioned, isAvoidPageBreak, isLastChild, isOutOfFlowPositioned, isRelPositioned, isRTL, logicalHeight, logicalMaxHeight, logicalMinHeight, marginBottom, marginLeft, marginRight, marginTop, moveChildUp, paddingBottom, paddingLeft, paddingRight, paddingTop, setHeight, setOuterHeight, verticalMarginExtent, verticalOffset
getClear, getContext, getDecoration, getDisplayType, getElement, getFloat, getFontSize, getHeightObj, getLang, getMaxHeightObj, getMaxWidthObj, getMinHeightObj, getMinWidthObj, getParent, getTitle, getWidthObj, isAutoWidth, isBody, isBoxSized, isFloating, isTaggedOutput, isTBRL, isUseAwt, reLayout, setParent, setUseAwt, toString, updateHeights
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHeight, isRTL
public int tableNettoWidth
public int maxPrefWidth
public int minPrefWidth
public boolean childAvoidsPageBreak
public boolean pageBrokenChildren
public TableRenderer(Element element)
public void resetLayout()
BoxRenderer
resetLayout
in class BoxRenderer
public void resetMinWidth()
resetMinWidth
in class BoxRenderer
public int getAbsPositionedBottomEdge()
getAbsPositionedBottomEdge
in class Renderer
public Renderer addChild(Renderer renderer)
addChild
in class BoxRenderer
public void createNewSection()
public void endOfTable()
public int getMaxWidth(float base) throws ForcedTerminationException
getMaxWidth
in class Renderer
ForcedTerminationException
public int getMinWidth(float base) throws ForcedTerminationException
getMinWidth
in class Renderer
ForcedTerminationException
public int getOuterMinWidth(float base) throws ForcedTerminationException
getOuterMinWidth
in class Renderer
ForcedTerminationException
public RStatus layout(Renderer.ReflowPhase phase) throws IOException
layout
in class BoxRenderer
IOException
public int applyRowPositionChanges()
public int getExtraBottomOffset()
getExtraBottomOffset
in class BoxRenderer
public int alignContentToPageBreaks(Context.PageBreakRef pbObj) throws IOException
alignContentToPageBreaks
in class BoxRenderer
IOException
public RStatus findAutoPageBreaks(List<Context.PageBreakRef> pbreaks, int top, int pheight) throws IOException
findAutoPageBreaks
in class BoxRenderer
IOException
public void finalizeCellContent(Context context) throws IOException
IOException
public int getAbsVerticalPosition()
getAbsVerticalPosition
in class BoxRenderer
public int getAbsHorizontalPosition()
getAbsHorizontalPosition
in class BoxRenderer
public int getOffsetInRow()
getOffsetInRow
in class BoxRenderer
public boolean doesNotPrintToPage() throws IOException
doesNotPrintToPage
in class Renderer
IOException
public RStatus render() throws IOException
render
in class Renderer
IOException
public void recalcCols(boolean finalize)
public Vector<TableRenderer.ColumnStruct> columns()
public int numLogicalCols()
public int numEffectiveCols()
public int getChildrenNumber()
getChildrenNumber
in class BoxRenderer
public TableColumnRenderer getEffectiveColumn(int index)
public int spanOfEffCol(int n)
public void appendColumn(int span)
public int rowIndex(TableRowRenderer row)
public void getDestinationRenderers(Map<String,Renderer> results)
getDestinationRenderers
in class Renderer
public TableSectionRenderer getSectionAbove(TableSectionRenderer tableSectionRenderer)
public TableRowRenderer getRow(int index)
public TableRowRenderer getFirstNonHeaderRow()
public TableSectionRenderer topNonEmptySection()
public int bordersAndPadding()
public int bordersPaddingAndSpacing()
public int hBorderSpacing()
public int vBorderSpacing()
public void addColumnPosition(int i, float pos)
public int[] columnPositions()
public Length width()
public Document document()
public ArrayList<TableSectionRenderer> sections()
public ArrayList<TableRowRenderer> rows()
public StringBuilder dump(int mode, int indent)
dump
in interface InlineItem
dump
in class Renderer
public boolean collapseBorders()
collapseBorders
in class BoxRenderer
public float nettoWidth()
public float contentWidth()
public void setContentWidth(int width)
public void setWidth(int width)
setWidth
in class BoxRenderer
public void setOuterWidth(int width)
setOuterWidth
in class BoxRenderer
public float getWidth()
getWidth
in interface InlineItem
public float getOuterWidth()
getOuterWidth
in interface InlineItem
getOuterWidth
in class BoxRenderer
public void expandMarginLeft(float value, float base)
public void expandMarginRight(float value, float base)
public void expandMarginTop(int value, float base)
public void expandMarginBottom(int value, float base)
public int getBaseline(Context context)
getBaseline
in interface InlineItem
public float getX()
getX
in interface InlineItem
getX
in class Renderer
public int getOuterHeight()
getOuterHeight
in interface InlineItem
getOuterHeight
in class BoxRenderer
public void setX(float x)
setX
in interface InlineItem
public int horizontalExtent(float base)
horizontalExtent
in class BoxRenderer
public int recalcRowsNumber()
public int getRowsNumber()
public void assignToRow(RowRenderer row)
assignToRow
in interface InlineItem
public int getHeaderHeight(boolean newPage)
public boolean isHeaderRow(TableRowRenderer row)
public Context.StructTag getSectionType(TableSectionRenderer tableSectionRenderer)
Revision 4.0.15 / 20220727-0149