-
-
Methods in com.openhtmltopdf.css.style with parameters of type CssContext
| Modifier and Type |
Method |
Description |
Length |
CalculatedStyle.asLength(CssContext c,
CSSName cssName) |
|
BorderPropertySet |
CalculatedStyle.getBorder(CssContext ctx) |
|
int |
CalculatedStyle.getBorderHSpacing(CssContext c) |
|
int |
CalculatedStyle.getBorderVSpacing(CssContext c) |
|
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.
|
float |
CalculatedStyle.getFloatPropertyProportionalHeight(CSSName cssName,
float parentHeight,
CssContext ctx) |
|
float |
CalculatedStyle.getFloatPropertyProportionalTo(CSSName cssName,
float baseValue,
CssContext ctx) |
|
float |
CalculatedStyle.getFloatPropertyProportionalWidth(CSSName cssName,
float parentWidth,
CssContext ctx) |
|
float |
DerivedValue.getFloatProportionalTo(CSSName cssName,
float baseValue,
CssContext ctx) |
|
float |
FSDerivedValue.getFloatProportionalTo(CSSName cssName,
float baseValue,
CssContext ctx) |
|
FontSpecification |
CalculatedStyle.getFont(CssContext ctx) |
|
FSFont |
CalculatedStyle.getFSFont(CssContext cssContext) |
|
FSFontMetrics |
CalculatedStyle.getFSFontMetrics(CssContext c) |
|
float |
CalculatedStyle.getFSPageBreakMinHeight(CssContext c) |
|
FSLinearGradient |
CalculatedStyle.getLinearGradient(CssContext cssContext,
int boxWidth,
int boxHeight) |
|
float |
CalculatedStyle.getLineHeight(CssContext ctx) |
|
int |
CalculatedStyle.getMarginBorderPadding(CssContext cssCtx,
int cbWidth,
int which) |
|
RectPropertySet |
CalculatedStyle.getMarginRect(float cbWidth,
CssContext ctx) |
Convenience property accessor; returns a Border initialized with the
four-sided margin width.
|
RectPropertySet |
CalculatedStyle.getMarginRect(float cbWidth,
CssContext ctx,
boolean useCache) |
|
int |
CalculatedStyle.getMaxHeight(CssContext c,
int cbHeight) |
|
int |
CalculatedStyle.getMaxWidth(CssContext c,
int cbWidth) |
|
int |
CalculatedStyle.getMinHeight(CssContext c,
int cbHeight) |
|
int |
CalculatedStyle.getMinWidth(CssContext c,
int cbWidth) |
|
RectPropertySet |
CalculatedStyle.getPaddingRect(float cbWidth,
CssContext ctx) |
|
RectPropertySet |
CalculatedStyle.getPaddingRect(float cbWidth,
CssContext ctx,
boolean useCache) |
Convenience property accessor; returns a Border initialized with the
four-sided padding width.
|
-
Methods in com.openhtmltopdf.css.style.derived with parameters of type CssContext
| Modifier and Type |
Method |
Description |
static float |
LengthValue.calcFloatProportionalValue(CalculatedStyle style,
CSSName cssName,
String stringValue,
float relVal,
short primitiveType,
float baseValue,
CssContext ctx) |
|
float |
LengthValue.getFloatProportionalTo(CSSName cssName,
float baseValue,
CssContext ctx) |
Computes a relative unit (e.g.
|
float |
NumberValue.getFloatProportionalTo(CSSName cssName,
float baseValue,
CssContext ctx) |
|
static BorderPropertySet |
BorderPropertySet.newInstance(CalculatedStyle style,
CssContext ctx) |
|
static RectPropertySet |
RectPropertySet.newInstance(CalculatedStyle style,
CSSName shortHandProperty,
CSSName.CSSSideProperties sideProperties,
float cbWidth,
CssContext ctx) |
|
-
-
Methods in com.openhtmltopdf.layout with parameters of type CssContext
| Modifier and Type |
Method |
Description |
void |
Layer.addPage(CssContext c) |
|
void |
Layer.assignPagePaintingPositions(CssContext cssCtx,
int mode,
int additionalClearance) |
|
void |
Layer.assignPagePaintingPositions(CssContext cssCtx,
short mode) |
|
void |
FloatManager.clear(CssContext cssCtx,
BlockFormattingContext bfc,
Box box) |
|
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) |
|
static PageBox |
Layer.createPageBox(CssContext c,
String pseudoPage) |
|
void |
Layer.ensureHasPage(CssContext c,
Box box) |
|
Box |
Layer.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
Deprecated.
|
int |
FloatManager.getClearDelta(CssContext cssCtx,
int bfcRelativeY) |
|
PageBox |
Layer.getFirstPage(CssContext c,
int absY) |
Returns the page box for a Y position.
|
PageBox |
Layer.getFirstPage(CssContext c,
Box box) |
|
int |
BlockFormattingContext.getFloatDistance(CssContext cssCtx,
LineBox line,
int containingBlockWidth) |
|
PageBox |
Layer.getLastPage(CssContext c,
Box box) |
|
int |
BlockFormattingContext.getLeftFloatDistance(CssContext cssCtx,
LineBox line,
int containingBlockWidth) |
|
int |
FloatManager.getLeftFloatDistance(CssContext cssCtx,
BlockFormattingContext bfc,
LineBox line,
int containingBlockContentWidth) |
|
int |
Layer.getMaxPageWidth(CssContext cssCtx,
int additionalClearance) |
|
int |
BlockFormattingContext.getNextLineBoxDelta(CssContext cssCtx,
LineBox line,
int containingBlockWidth) |
|
int |
FloatManager.getNextLineBoxDelta(CssContext cssCtx,
BlockFormattingContext bfc,
LineBox line,
int containingBlockContentWidth) |
|
PageBox |
Layer.getPage(CssContext c,
int yOffset) |
|
int |
BlockFormattingContext.getRightFloatDistance(CssContext cssCtx,
LineBox line,
int containingBlockWidth) |
|
int |
FloatManager.getRightFloatDistance(CssContext cssCtx,
BlockFormattingContext bfc,
LineBox line,
int containingBlockContentWidth) |
|
static int |
Breaker.getTextWidthWithLetterSpacing(CssContext c,
FSFont font,
String text,
float letterSpacing) |
Gets the width of a string with letter spacing factored in.
|
boolean |
BoxCollector.intersectsAny(CssContext c,
Shape clip,
Box master) |
|
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 |
Layer.propagateCurrentTransformationMatrix(CssContext c) |
Recursively propagates the transformation matrix.
|
void |
Layer.trimEmptyPages(CssContext c,
int maxYHeight) |
|
-
-
Methods in com.openhtmltopdf.render with parameters of type CssContext
| Modifier and Type |
Method |
Description |
void |
LineBox.align(boolean dynamic,
CssContext c) |
|
protected void |
BlockBox.calcChildPaintingInfo(CssContext c,
PaintingInfo result,
boolean useCache) |
|
protected void |
Box.calcChildPaintingInfo(CssContext c,
PaintingInfo result,
boolean useCache) |
|
protected void |
InlineLayoutBox.calcChildPaintingInfo(CssContext c,
PaintingInfo result,
boolean useCache) |
|
int |
BlockBox.calcInlineBaseline(CssContext c) |
|
PaintingInfo |
Box.calcPaintingInfo(CssContext c,
boolean useCache) |
|
Box |
AnonymousBlockBox.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
|
Box |
Box.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
|
Box |
InlineLayoutBox.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
|
Box |
LineBox.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
|
Area |
Box.getAbsoluteClipBox(CssContext c) |
Returns the absolute (ie transformed if needed) clip area for this box.
|
BorderPropertySet |
Box.getBorder(CssContext cssCtx) |
|
Rectangle |
Box.getBorderBox(CssContext c) |
Only to be called after layout, due to double use of getHeight().
|
protected int |
Box.getBorderBoxHeight(CssContext c) |
|
int |
Box.getBorderBoxWidth(CssContext c) |
|
Rectangle |
Box.getBorderEdge(int left,
int top,
CssContext cssCtx) |
|
Rectangle |
InlineLayoutBox.getBorderEdge(int left,
int top,
CssContext cssCtx) |
|
Rectangle |
Box.getChildrenClipEdge(CssContext c) |
|
Rectangle |
Box.getContentAreaEdge(int left,
int top,
CssContext cssCtx) |
|
Rectangle |
InlineLayoutBox.getContentAreaEdge(int left,
int top,
CssContext cssCtx) |
|
Rectangle |
MarginBox.getContentAreaEdge(int left,
int top,
CssContext cssCtx) |
|
Rectangle |
ViewportBox.getContentAreaEdge(int left,
int top,
CssContext cssCtx) |
|
int |
PageBox.getContentHeight(CssContext cssCtx) |
|
int |
PageBox.getContentWidth(CssContext cssCtx) |
|
protected int |
BlockBox.getCSSFitToWidth(CssContext c) |
|
protected int |
BlockBox.getCSSHeight(CssContext c) |
|
protected int |
ViewportBox.getCSSHeight(CssContext c) |
|
protected int |
BlockBox.getCSSWidth(CssContext c) |
|
protected int |
BlockBox.getCSSWidth(CssContext c,
boolean shrinkingToFit) |
|
Rectangle |
PageBox.getDocumentCoordinatesContentBounds(CssContext c) |
Get the rectangle that this page's content area will cover of the layed out document.
|
Rectangle |
PageBox.getDocumentCoordinatesContentBoundsForInsertedPage(CssContext c,
int shadowPageNumber) |
Get the shadow page (a page inserted to carry cut off content) content area of the layed out document.
|
int |
PageBox.getHeight(CssContext cssCtx) |
|
int |
InlineLayoutBox.getInlineWidth(CssContext cssCtx) |
|
int |
InlineLayoutBox.getLeftMarginBorderPadding(CssContext cssCtx) |
|
RectPropertySet |
Box.getMargin(CssContext cssContext) |
|
RectPropertySet |
PageBox.getMargin(CssContext cssCtx) |
|
int |
Box.getMarginBorderPadding(CssContext cssCtx,
int which) |
|
int |
PageBox.getMarginBorderPadding(CssContext cssCtx,
int which) |
|
Rectangle |
Box.getMarginEdge(int left,
int top,
CssContext cssCtx,
int tx,
int ty) |
|
Rectangle |
Box.getMarginEdge(CssContext cssCtx,
int tx,
int ty) |
|
Rectangle |
InlineLayoutBox.getMarginEdge(int left,
int top,
CssContext cssCtx,
int tx,
int ty) |
|
Rectangle |
LineBox.getMarginEdge(CssContext cssCtx,
int tx,
int ty) |
|
int |
PageBox.getMaxShadowPagesForXPos(CssContext c,
int x) |
Returns the number of shadow pages needed for a given x coordinate.
|
RectPropertySet |
Box.getPadding(CssContext cssCtx) |
|
Rectangle |
Box.getPaddingEdge(int left,
int top,
CssContext cssCtx) |
|
Rectangle |
MarginBox.getPaddingEdge(int left,
int top,
CssContext cssCtx) |
|
Rectangle |
ViewportBox.getPaddingEdge(int left,
int top,
CssContext cssCtx) |
|
protected int |
Box.getPaddingWidth(CssContext cssCtx) |
|
protected int |
MarginBox.getPaddingWidth(CssContext cssCtx) |
|
protected int |
ViewportBox.getPaddingWidth(CssContext cssCtx) |
|
Rectangle |
PageBox.getPagedViewClippingBounds(CssContext cssCtx,
int additionalClearance) |
|
Rectangle |
Box.getPaintingBorderEdge(CssContext cssCtx) |
|
Rectangle |
BlockBox.getPaintingClipEdge(CssContext cssCtx) |
|
Rectangle |
Box.getPaintingClipEdge(CssContext cssCtx) |
|
Rectangle |
LineBox.getPaintingClipEdge(CssContext cssCtx) |
|
Rectangle |
Box.getPaintingPaddingEdge(CssContext cssCtx) |
|
Rectangle |
PageBox.getPrintClippingBounds(CssContext cssCtx) |
|
Rectangle |
PageBox.getPrintPaintingBounds(CssContext cssCtx) |
|
int |
InlineLayoutBox.getRightMarginPaddingBorder(CssContext cssCtx) |
|
Rectangle |
PageBox.getScreenPaintingBounds(CssContext cssCtx,
int additionalClearance) |
|
protected RectPropertySet |
Box.getStyleMargin(CssContext cssContext) |
|
protected RectPropertySet |
Box.getStyleMargin(CssContext cssContext,
boolean useCache) |
|
int |
PageBox.getWidth(CssContext cssCtx) |
|
boolean |
Box.hasNonTextContent(CssContext c) |
|
boolean |
InlineLayoutBox.hasNonTextContent(CssContext c) |
|
boolean |
LineBox.hasNonTextContent(CssContext c) |
|
boolean |
Box.intersects(CssContext cssCtx,
Shape clip) |
NOTE: This method does not consider any children of this box
but does consider the transformation matrix of the containing layer.
|
boolean |
LineBox.intersects(CssContext cssCtx,
Shape clip) |
|
boolean |
InlineLayoutBox.intersectsInlineBlocks(CssContext cssCtx,
Shape clip) |
|
boolean |
InlineLayoutBox.isAllTextItems(CssContext c) |
|
boolean |
BlockBox.isNeedsClipOnPaint(CssContext c) |
|
void |
LineBox.justify(CssContext c) |
|
void |
BlockBox.positionAbsolute(CssContext cssCtx,
int direction) |
|
Dimension |
Box.positionRelative(CssContext cssCtx) |
|
Dimension |
InlineLayoutBox.positionRelative(CssContext cssCtx) |
|
protected void |
Box.resetTopMargin(CssContext cssContext) |
|
protected void |
Box.setBorderBoxHeight(CssContext c,
int h) |
|
void |
Box.setBorderBoxWidth(CssContext c,
int borderBoxWidth) |
|
void |
Box.setMarginBottom(CssContext cssContext,
int marginBottom) |
|
void |
Box.setMarginLeft(CssContext cssContext,
int marginLeft) |
|
void |
Box.setMarginRight(CssContext cssContext,
int marginRight) |
|
void |
Box.setMarginTop(CssContext cssContext,
int marginTop) |
|
void |
PageBox.setTopAndBottom(CssContext cssCtx,
int top) |
|
-
Methods in com.openhtmltopdf.render.displaylist with parameters of type CssContext
| Modifier and Type |
Method |
Description |
void |
PagedBoxCollector.collect(CssContext c,
Layer layer) |
|
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) |
|
void |
PagedBoxCollector.collectFloats(CssContext c,
Layer layer) |
|
static AffineTransform |
TransformCreator.createDocumentCoordinatesTransform(Box master,
CssContext c,
AffineTransform _parentCtm) |
Creates an absolute transform in document coordinates.
|
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.findEndPage(CssContext c,
Rectangle bounds,
AffineTransform transform) |
|
static List<PagedBoxCollector.PageInfo> |
PagedBoxCollector.findLayerPages(CssContext c,
Layer layer,
List<PageBox> pages) |
Returns the pages a layer appears on including inserted overflow pages.
|
static Rectangle |
PagedBoxCollector.findLayerRect(CssContext c,
Layer layer) |
|
int |
PagedBoxCollector.PageFinder.findPageAdjusted(CssContext c,
int yOffset) |
|
static int |
PagedBoxCollector.findPageForY(CssContext c,
double y,
List<PageBox> pages) |
|
protected int |
PagedBoxCollector.findStartPage(CssContext c,
Box container,
AffineTransform transform) |
|
static int |
PagedBoxCollector.findStartPage(CssContext c,
Box container,
List<PageBox> pages) |
|
protected int |
PagedBoxCollector.findStartPage(CssContext c,
Rectangle bounds,
AffineTransform transform) |
|
static int |
PagedBoxCollector.getShadowPageForBounds(CssContext c,
Rectangle bounds,
PageBox page) |
|
Rectangle |
PagedBoxCollector.PageResult.getShadowWindowOnDocument(PageBox page,
CssContext c,
int shadowPageNumber) |
|