Package com.openhtmltopdf.render
Class FlowingColumnContainerBox
- java.lang.Object
-
- com.openhtmltopdf.render.Box
-
- com.openhtmltopdf.render.BlockBox
-
- com.openhtmltopdf.render.FlowingColumnContainerBox
-
- All Implemented Interfaces:
InlinePaintable,Styleable,DisplayListItem
public class FlowingColumnContainerBox extends BlockBox
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFlowingColumnContainerBox.ColumnBreakOpportunitystatic classFlowingColumnContainerBox.ColumnBreakStoreprivate static classFlowingColumnContainerBox.ColumnPosition-
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 FlowingColumnBox_child-
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 FlowingColumnContainerBox()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intadjustUnbalanced(LayoutContext c, Box child, int colGap, int colWidth, int columnCount, int xStart)private intfindPageIndex(java.util.List<PageBox> pages, int y)FlowingColumnBoxgetChild()voidlayout(LayoutContext c, int contentStart)private voidlayoutFloats(java.util.TreeMap<java.lang.Integer,FlowingColumnContainerBox.ColumnPosition> columnMap, PersistentBFC bfc, int columnCount, int colWidth, int colGap)private voidlayoutFloats(java.util.TreeMap<java.lang.Integer,FlowingColumnContainerBox.ColumnPosition> columns, java.util.List<FloatManager.BoxOffset> floats, int columnCount, int colWidth, int colGap)private voidreposition(Box box, int xAdjust, int yAdjust)private voidrepositionAncestors(java.util.List<Box> ancestors, int xAdjust, int yAdjust)voidsetOnlyChild(LayoutContext c, FlowingColumnBox child)-
Methods inherited from class com.openhtmltopdf.render.BlockBox
addBoxID, appendPositioningInfo, calcBaseline, calcBreakAtLineContext, calcCanvasLocation, calcChildLocations, calcChildPaintingInfo, calcDimensions, calcDimensions, calcInitialBreakAtLine, calcInitialFloatedCanvasLocation, calcInlineBaseline, calcLayoutHeight, calcMinMaxWidth, checkPageContext, checkPopBfc, checkPushBfc, checkPushLayer, collapseMargins, copyOf, createMarkerData, dump, ensureChildren, findLastNthLineBox, findOffset, getAvailableWidth, getChildrenContentType, getChildrenHeight, getCSSFitToWidth, getCSSHeight, getCSSWidth, getCSSWidth, getDocumentParent, getExtraBoxDescription, getFirstLetterStyle, getFirstLineStyle, getFloatedBoxData, getInlineContent, getLineBox, getListCounter, getMarkerData, getMaxWidth, getMinWidth, getNextCollapsableSibling, getPageClearance, getPaintingClipEdge, getPersistentBFC, getReplacedElement, getStaticEquivalent, initStaticPos, isAllowHeightToShrink, isAutoHeight, isBottomMarginCalculated, isContainsInlineContent, isCurrentBreakAtLineContext, isFixedWidthAdvisoryOnly, isFloated, isFromCaptionedTable, isInline, isInlineBlock, isInMainFlow, isListItem, isMayCollapseMarginsWithChildren, isMinMaxCalculated, isNeedPageClear, isNeedsClipOnPaint, isNeedsKeepWithInline, isPageBreakNeededBecauseOfMinHeight, isReplaced, isSkipWhenCollapsingMargins, 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, getBorder, 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, paintBackground, paintBorder, 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
-
_child
private FlowingColumnBox _child
-
-
Method Detail
-
findPageIndex
private int findPageIndex(java.util.List<PageBox> pages, int y)
-
layoutFloats
private void layoutFloats(java.util.TreeMap<java.lang.Integer,FlowingColumnContainerBox.ColumnPosition> columns, java.util.List<FloatManager.BoxOffset> floats, int columnCount, int colWidth, int colGap)
-
layoutFloats
private void layoutFloats(java.util.TreeMap<java.lang.Integer,FlowingColumnContainerBox.ColumnPosition> columnMap, PersistentBFC bfc, int columnCount, int colWidth, int colGap)
-
reposition
private void reposition(Box box, int xAdjust, int yAdjust)
-
repositionAncestors
private void repositionAncestors(java.util.List<Box> ancestors, int xAdjust, int yAdjust)
-
adjustUnbalanced
private int adjustUnbalanced(LayoutContext c, Box child, int colGap, int colWidth, int columnCount, int xStart)
-
layout
public void layout(LayoutContext c, int contentStart)
-
setOnlyChild
public void setOnlyChild(LayoutContext c, FlowingColumnBox child)
-
getChild
public FlowingColumnBox getChild()
-
-