| Package | Description |
|---|---|
| com.openhtmltopdf.css.style | |
| com.openhtmltopdf.extend | |
| com.openhtmltopdf.layout | |
| com.openhtmltopdf.newtable | |
| com.openhtmltopdf.render | |
| com.openhtmltopdf.render.displaylist |
| 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) |
| Modifier and Type | Method and Description |
|---|---|
Box |
Layer.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
Box |
SharedContext.getBoxById(String id) |
Box |
Layer.getEnd() |
Box |
Layer.getMaster() |
Box |
FloatManager.getMaster() |
Box |
Layer.getSelectionEnd() |
Box |
Layer.getSelectionStart() |
| Modifier and Type | Method and Description |
|---|---|
List<Box> |
Layer.getClipBoxes()
The clipping boxes that were in effect when this layer was created.
|
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) |
protected List<AffineTransform> |
Layer.applyTranform(RenderingContext c,
Box box)
Applies the transforms specified for the box and returns a list of inverse transforms that should be
applied once the transformed element has been output.
|
static List |
InlineBoxing.calculateTextDecorations(Box box,
int baseline,
FSFontMetrics fm) |
void |
FloatManager.clear(CssContext cssCtx,
BlockFormattingContext bfc,
Box box) |
void |
BlockFormattingContext.clear(LayoutContext c,
Box current) |
void |
BoxCollector.collect(CssContext c,
Shape clip,
Layer layer,
Box container,
List<Box> blockContent,
List<Box> inlineContent,
BoxRangeLists rangeLists) |
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) |
boolean |
BoxCollector.intersectsAny(CssContext c,
Shape clip,
Box master) |
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.
|
void |
LayoutContext.pushClippingBox(Box clipBox)
We need to keep a list of clipping boxes so we can apply to layers triggered by a transform.
|
void |
LayoutContext.pushLayer(Box master) |
void |
Layer.setEnd(Box end) |
void |
FloatManager.setMaster(Box owner) |
void |
Layer.setSelectionEnd(Box selectionEnd) |
void |
Layer.setSelectionStart(Box selectionStart) |
| Modifier and Type | Method and Description |
|---|---|
void |
BoxCollector.collect(CssContext c,
Shape clip,
Layer layer,
Box container,
List<Box> blockContent,
List<Box> inlineContent,
BoxRangeLists rangeLists) |
void |
BoxCollector.collect(CssContext c,
Shape clip,
Layer layer,
Box container,
List<Box> blockContent,
List<Box> inlineContent,
BoxRangeLists rangeLists) |
void |
BoxCollector.collect(CssContext c,
Shape clip,
Layer layer,
List<Box> blockContent,
List<Box> inlineContent,
BoxRangeLists rangeLists) |
void |
BoxCollector.collect(CssContext c,
Shape clip,
Layer layer,
List<Box> blockContent,
List<Box> inlineContent,
BoxRangeLists rangeLists) |
| Constructor and Description |
|---|
Layer(Box master,
CssContext c)
Creates the root layer.
|
Layer(Layer parent,
Box master,
CssContext c,
List<Box> clippingBoxes)
Creates a child layer.
|
| Constructor and Description |
|---|
Layer(Layer parent,
Box master,
CssContext c,
List<Box> clippingBoxes)
Creates a child layer.
|
| 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 |
LineBox.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
Box |
InlineLayoutBox.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
Box |
Box.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
Box |
AnonymousBlockBox.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
Box |
RenderingContext.getBoxById(String id) |
Box |
Box.getChild(int i) |
Box |
Box.getContainingBlock() |
Box |
Box.getDocumentParent() |
Box |
BlockBox.getDocumentParent() |
protected Box |
InlineLayoutBox.getNext(Box child) |
protected Box |
Box.getNext(Box child) |
Box |
Box.getNextSibling() |
Box |
FlowingColumnBox.getParent() |
Box |
Box.getParent() |
protected Box |
InlineLayoutBox.getPrevious(Box child) |
protected Box |
Box.getPrevious(Box child) |
Box |
Box.getPreviousSibling() |
Box |
LineBox.getRestyleTarget() |
Box |
InlineLayoutBox.getRestyleTarget() |
Box |
Box.getRestyleTarget() |
Box |
BlockBox.getStaticEquivalent() |
| Modifier and Type | Method and Description |
|---|---|
List<Box> |
Box.getElementBoxes(Element elem) |
| Modifier and Type | Method and Description |
|---|---|
void |
Box.addChild(Box child) |
void |
Box.addChildForLayout(LayoutContext c,
Box child) |
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) |
void |
AbstractOutputDevice.paintBackground(RenderingContext c,
Box box) |
void |
AbstractOutputDevice.paintBorder(RenderingContext c,
Box box) |
void |
InlineLayoutBox.removeChild(Box child) |
void |
Box.removeChild(Box target) |
void |
Box.setContainingBlock(Box containingBlock) |
void |
Box.setParent(Box box) |
void |
BlockBox.setStaticEquivalent(Box staticEquivalent) |
| Constructor and Description |
|---|
FlowingColumnBox(Box parent) |
| Modifier and Type | Method and Description |
|---|---|
Box |
PaintPushTransformLayer.getMaster() |
Box |
PaintPopTransformLayer.getMaster() |
Box |
PaintLayerBackgroundAndBorder.getMaster() |
Box |
PaintRootElementBackground.getRoot() |
| Modifier and Type | Method and Description |
|---|---|
List<Box> |
PaintPushClipLayer.getClipBoxes() |
List<Box> |
PaintPopClipLayer.getClipBoxes() |
| Modifier and Type | Method and Description |
|---|---|
void |
PagedBoxCollector.collect(CssContext c,
Layer layer,
Box container)
The main box collection method.
|
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)
Creates a transform that can be applied to a page, either PDF or Java2D.
|
protected int |
SinglePageBoxCollector.findEndPage(CssContext c,
Box container,
AffineTransform transform) |
protected int |
PagedBoxCollector.findEndPage(CssContext c,
Box container,
AffineTransform transform) |
static int |
PagedBoxCollector.findEndPage(CssContext c,
Box container,
List<PageBox> pages) |
protected int |
SinglePageBoxCollector.findStartPage(CssContext c,
Box container,
AffineTransform transform) |
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) |
PaintRootElementBackground(Box root) |
| Constructor and Description |
|---|
PaintPopClipLayer(List<Box> clipBoxes) |
PaintPushClipLayer(List<Box> clipBoxes) |
Copyright © 2018. All rights reserved.