Package org.openpdf.newtable
Class TableCellBox
java.lang.Object
org.openpdf.render.Box
org.openpdf.render.BlockBox
org.openpdf.newtable.TableCellBox
- All Implemented Interfaces:
InlinePaintable,Styleable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openpdf.render.BlockBox
BlockBox.ContentType, BlockBox.Position -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate CollapsedBorderValueprivate CollapsedBorderValueprivate CollapsedBorderValueprivate CollapsedBorderValueprivate BorderPropertySetprivate BorderPropertySetprivate intprivate @Nullable TableSectionBoxprivate @Nullable TableBoxprivate static final intprivate static final intprivate static final int[]private static final intprivate static final intprivate static final intstatic final TableCellBoxFields inherited from class org.openpdf.render.BlockBox
NO_BASELINE -
Constructor Summary
ConstructorsConstructorDescriptionTableCellBox(@Nullable Element source, @Nullable CalculatedStyle style, boolean anonymous) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCollapsedBorders(Set<CollapsedBorderValue> all, List<CollapsedBorderSide> borders) intintvoidprivate CollapsedBorderValueprivate CollapsedBorderValueprivate CollapsedBorderValueprivate CollapsedBorderValueprivate static CollapsedBorderValuecompareBorders(CollapsedBorderValue border1, CollapsedBorderValue border2) static CollapsedBorderValuecompareBorders(CollapsedBorderValue border1, CollapsedBorderValue border2, boolean returnNullOnEqual) copyOf()getBorder(CssContext cssCtx) intgetCol()private Rectangleprotected BorderPropertySetprivate Rectangleprotected intintgetRow()protected @Nullable TableSectionBox@Nullable TableBoxgetTable()booleanprotected booleanbooleanprotected booleanbooleanbooleanisPageBreaksChange(LayoutContext c, int posDeltaY) private booleanprotected booleanvoidvoidmoveContent(int deltaY) voidprivate voidpaintBackgroundStack(RenderingContext c, Rectangle bounds) voidvoidpaintCollapsedBorder(RenderingContext c, int side) voidsetCol(int col) voidsetLayoutWidth(LayoutContext c, int width) voidsetRow(int row) Methods inherited from class org.openpdf.render.BlockBox
appendPositioningInfo, calcBreakAtLineContext, calcCanvasLocation, calcChildLocations, calcChildPaintingInfo, calcDimensions, calcDimensions, calcInitialBreakAtLine, calcInitialFloatedCanvasLocation, calcInlineBaseline, calcLayoutHeight, calcMinMaxWidth, checkPageContext, dump, ensureChildren, findLastNthLineBox, findOffset, getAvailableWidth, getChildrenContentType, getChildrenHeight, getCSSFitToWidth, getCSSWidth, getCSSWidth, 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, setMaxWidth, setMinMaxCalculated, setMinWidth, setNeedPageClear, setNeedShrinkToFitCalculation, setPersistentBFC, setReplacedElement, setStaticEquivalent, setTopMarginCalculated, styleText, styleText, toStringMethods inherited from class org.openpdf.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, setBoxDimensions, setContainingBlock, setContainingLayer, setContentWidth, setElement, setHeight, setIndex, setLayer, setLeftMBP, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setParent, setPseudoElementOrClass, setRightMBP, setState, setStyle, setTx, setTy, setX, setY
-
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:
-
-
Constructor Details
-
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:
isAutoHeightin classBlockBox
-
calcBaseline
- Overrides:
calcBaselinein classBlockBox
-
calcBlockBaseline
-
moveContent
public void moveContent(int deltaY) -
isPageBreaksChange
-
getVerticalAlign
-
isPaintBackgroundsAndBorders
private boolean isPaintBackgroundsAndBorders() -
paintBackground
- Overrides:
paintBackgroundin classBox
-
paintBackgroundStack
-
paintBorder
- Overrides:
paintBorderin classBox
-
paintCollapsedBorder
-
getContentLimitedBorderEdge
-
getChildrenClipEdge
- Overrides:
getChildrenClipEdgein classBox
-
isFixedWidthAdvisoryOnly
protected boolean isFixedWidthAdvisoryOnly()- Overrides:
isFixedWidthAdvisoryOnlyin classBlockBox
-
isSkipWhenCollapsingMargins
protected boolean isSkipWhenCollapsingMargins()- Overrides:
isSkipWhenCollapsingMarginsin 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:
getPaintingClipEdgein classBlockBox
-
hasCollapsedPaintingBorder
public boolean hasCollapsedPaintingBorder() -
getCollapsedPaintingBorder
-
getCollapsedBorderBottom
-
getCollapsedBorderLeft
-
getCollapsedBorderRight
-
getCollapsedBorderTop
-
addCollapsedBorders
-
getCSSHeight
- Overrides:
getCSSHeightin classBlockBox
-
isAllowHeightToShrink
protected boolean isAllowHeightToShrink()- Overrides:
isAllowHeightToShrinkin classBlockBox
-
isNeedsClipOnPaint
- Overrides:
isNeedsClipOnPaintin classBlockBox
-