Top Inners Fields Constructors Methods
com.openhtmltopdf.render

public Class FlowingColumnContainerBox

extends BlockBox
Class Inheritance
Imports
java.util.ArrayList, .Collections, .Comparator, .HashSet, .List, .Map, .Set, .TreeMap, com.openhtmltopdf.css.constants.CSSName, .IdentValue, com.openhtmltopdf.layout.BlockFormattingContext, .FloatManager, .FloatManager.BoxOffset, .LayoutContext, .PersistentBFC

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
private static class

Field Summary

Modifier and TypeField and Description
private FlowingColumnBox
Inherited from com.openhtmltopdf.render.BlockBox:
NO_BASELINEPOSITION_BOTHPOSITION_HORIZONTALLYPOSITION_VERTICALLY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private int
adjustUnbalanced(LayoutContext c, Box child, int colGap, int colWidth, int columnCount, int xStart)

private int
findPageIndex(List<PageBox> pages, int y)

public FlowingColumnBox
public void
private void
layoutFloats(TreeMap<Integer, FlowingColumnContainerBox.ColumnPosition> columns, List<FloatManager.BoxOffset> floats, int columnCount, int colWidth, int colGap)

private void
layoutFloats(TreeMap<Integer, FlowingColumnContainerBox.ColumnPosition> columnMap, PersistentBFC bfc, int columnCount, int colWidth, int colGap)

private void
reposition(Box box, int xAdjust, int yAdjust)

private void
repositionAncestors(List<Box> ancestors, int xAdjust, int yAdjust)

public void
Inherited from com.openhtmltopdf.render.BlockBox:
addBoxIDappendPositioningInfocalcBaselinecalcBreakAtLineContextcalcCanvasLocationcalcChildLocationscalcChildPaintingInfocalcDimensionscalcDimensionscalcInitialBreakAtLinecalcInitialFloatedCanvasLocationcalcInlineBaselinecalcLayoutHeightcalcMinMaxWidthcheckPageContextcheckPopBfccheckPushBfccheckPushLayercollapseMarginscopyOfcreateMarkerDatadumpensureChildrenfindLastNthLineBoxfindOffsetgetAvailableWidthgetChildrenContentTypegetChildrenHeightgetCSSFitToWidthgetCSSHeightgetCSSWidthgetCSSWidthgetDocumentParentgetExtraBoxDescriptiongetFirstLetterStylegetFirstLineStylegetFloatedBoxDatagetInlineContentgetLineBoxgetListCountergetMarkerDatagetMaxWidthgetMinWidthgetNextCollapsableSiblinggetPageClearancegetPaintingClipEdgegetPersistentBFCgetReplacedElementgetStaticEquivalentinitStaticPosisAllowHeightToShrinkisAutoHeightisBottomMarginCalculatedisContainsInlineContentisCurrentBreakAtLineContextisFixedWidthAdvisoryOnlyisFloatedisFromCaptionedTableisInlineisInlineBlockisInMainFlowisListItemisMayCollapseMarginsWithChildrenisMinMaxCalculatedisNeedPageClearisNeedsClipOnPaintisNeedsKeepWithInlineisPageBreakNeededBecauseOfMinHeightisReplacedisSkipWhenCollapsingMarginsisTopMarginCalculatedlayoutlayoutChildrenlayoutInlineChildrenpaintDebugOutlinepaintInlinepaintListMarkerpositionAbsolutepositionAbsoluteOnPagepropagateExtraSpaceresetresolveAutoMarginssetBottomMarginCalculatedsetChildrenContentTypesetChildrenHeightsetDimensionsCalculatedsetElementsetFirstLetterStylesetFirstLineStylesetFloatedBoxDatasetFromCaptionedTablesetInlineContentsetListCountersetMarkerDatasetMaxWidthsetMinMaxCalculatedsetMinWidthsetNeedPageClearsetNeedShrinkToFitCalculatationsetPersistentBFCsetReplacedElementsetStaticEquivalentsetTopMarginCalculatedshouldBeReplacedstyleTextstyleTexttoString

Field Detail

_childback to summary
private FlowingColumnBox _child

Constructor Detail

FlowingColumnContainerBoxback to summary
public FlowingColumnContainerBox()

Method Detail

adjustUnbalancedback to summary
private int adjustUnbalanced(LayoutContext c, Box child, int colGap, int colWidth, int columnCount, int xStart)
findPageIndexback to summary
private int findPageIndex(List<PageBox> pages, int y)
getChildback to summary
public FlowingColumnBox getChild()
layoutback to summary
public void layout(LayoutContext c, int contentStart)

Overrides com.openhtmltopdf.render.BlockBox.layout.

Annotations
@Override
layoutFloatsback to summary
private void layoutFloats(TreeMap<Integer, FlowingColumnContainerBox.ColumnPosition> columns, List<FloatManager.BoxOffset> floats, int columnCount, int colWidth, int colGap)
layoutFloatsback to summary
private void layoutFloats(TreeMap<Integer, FlowingColumnContainerBox.ColumnPosition> columnMap, PersistentBFC bfc, int columnCount, int colWidth, int colGap)
repositionback to summary
private void reposition(Box box, int xAdjust, int yAdjust)
repositionAncestorsback to summary
private void repositionAncestors(List<Box> ancestors, int xAdjust, int yAdjust)
setOnlyChildback to summary
public void setOnlyChild(LayoutContext c, FlowingColumnBox child)
com.openhtmltopdf.render back to summary

public Class FlowingColumnContainerBox.ColumnBreakOpportunity

extends Object
Class Inheritance
  • java.lang.Object
  • com.openhtmltopdf.render.FlowingColumnContainerBox.ColumnBreakOpportunity

Field Summary

Modifier and TypeField and Description
private final List<Box>
private final Box

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static FlowingColumnContainerBox.ColumnBreakOpportunity
of(Box box, List<Box> ancestors)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ancestorsback to summary
private final List<Box> ancestors
boxback to summary
private final Box box

Constructor Detail

ColumnBreakOpportunityback to summary
private ColumnBreakOpportunity(Box box, List<Box> ancestors)

Method Detail

ofback to summary
pack-priv static FlowingColumnContainerBox.ColumnBreakOpportunity of(Box box, List<Box> ancestors)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
com.openhtmltopdf.render back to summary

public Class FlowingColumnContainerBox.ColumnBreakStore

extends Object
Class Inheritance
  • java.lang.Object
  • com.openhtmltopdf.render.FlowingColumnContainerBox.ColumnBreakStore

Field Summary

Modifier and TypeField and Description
private final List<FlowingColumnContainerBox.ColumnBreakOpportunity>
private final Set<Box>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addBreak(Box box, List<Box> ancestors)

Add a break opportunity.

public boolean

Returns:

true to process this ancestor (we haven't seen it yet).
checkContainerShouldProcess
(Box container)

Whether an ancestor box needs to be added to the list of ancestors.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

breaksback to summary
private final List<FlowingColumnContainerBox.ColumnBreakOpportunity> breaks
processedContainersback to summary
private final Set<Box> processedContainers

Constructor Detail

ColumnBreakStoreback to summary
public ColumnBreakStore()

Method Detail

addBreakback to summary
public void addBreak(Box box, List<Box> ancestors)

Add a break opportunity. If this is a break opportunity and a first child, it should also add all unprocessed ancestors, so they can be moved with the first child.

checkContainerShouldProcessback to summary
public boolean checkContainerShouldProcess(Box container)

Whether an ancestor box needs to be added to the list of ancestors.

Returns:boolean

true to process this ancestor (we haven't seen it yet).

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
com.openhtmltopdf.render back to summary

private Class FlowingColumnContainerBox.ColumnPosition

extends Object
Class Inheritance
  • java.lang.Object
  • com.openhtmltopdf.render.FlowingColumnContainerBox.ColumnPosition

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final int
private final int
private final int

Constructor Summary

AccessConstructor and Description
private
ColumnPosition(int columnIndex, int copyY, int pasteY, int maxColHeight, int pageIdx)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

columnIndexback to summary
private final int columnIndex
copyYback to summary
private final int copyY
maxColHeightback to summary
private final int maxColHeight
pageIdxback to summary
private final int pageIdx
pasteYback to summary
private final int pasteY

Constructor Detail

ColumnPositionback to summary
private ColumnPosition(int columnIndex, int copyY, int pasteY, int maxColHeight, int pageIdx)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override