| Modifier and Type | Method and Description |
|---|---|
void |
ParagraphSplitter.runBidiOnParagraphs(LayoutContext c)
Run bidi splitting on the document's paragraphs.
|
protected void |
ParagraphSplitter.Paragraph.runBidiSplitter(BidiSplitter splitter,
LayoutContext c)
Here we call out to the actual BIDI algorithm.
|
protected void |
ParagraphSplitter.FakeParagraph.runBidiSplitter(BidiSplitter splitter,
LayoutContext c) |
void |
ParagraphSplitter.splitRoot(LayoutContext c,
Document doc)
This starts everything by recursively dividing the document into paragraphs.
|
| Modifier and Type | Method and Description |
|---|---|
String |
ContentFunctionFactory.LeaderFunction.calculate(LayoutContext c,
FSFunction function) |
boolean |
ContentFunctionFactory.LeaderFunction.canHandle(LayoutContext c,
FSFunction function) |
ContentFunction |
ContentFunctionFactory.lookupFunction(LayoutContext c,
FSFunction function) |
| Modifier and Type | Method and Description |
|---|---|
String |
ContentFunction.calculate(LayoutContext c,
FSFunction function) |
boolean |
ContentFunction.canHandle(LayoutContext c,
FSFunction function) |
default String |
ContentFunction.getPostBoxingLayoutReplacementText(LayoutContext c,
Element element,
FSFunction fsFunction)
Some content functions can provide a better replacement text after
boxing but before layout (ie.
|
| Modifier and Type | Method and Description |
|---|---|
ReplacedElement |
ReplacedElementFactory.createReplacedElement(LayoutContext c,
BlockBox box,
UserAgentCallback uac,
int cssWidth,
int cssHeight)
NOTE: Only block equivalent elements can be replaced.
|
void |
ReplacedElement.detach(LayoutContext c) |
| Modifier and Type | Method and Description |
|---|---|
LayoutContext |
SharedContext.newLayoutContextInstance() |
| Modifier and Type | Method and Description |
|---|---|
void |
FootnoteManager.addFootnoteBody(LayoutContext c,
BlockBox footnoteBody,
LineBox line)
Adds a footnote body to the line box page, creating the footnote area as required.
|
static void |
Breaker.breakFirstLetter(LayoutContext c,
LineBreakContext context,
int avail,
CalculatedStyle style) |
static Breaker.BreakTextResult |
Breaker.breakText(LayoutContext c,
LineBreakContext context,
int avail,
CalculatedStyle style,
boolean tryToBreakAnywhere,
int lineWidth,
boolean forceOutput) |
void |
BlockFormattingContext.clear(LayoutContext c,
Box current) |
static void |
BoxBuilder.createChildren(LayoutContext c,
BlockBox parent) |
static StrutMetrics |
InlineBoxing.createDefaultStrutMetrics(LayoutContext c,
Box container) |
static TableBox |
BoxBuilder.createMarginTable(LayoutContext c,
PageInfo pageInfo,
MarginBoxName[] names,
int height,
int direction) |
static BlockBox |
BoxBuilder.createRootBox(LayoutContext c,
Document document) |
boolean |
Layer.crossesPageBreak(LayoutContext c,
int top,
int bottom)
Returns whether the a box with the given top and bottom would cross a page break.
|
static LineBreakContext.LineBreakResult |
Breaker.doBreakText(LayoutContext c,
LineBreakContext context,
int avail,
CalculatedStyle style,
Breaker.TextBreakerSupplier lineBreaker) |
void |
Layer.finish(LayoutContext c) |
void |
BlockFormattingContext.floatBox(LayoutContext c,
BlockBox floated) |
void |
FloatManager.floatBox(LayoutContext c,
Layer layer,
BlockFormattingContext bfc,
BlockBox box) |
Dimension |
Layer.getPaintingDimension(LayoutContext c) |
static BlockBox |
BoxBuilder.getRunningBlock(LayoutContext c,
PropertyValue value) |
static void |
BoxBuilder.insertGeneratedContent(LayoutContext c,
Element element,
CalculatedStyle parentStyle,
String peName,
List<Styleable> children,
BoxBuilder.ChildBoxInfo info) |
static void |
LayoutUtil.layoutAbsolute(LayoutContext c,
LineBox currentLine,
BlockBox box) |
static void |
BlockBoxing.layoutContent(LayoutContext c,
BlockBox block,
int contentStart)
|
static void |
InlineBoxing.layoutContent(LayoutContext c,
BlockBox box,
int initialY,
int breakAtLine) |
static FloatLayoutResult |
LayoutUtil.layoutFloated(LayoutContext c,
LineBox currentLine,
BlockBox block,
int avail,
List<FloatLayoutResult> pendingFloats) |
void |
Layer.layoutPages(LayoutContext c) |
static CounterFunction |
BoxBuilder.makeCounterFunction(FSFunction function,
LayoutContext c,
CalculatedStyle style) |
void |
Layer.positionChildren(LayoutContext c) |
void |
FootnoteManager.removeFootnoteBodies(LayoutContext c,
List<BlockBox> footnoteBodies,
LineBox line)
Removes footnotes.
|
| Constructor and Description |
|---|
BlockFormattingContext(BlockBox block,
LayoutContext c) |
PersistentBFC(BlockBox master,
LayoutContext c) |
| Constructor and Description |
|---|
CounterContext(LayoutContext ctx,
CalculatedStyle style,
Integer startIndex)
A CounterContext should really be reflected in the element hierarchy, but CalculatedStyles
reflect the ancestor hierarchy just as well and also handles pseudo-elements seamlessly.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TableRowBox.analyzePageBreaks(LayoutContext c,
ContentLimitContainer container) |
void |
TableBox.analyzePageBreaks(LayoutContext c,
ContentLimitContainer container) |
int |
TableCellBox.calcBaseline(LayoutContext c) |
int |
TableCellBox.calcBlockBaseline(LayoutContext c) |
void |
TableSectionBox.calcBorders(LayoutContext c) |
protected void |
TableRowBox.calcLayoutHeight(LayoutContext c,
BorderPropertySet border,
RectPropertySet margin,
RectPropertySet padding) |
protected void |
TableBox.calcLayoutHeight(LayoutContext c,
BorderPropertySet border,
RectPropertySet margin,
RectPropertySet padding) |
void |
TableBox.calcMinMaxWidth(LayoutContext c) |
int |
TableRowBox.forcePageBreakBefore(LayoutContext c,
IdentValue pageBreakValue,
boolean pendingPageName) |
void |
TableRowBox.initStaticPos(LayoutContext c,
BlockBox parent,
int childOffset) |
boolean |
TableCellBox.isPageBreaksChange(LayoutContext c,
int posDeltaY) |
void |
TableCellBox.layout(LayoutContext c) |
void |
TableBox.layout(LayoutContext c) |
void |
TableRowBox.layout(LayoutContext c,
int contentStart) |
void |
TableSectionBox.layout(LayoutContext c,
int contentStart) |
protected void |
TableRowBox.layoutChildren(LayoutContext c,
int contentStart) |
protected void |
TableSectionBox.layoutChildren(LayoutContext c,
int contentStart) |
protected void |
TableBox.layoutChildren(LayoutContext c,
int contentStart) |
void |
TableCellBox.moveContent(LayoutContext c,
int deltaY) |
void |
TableSectionBox.recalcCells(LayoutContext c) |
void |
TableRowBox.reset(LayoutContext c) |
void |
TableSectionBox.reset(LayoutContext c) |
void |
TableBox.reset(LayoutContext c) |
protected void |
TableBox.resolveAutoMargins(LayoutContext c,
int cssWidth,
RectPropertySet padding,
BorderPropertySet border) |
void |
TableCellBox.setLayoutWidth(LayoutContext c,
int width) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
BlockBox.addBoxID(LayoutContext c) |
void |
Box.addChildForLayout(LayoutContext c,
Box child) |
void |
InlineLayoutBox.addInlineChild(LayoutContext c,
Object child) |
void |
InlineLayoutBox.addInlineChild(LayoutContext c,
Object child,
boolean callUnmarkPending) |
void |
Box.analyzePageBreaks(LayoutContext c,
ContentLimitContainer container) |
void |
LineBox.analyzePageBreaks(LayoutContext c,
ContentLimitContainer container) |
int |
BlockBox.calcBaseline(LayoutContext c) |
BreakAtLineContext |
BlockBox.calcBreakAtLineContext(LayoutContext c) |
void |
BlockBox.calcDimensions(LayoutContext c) |
protected void |
BlockBox.calcDimensions(LayoutContext c,
int cssWidth) |
protected int |
BlockBox.calcInitialBreakAtLine(LayoutContext c) |
void |
BlockBox.calcInitialFloatedCanvasLocation(LayoutContext c) |
protected void |
BlockBox.calcLayoutHeight(LayoutContext c,
BorderPropertySet border,
RectPropertySet margin,
RectPropertySet padding)
Oh oh! Up to this method height is used to track content height.
|
void |
BlockBox.calcMinMaxWidth(LayoutContext c) |
void |
InlineBox.calcMinMaxWidth(LayoutContext c,
int cbWidth,
boolean trimLeadingSpace) |
void |
InlineLayoutBox.calculateHeight(LayoutContext c) |
void |
InlineLayoutBox.calculateTextDecoration(LayoutContext c) |
boolean |
BlockBox.checkPageContext(LayoutContext c) |
void |
LineBox.checkPagePosition(LayoutContext c,
boolean alwaysBreak)
Checks if this line box crosses a page break and if so moves it to
the next page.
|
protected void |
BlockBox.checkPopBfc(LayoutContext c)
Checks if this box established a block formatting context and if so
removes the last bfc from the stack.
|
protected void |
BlockBox.checkPushBfc(LayoutContext c)
Checks if this box establishes a block formatting context and if
so creates one and pushes it to the stack of bfcs.
|
protected boolean |
BlockBox.checkPushLayer(LayoutContext c,
CalculatedStyle style) |
protected void |
BlockBox.collapseMargins(LayoutContext c) |
void |
BlockBox.collectLayoutText(LayoutContext c,
StringBuilder builder) |
void |
Box.collectLayoutText(LayoutContext c,
StringBuilder builder)
Similar to
Box.collectText(RenderingContext, StringBuilder) but
dynamic functions such as counter(pages) are not calculated. |
void |
InlineLayoutBox.connectChildrenToCurrentLayer(LayoutContext c) |
void |
Box.connectChildrenToCurrentLayer(LayoutContext c) |
void |
BlockBox.createMarkerData(LayoutContext c) |
boolean |
Box.crossesPageBreak(LayoutContext c)
Whether this box would cross a page break.
|
void |
Box.detach(LayoutContext c) |
String |
InlineLayoutBox.dump(LayoutContext c,
String indent,
int which) |
String |
BlockBox.dump(LayoutContext c,
String indent,
int which) |
abstract String |
Box.dump(LayoutContext c,
String indent,
int which) |
String |
LineBox.dump(LayoutContext c,
String indent,
int which) |
protected void |
Box.dumpBoxes(LayoutContext c,
String indent,
List<Box> boxes,
int which,
StringBuilder result) |
void |
BlockBox.ensureChildren(LayoutContext c) |
void |
Box.forcePageBreakAfter(LayoutContext c,
IdentValue pageBreakValue)
Forces a page break after this box.
|
int |
Box.forcePageBreakBefore(LayoutContext c,
IdentValue pageBreakValue,
boolean pendingPageName) |
int |
Box.forcePageBreakBefore(LayoutContext c,
IdentValue pageBreakValue,
boolean pendingPageName,
int absY) |
protected int |
BlockBox.getAvailableWidth(LayoutContext c) |
PageBox |
ContentLimitContainer.getPage(LayoutContext c,
int absY) |
int |
InlineBox.getSpaceWidth(LayoutContext c) |
int |
InlineBox.getTrailingSpaceWidth(LayoutContext c) |
void |
Box.initContainingLayer(LayoutContext c) |
void |
BlockBox.initStaticPos(LayoutContext c,
BlockBox parent,
int childOffset) |
boolean |
BlockBox.isContainsInlineContent(LayoutContext c) |
boolean |
BlockBox.isCurrentBreakAtLineContext(LayoutContext c) |
boolean |
BlockBox.isNeedsKeepWithInline(LayoutContext c) |
boolean |
BlockBox.isPageBreakNeededBecauseOfMinHeight(LayoutContext context)
Using the css:
-fs-page-break-min-height: 5cm;
on a block element you can force a pagebreak before this block, if not
enough space (e.g.
|
void |
BlockBox.layout(LayoutContext c) |
void |
AnonymousBlockBox.layout(LayoutContext c) |
void |
PageBox.layout(LayoutContext c) |
void |
BlockBox.layout(LayoutContext c,
int contentStart) |
void |
FlowingColumnContainerBox.layout(LayoutContext c,
int contentStart) |
protected void |
BlockBox.layoutChildren(LayoutContext c,
int contentStart) |
protected void |
BlockBox.layoutInlineChildren(LayoutContext c,
int contentStart,
int breakAtLine,
boolean tryAgain) |
void |
BlockBox.positionAbsoluteOnPage(LayoutContext c) |
protected void |
BlockBox.propagateExtraSpace(LayoutContext c,
ContentLimitContainer parentContainer,
ContentLimitContainer currentContainer,
int extraTop,
int extraBottom) |
void |
InlineLayoutBox.prunePending(LayoutContext c) |
void |
LineBox.prunePendingInlineBoxes(LayoutContext c) |
void |
BlockBox.reset(LayoutContext c) |
void |
Box.reset(LayoutContext c)
Responsible for resetting the state of the box before a repeat
call to
BlockBox.layout(LayoutContext) or other layout methods. |
void |
LineBox.reset(LayoutContext c) |
protected void |
InlineLayoutBox.resetChildren(LayoutContext c) |
protected void |
Box.resetChildren(LayoutContext c) |
void |
Box.resetChildren(LayoutContext c,
int start,
int end) |
protected void |
BlockBox.resolveAutoMargins(LayoutContext c,
int cssWidth,
RectPropertySet padding,
BorderPropertySet border) |
void |
FlowingColumnContainerBox.setOnlyChild(LayoutContext c,
FlowingColumnBox child) |
void |
BlockBox.styleText(LayoutContext c) |
void |
AnonymousBlockBox.styleText(LayoutContext c) |
void |
BlockBox.styleText(LayoutContext c,
CalculatedStyle style) |
void |
LineBox.trimTrailingSpace(LayoutContext c) |
void |
InlineText.trimTrailingSpace(LayoutContext c) |
void |
InlineLayoutBox.unmarkPending(LayoutContext c) |
void |
ContentLimitContainer.updateBottom(LayoutContext c,
int absY) |
void |
ContentLimitContainer.updateTop(LayoutContext c,
int absY) |
| Constructor and Description |
|---|
ContentLimitContainer(LayoutContext c,
int startAbsY) |
InlineLayoutBox(LayoutContext c,
Element elem,
CalculatedStyle style,
int cbWidth) |
| Modifier and Type | Method and Description |
|---|---|
ReplacedElement |
NoReplacedElementFactory.createReplacedElement(LayoutContext c,
BlockBox box,
UserAgentCallback uac,
int cssWidth,
int cssHeight) |
| Modifier and Type | Method and Description |
|---|---|
void |
EmptyReplacedElement.detach(LayoutContext c) |
Copyright © 2004–2025. All rights reserved.