Package org.xhtmlrenderer.newtable
Class TableCellBox
java.lang.Object
org.xhtmlrenderer.render.Box
org.xhtmlrenderer.render.BlockBox
org.xhtmlrenderer.newtable.TableCellBox
- All Implemented Interfaces:
InlinePaintable
,Styleable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private CollapsedBorderValue
private CollapsedBorderValue
private CollapsedBorderValue
private CollapsedBorderValue
private BorderPropertySet
private BorderPropertySet
private int
private TableSectionBox
private TableBox
private static final int
private static final int
private static final int[]
private static final int
private static final int
private static final int
private int
static final TableCellBox
Fields inherited from class org.xhtmlrenderer.render.BlockBox
CONTENT_BLOCK, CONTENT_EMPTY, CONTENT_INLINE, CONTENT_UNKNOWN, NO_BASELINE, POSITION_BOTH, POSITION_HORIZONTALLY, POSITION_VERTICALLY
Fields inherited from class org.xhtmlrenderer.render.Box
CHILDREN_FLUX, DONE, DUMP_LAYOUT, DUMP_RENDER, FLUX, NOTHING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCollapsedBorders
(Set<CollapsedBorderValue> all, List<CollapsedBorderSide> borders) int
int
void
private CollapsedBorderValue
private CollapsedBorderValue
private CollapsedBorderValue
private CollapsedBorderValue
private static CollapsedBorderValue
compareBorders
(CollapsedBorderValue border1, CollapsedBorderValue border2) static CollapsedBorderValue
compareBorders
(CollapsedBorderValue border1, CollapsedBorderValue border2, boolean returnNullOnEqual) copyOf()
getBorder
(CssContext cssCtx) int
getCol()
private Rectangle
protected BorderPropertySet
private Rectangle
protected int
int
getRow()
protected TableSectionBox
getTable()
boolean
protected boolean
boolean
protected boolean
boolean
boolean
isPageBreaksChange
(LayoutContext c, int posDeltaY) private boolean
protected boolean
void
void
moveContent
(int deltaY) void
private void
paintBackgroundStack
(RenderingContext c, Rectangle bounds) void
void
paintCollapsedBorder
(RenderingContext c, int side) void
setCol
(int col) void
setFixedHeight
(int fixedHeight) void
setHeight
(int height) void
setLayoutWidth
(LayoutContext c, int width) void
setRow
(int row) Methods inherited from class org.xhtmlrenderer.render.BlockBox
appendPositioningInfo, calcBreakAtLineContext, calcCanvasLocation, calcChildLocations, calcChildPaintingInfo, calcDimensions, calcDimensions, calcInitialBreakAtLine, calcInitialFloatedCanvasLocation, calcInlineBaseline, calcLayoutHeight, calcMinMaxWidth, checkPageContext, createMarkerData, dump, ensureChildren, findLastNthLineBox, findOffset, getAvailableWidth, getChildrenContentType, getChildrenHeight, getCSSFitToWidth, getCSSWidth, getCSSWidth, getDocumentParent, getExtraBoxDescription, getFirstLetterStyle, getFirstLineStyle, getFloatedBoxData, getInlineContent, getLineBox, getListCounter, getMarkerData, getMaxWidth, getMinWidth, getPageClearance, getPersistentBFC, getReplacedElement, getStaticEquivalent, initStaticPos, isBottomMarginCalculated, isContainsInlineContent, isCurrentBreakAtLineContext, isFloated, isFromCaptionedTable, isInline, isInlineBlock, isInMainFlow, isMayCollapseMarginsWithChildren, isMinMaxCalculated, isNeedPageClear, isNeedsKeepWithInline, isReplaced, isTopMarginCalculated, layout, layoutChildren, layoutInlineChildren, paintDebugOutline, paintInline, paintListMarker, positionAbsolute, positionAbsoluteOnPage, propagateExtraSpace, reset, resolveAutoMargins, setBottomMarginCalculated, setChildrenContentType, setChildrenHeight, setDimensionsCalculated, setFirstLetterStyle, setFirstLineStyle, setFloatedBoxData, setFromCaptionedTable, setInlineContent, setListCounter, setMarkerData, setMaxWidth, setMinMaxCalculated, setMinWidth, setNeedPageClear, setNeedShrinkToFitCalculation, setPersistentBFC, setReplacedElement, setStaticEquivalent, setTopMarginCalculated, styleText, styleText, toString
Methods inherited from class org.xhtmlrenderer.render.Box
addAllChildren, addChild, addChildForLayout, analyzePageBreaks, appendPosition, appendSize, calcPaintingInfo, clearSelection, collectText, connectChildrenToCurrentLayer, crossesPageBreak, detach, dumpBoxes, exportPageBoxText, exportText, find, forcePageBreakAfter, forcePageBreakBefore, getAbsX, getAbsY, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildren, 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, getPrevious, getPreviousSibling, getPseudoElementOrClass, getRelativeOffset, getRestyleTarget, getRightMBP, getState, getStyle, getStyleMargin, getStyleMarginNoCache, getTx, getTy, getWidth, getX, getY, initContainingLayer, intersects, isAnonymous, isBody, isContainedInMarginBox, isInDocumentFlow, isInitialContainingBlock, isMarginAreaRoot, isRoot, isStyled, moveIfGreater, paintRootElementBackground, positionRelative, removeAllChildren, removeChild, removeChild, resetChildren, resetChildren, resetTopMargin, restyle, restyleChildren, selectAll, setAbsX, setAbsY, setAnonymous, setBoxDimensions, setContainingBlock, setContainingLayer, setContentWidth, setElement, setIndex, setLayer, setLeftMBP, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setParent, setPseudoElementOrClass, setRelativeOffset, setRightMBP, setState, setStyle, setTx, setTy, setX, setY, stateToString
-
Field Details
-
SPANNING_CELL
-
_row
private int _row -
_col
private int _col -
_table
-
_section
-
_collapsedLayoutBorder
-
_collapsedPaintingBorder
-
_collapsedBorderTop
-
_collapsedBorderRight
-
_collapsedBorderBottom
-
_collapsedBorderLeft
-
BORDER_PRIORITIES
private static final int[] BORDER_PRIORITIES -
BCELL
private static final int BCELL- See Also:
-
BROW
private static final int BROW- See Also:
-
BROWGROUP
private static final int BROWGROUP- See Also:
-
BCOL
private static final int BCOL- See Also:
-
BTABLE
private static final int BTABLE- See Also:
-
fixedHeight
private int fixedHeight
-
-
Constructor Details
-
TableCellBox
public TableCellBox()
-
-
Method Details
-
copyOf
-
getBorder
-
calcCollapsedBorder
-
getCol
public int getCol() -
setCol
public void setCol(int col) -
getRow
public int getRow() -
setRow
public void setRow(int row) -
layout
-
getTable
-
getSection
-
getOuterStyleWidth
-
getOuterStyleOrColWidth
-
setLayoutWidth
-
isAutoHeight
public boolean isAutoHeight()- Overrides:
isAutoHeight
in classBlockBox
-
calcBaseline
- Overrides:
calcBaseline
in classBlockBox
-
calcBlockBaseline
-
moveContent
public void moveContent(int deltaY) -
isPageBreaksChange
-
getVerticalAlign
-
isPaintBackgroundsAndBorders
private boolean isPaintBackgroundsAndBorders() -
paintBackground
- Overrides:
paintBackground
in classBox
-
paintBackgroundStack
-
paintBorder
- Overrides:
paintBorder
in classBox
-
paintCollapsedBorder
-
getContentLimitedBorderEdge
-
getChildrenClipEdge
- Overrides:
getChildrenClipEdge
in classBox
-
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
-
collapsedRightBorder
-
collapsedTopBorder
-
collapsedBottomBorder
-
getCollapsedBorderBounds
-
getPaintingClipEdge
- Overrides:
getPaintingClipEdge
in classBlockBox
-
hasCollapsedPaintingBorder
public boolean hasCollapsedPaintingBorder() -
getCollapsedPaintingBorder
-
getCollapsedBorderBottom
-
getCollapsedBorderLeft
-
getCollapsedBorderRight
-
getCollapsedBorderTop
-
addCollapsedBorders
-
getCSSHeight
- Overrides:
getCSSHeight
in classBlockBox
-
isAllowHeightToShrink
protected boolean isAllowHeightToShrink()- Overrides:
isAllowHeightToShrink
in classBlockBox
-
isNeedsClipOnPaint
- Overrides:
isNeedsClipOnPaint
in classBlockBox
-
setFixedHeight
public void setFixedHeight(int fixedHeight) -
setHeight
public void setHeight(int height)
-