Package com.openhtmltopdf.newtable
Class TableCellBox
- java.lang.Object
-
- com.openhtmltopdf.render.Box
-
- com.openhtmltopdf.render.BlockBox
-
- com.openhtmltopdf.newtable.TableCellBox
-
- All Implemented Interfaces:
InlinePaintable
,Styleable
,DisplayListItem
public class TableCellBox extends BlockBox
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openhtmltopdf.render.BlockBox
BlockBox.ContentType, BlockBox.MarginCollapseResult
-
Nested classes/interfaces inherited from class com.openhtmltopdf.render.Box
Box.ChildIteratorOfType<T>
-
-
Field Summary
Fields Modifier and Type Field Description private int
_col
private CollapsedBorderValue
_collapsedBorderBottom
private CollapsedBorderValue
_collapsedBorderLeft
private CollapsedBorderValue
_collapsedBorderRight
private CollapsedBorderValue
_collapsedBorderTop
private BorderPropertySet
_collapsedLayoutBorder
private BorderPropertySet
_collapsedPaintingBorder
private int
_row
private TableSectionBox
_section
private TableBox
_table
private static int
BCELL
private static int
BCOL
private static int[]
BORDER_PRIORITIES
private static int
BROW
private static int
BROWGROUP
private static int
BTABLE
static TableCellBox
SPANNING_CELL
-
Fields inherited from class com.openhtmltopdf.render.BlockBox
NO_BASELINE, POSITION_BOTH, POSITION_HORIZONTALLY, POSITION_VERTICALLY
-
Fields inherited from class com.openhtmltopdf.render.Box
CHILDREN_FLUX, DONE, DUMP_LAYOUT, DUMP_RENDER, FLUX, LINE_SEPARATOR, NOTHING
-
-
Constructor Summary
Constructors Constructor Description TableCellBox()
-
Method Summary
-
Methods inherited from class com.openhtmltopdf.render.BlockBox
addBoxID, appendPositioningInfo, calcBreakAtLineContext, calcCanvasLocation, calcChildLocations, calcChildPaintingInfo, calcDimensions, calcDimensions, calcInitialBreakAtLine, calcInitialFloatedCanvasLocation, calcInlineBaseline, calcLayoutHeight, calcMinMaxWidth, checkPageContext, checkPopBfc, checkPushBfc, checkPushLayer, collapseMargins, createMarkerData, dump, ensureChildren, findLastNthLineBox, findOffset, getAvailableWidth, getChildrenContentType, getChildrenHeight, getCSSFitToWidth, getCSSWidth, getCSSWidth, getDocumentParent, getExtraBoxDescription, getFirstLetterStyle, getFirstLineStyle, getFloatedBoxData, getInlineContent, getLineBox, getListCounter, getMarkerData, getMaxWidth, getMinWidth, getNextCollapsableSibling, getPageClearance, getPersistentBFC, getReplacedElement, getStaticEquivalent, initStaticPos, isBottomMarginCalculated, isContainsInlineContent, isCurrentBreakAtLineContext, isFloated, isFromCaptionedTable, isInline, isInlineBlock, isInMainFlow, isListItem, isMayCollapseMarginsWithChildren, isMinMaxCalculated, isNeedPageClear, isNeedsClipOnPaint, isNeedsKeepWithInline, isPageBreakNeededBecauseOfMinHeight, isReplaced, isTopMarginCalculated, layout, layoutChildren, layoutInlineChildren, paintDebugOutline, paintInline, paintListMarker, positionAbsolute, positionAbsoluteOnPage, propagateExtraSpace, reset, resolveAutoMargins, setBottomMarginCalculated, setChildrenContentType, setChildrenHeight, setDimensionsCalculated, setElement, setFirstLetterStyle, setFirstLineStyle, setFloatedBoxData, setFromCaptionedTable, setInlineContent, setListCounter, setMarkerData, setMaxWidth, setMinMaxCalculated, setMinWidth, setNeedPageClear, setNeedShrinkToFitCalculatation, setPersistentBFC, setReplacedElement, setStaticEquivalent, setTopMarginCalculated, shouldBeReplaced, styleText, styleText, toString
-
Methods inherited from class com.openhtmltopdf.render.Box
addAllChildren, addChild, addChildForLayout, analyzePageBreaks, ancestors, ancestorsWhile, calcPaintingInfo, collectText, connectChildrenToCurrentLayer, crossesPageBreak, detach, dumpBoxes, exportPageBoxText, exportText, find, findAncestor, findColumnBreakOpportunities, forcePageBreakAfter, forcePageBreakBefore, forcePageBreakBefore, getAbsoluteClipBox, getAbsX, getAbsY, getAccessibilityObject, getBorderBox, getBorderBoxHeight, getBorderBoxWidth, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildIterator, getChildIteratorOfType, getChildren, getChildrenClipEdge, getClipBox, getContainingBlock, getContainingBlockWidth, getContainingLayer, getContentAreaEdge, getContentWidth, getEffBackgroundColor, getEffectiveWidth, getElement, getElementBoxes, getHeight, getIndex, getLayer, getLeftMBP, getMargin, getMarginBorderPadding, getMarginEdge, getMarginEdge, getNext, getNextSibling, getPadding, getPaddingEdge, getPaddingWidth, getPaintingBorderEdge, getPaintingInfo, getPaintingPaddingEdge, getParent, getParentClipBox, getPrevious, getPreviousSibling, getPseudoElementOrClass, getRelativeOffset, getRightMBP, getState, getStyle, getStyleMargin, getStyleMargin, getTx, getTy, getWidth, getX, getY, hasNonTextContent, hasRootElementBackground, initContainingLayer, intersects, isAnonymous, isBody, isContainedInMarginBox, isFirstChild, isInDocumentFlow, isInitialContainingBlock, isMarginAreaRoot, isRoot, isStyled, isTerminalColumnBreak, moveIfGreater, paintRootElementBackground, positionRelative, removeAllChildren, removeChild, removeChild, resetChildren, resetChildren, resetTopMargin, rootBox, setAbsX, setAbsY, setAccessiblityObject, setAnonymous, setBorderBoxHeight, setBorderBoxWidth, setBoxDimensions, setContainingBlock, setContainingLayer, setContentWidth, setHeight, setIndex, setLayer, setLeftMBP, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setParent, setPseudoElementOrClass, setRelativeOffset, setRightMBP, setState, setStyle, setTx, setTy, setX, setY, stateToString
-
-
-
-
Field Detail
-
SPANNING_CELL
public static final TableCellBox SPANNING_CELL
-
_row
private int _row
-
_col
private int _col
-
_table
private TableBox _table
-
_section
private TableSectionBox _section
-
_collapsedLayoutBorder
private BorderPropertySet _collapsedLayoutBorder
-
_collapsedPaintingBorder
private BorderPropertySet _collapsedPaintingBorder
-
_collapsedBorderTop
private CollapsedBorderValue _collapsedBorderTop
-
_collapsedBorderRight
private CollapsedBorderValue _collapsedBorderRight
-
_collapsedBorderBottom
private CollapsedBorderValue _collapsedBorderBottom
-
_collapsedBorderLeft
private CollapsedBorderValue _collapsedBorderLeft
-
BORDER_PRIORITIES
private static final int[] BORDER_PRIORITIES
-
BCELL
private static final int BCELL
- See Also:
- Constant Field Values
-
BROW
private static final int BROW
- See Also:
- Constant Field Values
-
BROWGROUP
private static final int BROWGROUP
- See Also:
- Constant Field Values
-
BCOL
private static final int BCOL
- See Also:
- Constant Field Values
-
BTABLE
private static final int BTABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBorder
public BorderPropertySet getBorder(CssContext cssCtx)
-
calcCollapsedBorder
public void calcCollapsedBorder(CssContext c)
-
getCol
public int getCol()
-
setCol
public void setCol(int col)
-
getRow
public int getRow()
-
setRow
public void setRow(int row)
-
layout
public void layout(LayoutContext c)
-
getTable
public TableBox getTable()
-
getSection
public TableSectionBox getSection()
-
getOuterStyleWidth
public Length getOuterStyleWidth(CssContext c)
-
getOuterStyleOrColWidth
public Length getOuterStyleOrColWidth(CssContext c)
-
setLayoutWidth
public void setLayoutWidth(LayoutContext c, int width)
-
isAutoHeight
public boolean isAutoHeight()
- Overrides:
isAutoHeight
in classBlockBox
-
calcBaseline
public int calcBaseline(LayoutContext c)
- Overrides:
calcBaseline
in classBlockBox
-
calcBlockBaseline
public int calcBlockBaseline(LayoutContext c)
-
moveContent
public void moveContent(LayoutContext c, int deltaY)
-
isPageBreaksChange
public boolean isPageBreaksChange(LayoutContext c, int posDeltaY)
-
getVerticalAlign
public IdentValue getVerticalAlign()
-
isPaintBackgroundsAndBorders
private boolean isPaintBackgroundsAndBorders()
-
paintBackground
public void paintBackground(RenderingContext c)
- Overrides:
paintBackground
in classBox
-
paintBackgroundStack
private void paintBackgroundStack(RenderingContext c, java.awt.Rectangle bounds)
-
paintBorder
public void paintBorder(RenderingContext c)
- Overrides:
paintBorder
in classBox
-
paintCollapsedBorder
public void paintCollapsedBorder(RenderingContext c, int side)
-
getContentLimitedBorderEdge
private java.awt.Rectangle getContentLimitedBorderEdge(RenderingContext c)
-
getChildrenClipEdge
public java.awt.Rectangle getChildrenClipEdge(RenderingContext c)
-
isFixedWidthAdvisoryOnly
protected boolean isFixedWidthAdvisoryOnly()
- Overrides:
isFixedWidthAdvisoryOnly
in classBlockBox
-
isSkipWhenCollapsingMargins
protected boolean isSkipWhenCollapsingMargins()
- Overrides:
isSkipWhenCollapsingMargins
in classBlockBox
-
compareBorders
public static CollapsedBorderValue compareBorders(CollapsedBorderValue border1, CollapsedBorderValue border2, boolean returnNullOnEqual)
-
compareBorders
private static CollapsedBorderValue compareBorders(CollapsedBorderValue border1, CollapsedBorderValue border2)
-
collapsedLeftBorder
private CollapsedBorderValue collapsedLeftBorder(CssContext c)
-
collapsedRightBorder
private CollapsedBorderValue collapsedRightBorder(CssContext c)
-
collapsedTopBorder
private CollapsedBorderValue collapsedTopBorder(CssContext c)
-
collapsedBottomBorder
private CollapsedBorderValue collapsedBottomBorder(CssContext c)
-
getCollapsedBorderBounds
private java.awt.Rectangle getCollapsedBorderBounds(CssContext c)
-
getPaintingClipEdge
public java.awt.Rectangle getPaintingClipEdge(CssContext c)
- Overrides:
getPaintingClipEdge
in classBlockBox
-
hasCollapsedPaintingBorder
public boolean hasCollapsedPaintingBorder()
-
getCollapsedPaintingBorder
protected BorderPropertySet getCollapsedPaintingBorder()
-
getCollapsedBorderBottom
public CollapsedBorderValue getCollapsedBorderBottom()
-
getCollapsedBorderLeft
public CollapsedBorderValue getCollapsedBorderLeft()
-
getCollapsedBorderRight
public CollapsedBorderValue getCollapsedBorderRight()
-
getCollapsedBorderTop
public CollapsedBorderValue getCollapsedBorderTop()
-
addCollapsedBorders
public void addCollapsedBorders(java.util.Set<CollapsedBorderValue> all, java.util.List<CollapsedBorderSide> borders)
-
getCSSHeight
protected int getCSSHeight(CssContext c)
- Overrides:
getCSSHeight
in classBlockBox
-
isAllowHeightToShrink
protected boolean isAllowHeightToShrink()
- Overrides:
isAllowHeightToShrink
in classBlockBox
-
isNeedsClipOnPaint
public boolean isNeedsClipOnPaint(RenderingContext c)
-
-