| Modifier and Type | Method and Description |
|---|---|
static int |
CalculatedStyle.getCSSMaxHeight(CssContext c,
Box box)
Aims to get the correct resolved max-height for a box in dots unit.
|
static int |
CalculatedStyle.getCSSMaxWidth(CssContext c,
Box box)
Aims to get the correct resolved max-width for a box in dots unit.
|
boolean |
CalculatedStyle.isVisible(RenderingContext renderingContext,
Box thisElement)
Determine if the element is visible.
|
| Modifier and Type | Method and Description |
|---|---|
SVGDrawer.SVGImage |
SVGDrawer.buildSVGImage(Element svgElement,
Box box,
CssContext cssContext,
double cssWidth,
double cssHeight,
double dotsPerPixel) |
void |
OutputDevice.drawDebugOutline(RenderingContext c,
Box box,
FSColor color) |
void |
OutputDevice.paintBackground(RenderingContext c,
Box box) |
void |
OutputDevice.paintBorder(RenderingContext c,
Box box) |
Object |
OutputDevice.startStructure(StructureType type,
Box box)
Propagate the structure heirachy to allow for PDF/UA compliance.
|
| Modifier and Type | Method and Description |
|---|---|
Box |
SharedContext.getBoxById(String id) |
Box |
FloatManager.getMaster() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Box> |
SharedContext.getIdMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
SharedContext.addBoxId(String id,
Box box) |
void |
LayoutContext.addBoxId(String id,
Box box) |
static List<TextDecoration> |
InlineBoxing.calculateTextDecorations(Box box,
int baseline,
FSFontMetrics fm) |
void |
FloatManager.clear(CssContext cssCtx,
BlockFormattingContext bfc,
Box box) |
void |
BlockFormattingContext.clear(LayoutContext c,
Box current) |
VerticalAlignContext |
VerticalAlignContext.createChild(Box root) |
static StrutMetrics |
InlineBoxing.createDefaultStrutMetrics(LayoutContext c,
Box container) |
void |
Layer.ensureHasPage(CssContext c,
Box box) |
PageBox |
Layer.getFirstPage(CssContext c,
Box box) |
PageBox |
Layer.getLastPage(CssContext c,
Box box) |
void |
FloatManager.FloatOperation.operate(Box floater) |
static int |
InlineBoxing.positionHorizontally(CssContext c,
Box current,
int start) |
static int |
InlineBoxing.positionHorizontallyRTL(CssContext c,
Box current,
int start,
int width)
Attempts to layout inline boxes from right to left.
|
| Constructor and Description |
|---|
FloatManager(Box master) |
| Modifier and Type | Class and Description |
|---|---|
class |
TableBox |
class |
TableCellBox |
class |
TableRowBox |
class |
TableSectionBox |
| Modifier and Type | Class and Description |
|---|---|
class |
AnonymousBlockBox
An anonymous block box as defined in the CSS spec.
|
class |
BlockBox
A block box as defined in the CSS spec.
|
class |
FlowingColumnBox |
class |
FlowingColumnContainerBox |
class |
InlineLayoutBox
A
Box which contains the portion of an inline element layed out on a
single line. |
class |
LineBox
A line box contains a single line of text (or other inline content).
|
class |
MarginBox
A dummy box representing one side of the margin area of a page.
|
class |
ViewportBox
A dummy box representing the viewport
|
| Modifier and Type | Method and Description |
|---|---|
Box |
InlineLayoutBox.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
Box |
AnonymousBlockBox.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
Box |
Box.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
Box |
LineBox.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
Box |
Box.findAncestor(Predicate<Box> predicate)
Walks up the ancestor tree to the root testing ancestors agains
the predicate.
|
Box |
RenderingContext.getBoxById(String id) |
Box |
Box.getChild(int i) |
Box |
Box.getContainingBlock() |
Box |
BlockBox.getDocumentParent() |
Box |
Box.getDocumentParent() |
protected Box |
InlineLayoutBox.getNext(Box child) |
protected Box |
Box.getNext(Box child) |
Box |
Box.getNextSibling() |
Box |
Box.getParent() |
Box |
FlowingColumnBox.getParent() |
protected Box |
InlineLayoutBox.getPrevious(Box child) |
protected Box |
Box.getPrevious(Box child) |
Box |
Box.getPreviousSibling() |
Box |
BlockBox.getStaticEquivalent() |
Box |
Box.rootBox()
Returns the highest ancestor box.
|
| Modifier and Type | Method and Description |
|---|---|
List<Box> |
Box.ancestors()
Get all ancestors, up until the root box.
|
List<Box> |
Box.ancestorsWhile(Predicate<Box> predicate)
Creates a list of ancestors by walking up the chain of parent,
grandparent, etc.
|
Iterator<Box> |
Box.getChildIterator() |
List<Box> |
Box.getChildren() |
List<Box> |
InlineLayoutBox.getElementBoxes(Element elem) |
List<Box> |
Box.getElementBoxes(Element elem) |
List<Box> |
InlineLayoutBox.getElementWithContent() |
List<Box> |
LineBox.getNonFlowContent() |
| Modifier and Type | Method and Description |
|---|---|
void |
FlowingColumnContainerBox.ColumnBreakStore.addBreak(Box box,
List<Box> ancestors)
Add a break opportunity.
|
void |
Box.addChild(Box child) |
void |
Box.addChildForLayout(LayoutContext c,
Box child) |
boolean |
FlowingColumnContainerBox.ColumnBreakStore.checkContainerShouldProcess(Box container)
Whether an ancestor box needs to be added to the list of ancestors.
|
void |
AbstractOutputDevice.drawDebugOutline(RenderingContext c,
Box box,
FSColor color) |
int |
BlockBox.findOffset(Box box) |
protected Box |
InlineLayoutBox.getNext(Box child) |
protected Box |
Box.getNext(Box child) |
protected Box |
InlineLayoutBox.getPrevious(Box child) |
protected Box |
Box.getPrevious(Box child) |
static boolean |
Box.isBody(Box child) |
void |
AbstractOutputDevice.paintBackground(RenderingContext c,
Box box) |
void |
AbstractOutputDevice.paintBorder(RenderingContext c,
Box box) |
boolean |
InlineLayoutBox.removeChild(Box child)
Removes a child box if it is indeed a child and adjusts
the index of subsequent children.
|
boolean |
Box.removeChild(Box target)
Removes a child box if it is indeed a child and adjusts
the index of subsequent children.
|
void |
Box.setContainingBlock(Box containingBlock) |
void |
Box.setParent(Box box) |
void |
BlockBox.setStaticEquivalent(Box staticEquivalent) |
| Modifier and Type | Method and Description |
|---|---|
void |
InlineLayoutBox.addAllChildren(List<? super Box> list,
Layer layer) |
void |
LineBox.addAllChildren(List<? super Box> list,
Layer layer) |
void |
Box.addAllChildren(List<Box> children) |
void |
FlowingColumnContainerBox.ColumnBreakStore.addBreak(Box box,
List<Box> ancestors)
Add a break opportunity.
|
List<Box> |
Box.ancestorsWhile(Predicate<Box> predicate)
Creates a list of ancestors by walking up the chain of parent,
grandparent, etc.
|
protected void |
Box.dumpBoxes(LayoutContext c,
String indent,
List<Box> boxes,
int which,
StringBuilder result) |
Box |
Box.findAncestor(Predicate<Box> predicate)
Walks up the ancestor tree to the root testing ancestors agains
the predicate.
|
| Constructor and Description |
|---|
FlowingColumnBox(Box parent) |
| Modifier and Type | Method and Description |
|---|---|
Box |
PaintLayerBackgroundAndBorder.getMaster() |
Box |
PaintPopTransformLayer.getMaster() |
Box |
PaintPushTransformLayer.getMaster() |
Box |
PaintRootElementBackground.getRoot() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DisplayListCollector.addTransformItem(Box master,
List<PagedBoxCollector.PageInfo> pages,
DisplayListContainer dlPages) |
void |
PagedBoxCollector.collect(CssContext c,
Layer layer,
Box container,
int shadowPageNumber)
The main box collection method.
|
void |
PagedBoxCollector.collect(CssContext c,
Layer layer,
Box container,
int pgStart,
int pgEnd,
int shadowPageNumber) |
static AffineTransform |
TransformCreator.createDocumentCoordinatesTransform(Box master,
CssContext c,
AffineTransform _parentCtm)
Creates an absolute transform in document coordinates.
|
static AffineTransform |
TransformCreator.createPageCoordinatesTranform(RenderingContext c,
Box box,
PageBox page,
int shadowPageNumber)
Creates a transform that can be applied to a page, either PDF or Java2D.
|
static AffineTransform |
TransformCreator.createPageMarginCoordinatesTransform(RenderingContext c,
Box box,
PageBox page,
int xTranslate,
int yTranslate) |
static Rectangle |
PagedBoxCollector.findAdjustedBoundsForBorderBox(CssContext c,
Box container,
List<PageBox> pages)
Finds the document coordinates border box bounds of a box adjusted for transform and clipped according to overflow hidden.
|
static Rectangle |
PagedBoxCollector.findAdjustedBoundsForContentBox(CssContext c,
Box container)
Finds the document coordinates content box bounds of a box adjusted for transform and clipped according to overflow hidden.
|
protected int |
PagedBoxCollector.findEndPage(CssContext c,
Box container,
AffineTransform transform) |
static int |
PagedBoxCollector.findEndPage(CssContext c,
Box container,
List<PageBox> pages) |
protected int |
PagedBoxCollector.findStartPage(CssContext c,
Box container,
AffineTransform transform) |
static int |
PagedBoxCollector.findStartPage(CssContext c,
Box container,
List<PageBox> pages) |
| Constructor and Description |
|---|
PaintLayerBackgroundAndBorder(Box master) |
PaintPopTransformLayer(Box master) |
PaintPushTransformLayer(Box master,
int shadowPage) |
PaintRootElementBackground(Box root) |
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleBoxCollector.collect(RenderingContext c,
Layer layer,
Box container) |
| Modifier and Type | Method and Description |
|---|---|
static Box |
BoxUtil.getBodyBoxOrSomething(Box root) |
static Box |
BoxUtil.getBodyOrNull(Box root)
Looks at the direct children of root to find one with an element with
node name body.
|
| Modifier and Type | Method and Description |
|---|---|
static Stream<Box> |
LambdaUtil.ancestors(Box bx)
Null-safe way to look up the ancestor tree as a stream.
|
static Stream<Box> |
LambdaUtil.descendants(Box parent)
A stream of all descendant boxes not including
InlineText or InlineBox objects.
|
static List<Box> |
LambdaUtil.descendantsList(Box parent)
|
Spliterator<Box> |
DescendantBoxSpliterator.trySplit() |
| Modifier and Type | Method and Description |
|---|---|
static String |
LambdaUtil.ancestorDump(Box bx)
Ancestor dump to string including starting box and referenced layers.
|
static Stream<Box> |
LambdaUtil.ancestors(Box bx)
Null-safe way to look up the ancestor tree as a stream.
|
static String |
LambdaUtil.boxDescription(Box box)
Null-safe box description including object id, layer, containing layer and impl class.
|
static String |
LambdaUtil.descendantDump(Box root)
Creates an indented dump of the box tree.
|
static Stream<Box> |
LambdaUtil.descendants(Box parent)
A stream of all descendant boxes not including
InlineText or InlineBox objects.
|
static List<Box> |
LambdaUtil.descendantsList(Box parent)
|
static Box |
BoxUtil.getBodyBoxOrSomething(Box root) |
static Box |
BoxUtil.getBodyOrNull(Box root)
Looks at the direct children of root to find one with an element with
node name body.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
DescendantBoxSpliterator.tryAdvance(Consumer<? super Box> action) |
| Constructor and Description |
|---|
DescendantBoxSpliterator(Box parent) |
Copyright © 2004–2025. All rights reserved.