Uses of Interface
com.openhtmltopdf.css.style.CssContext
-
Uses of CssContext in com.openhtmltopdf.css.constants
Methods in com.openhtmltopdf.css.constants with parameters of type CssContext Modifier and Type Method Description floatIdentValue. getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx) -
Uses of CssContext in com.openhtmltopdf.css.style
Methods in com.openhtmltopdf.css.style with parameters of type CssContext Modifier and Type Method Description LengthCalculatedStyle. asLength(CssContext c, CSSName cssName)BorderPropertySetCalculatedStyle. getBorder(CssContext ctx)intCalculatedStyle. getBorderHSpacing(CssContext c)intCalculatedStyle. getBorderVSpacing(CssContext c)static intCalculatedStyle. getCSSMaxHeight(CssContext c, Box box)Aims to get the correct resolved max-height for a box in dots unit.static intCalculatedStyle. getCSSMaxWidth(CssContext c, Box box)Aims to get the correct resolved max-width for a box in dots unit.floatCalculatedStyle. getFloatPropertyProportionalHeight(CSSName cssName, float parentHeight, CssContext ctx)floatCalculatedStyle. getFloatPropertyProportionalTo(CSSName cssName, float baseValue, CssContext ctx)floatCalculatedStyle. getFloatPropertyProportionalWidth(CSSName cssName, float parentWidth, CssContext ctx)floatDerivedValue. getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)floatFSDerivedValue. getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)FontSpecificationCalculatedStyle. getFont(CssContext ctx)FSFontCalculatedStyle. getFSFont(CssContext cssContext)FSFontMetricsCalculatedStyle. getFSFontMetrics(CssContext c)floatCalculatedStyle. getFSPageBreakMinHeight(CssContext c)floatCalculatedStyle. getLineHeight(CssContext ctx)intCalculatedStyle. getMarginBorderPadding(CssContext cssCtx, int cbWidth, int which)RectPropertySetCalculatedStyle. getMarginRect(float cbWidth, CssContext ctx)Convenience property accessor; returns a Border initialized with the four-sided margin width.RectPropertySetCalculatedStyle. getMarginRect(float cbWidth, CssContext ctx, boolean useCache)intCalculatedStyle. getMaxHeight(CssContext c, int cbHeight)intCalculatedStyle. getMaxWidth(CssContext c, int cbWidth)intCalculatedStyle. getMinHeight(CssContext c, int cbHeight)intCalculatedStyle. getMinWidth(CssContext c, int cbWidth)RectPropertySetCalculatedStyle. getPaddingRect(float cbWidth, CssContext ctx)RectPropertySetCalculatedStyle. getPaddingRect(float cbWidth, CssContext ctx, boolean useCache)Convenience property accessor; returns a Border initialized with the four-sided padding width.Constructors in com.openhtmltopdf.css.style with parameters of type CssContext Constructor Description BorderRadiusCorner(CSSName fromVal, CalculatedStyle style, CssContext ctx) -
Uses of CssContext in com.openhtmltopdf.css.style.derived
Methods in com.openhtmltopdf.css.style.derived with parameters of type CssContext Modifier and Type Method Description static floatLengthValue. calcFloatProportionalValue(CalculatedStyle style, CSSName cssName, String stringValue, float relVal, short primitiveType, float baseValue, CssContext ctx)floatLengthValue. getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)Computes a relative unit (e.g.floatNumberValue. getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx)static BorderPropertySetBorderPropertySet. newInstance(CalculatedStyle style, CssContext ctx)static RectPropertySetRectPropertySet. newInstance(CalculatedStyle style, CSSName shortHandProperty, CSSName.CSSSideProperties sideProperties, float cbWidth, CssContext ctx) -
Uses of CssContext in com.openhtmltopdf.extend
Methods in com.openhtmltopdf.extend with parameters of type CssContext Modifier and Type Method Description SVGDrawer.SVGImageSVGDrawer. buildSVGImage(Element svgElement, Box box, CssContext cssContext, double cssWidth, double cssHeight, double dotsPerPixel) -
Uses of CssContext in com.openhtmltopdf.layout
Classes in com.openhtmltopdf.layout that implement CssContext Modifier and Type Class Description classLayoutContextThis class tracks state which changes over the course of a layout run.Methods in com.openhtmltopdf.layout with parameters of type CssContext Modifier and Type Method Description voidLayer. addPage(CssContext c)voidLayer. assignPagePaintingPositions(CssContext cssCtx, int mode, int additionalClearance)voidLayer. assignPagePaintingPositions(CssContext cssCtx, short mode)voidFloatManager. clear(CssContext cssCtx, BlockFormattingContext bfc, Box box)voidBoxCollector. collect(CssContext c, Shape clip, Layer layer, Box container, List<Box> blockContent, List<Box> inlineContent, BoxRangeLists rangeLists)voidBoxCollector. collect(CssContext c, Shape clip, Layer layer, List<Box> blockContent, List<Box> inlineContent, BoxRangeLists rangeLists)static PageBoxLayer. createPageBox(CssContext c, String pseudoPage)voidLayer. ensureHasPage(CssContext c, Box box)BoxLayer. find(CssContext cssCtx, int absX, int absY, boolean findAnonymous)Deprecated.intFloatManager. getClearDelta(CssContext cssCtx, int bfcRelativeY)PageBoxLayer. getFirstPage(CssContext c, Box box)intBlockFormattingContext. getFloatDistance(CssContext cssCtx, LineBox line, int containingBlockWidth)PageBoxLayer. getLastPage(CssContext c, Box box)intBlockFormattingContext. getLeftFloatDistance(CssContext cssCtx, LineBox line, int containingBlockWidth)intFloatManager. getLeftFloatDistance(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth)intLayer. getMaxPageWidth(CssContext cssCtx, int additionalClearance)intBlockFormattingContext. getNextLineBoxDelta(CssContext cssCtx, LineBox line, int containingBlockWidth)intFloatManager. getNextLineBoxDelta(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth)PageBoxLayer. getPage(CssContext c, int yOffset)intBlockFormattingContext. getRightFloatDistance(CssContext cssCtx, LineBox line, int containingBlockWidth)intFloatManager. getRightFloatDistance(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth)static intBreaker. getTextWidthWithLetterSpacing(CssContext c, FSFont font, String text, float letterSpacing)Gets the width of a string with letter spacing factored in.booleanBoxCollector. intersectsAny(CssContext c, Shape clip, Box master)static intInlineBoxing. positionHorizontally(CssContext c, Box current, int start)static intInlineBoxing. positionHorizontallyRTL(CssContext c, Box current, int start, int width)Attempts to layout inline boxes from right to left.voidLayer. propagateCurrentTransformationMatrix(CssContext c)Recursively propagates the transformation matrix.voidLayer. trimEmptyPages(CssContext c, int maxYHeight)Constructors in com.openhtmltopdf.layout with parameters of type CssContext Constructor Description Layer(Layer parent, Box master, CssContext c)Creates a child layer.Layer(Box master, CssContext c)Creates the root layer. -
Uses of CssContext in com.openhtmltopdf.newtable
Methods in com.openhtmltopdf.newtable with parameters of type CssContext Modifier and Type Method Description voidTableCellBox. calcCollapsedBorder(CssContext c)intTableBox. calcFixedHeightRowBottom(CssContext c)intTableBox. calcInlineBaseline(CssContext c)BorderPropertySetTableBox. getBorder(CssContext cssCtx)BorderPropertySetTableCellBox. getBorder(CssContext cssCtx)RectangleTableBox. getColumnBounds(CssContext c, int col)protected intTableCellBox. getCSSHeight(CssContext c)protected intTableBox. getCSSWidth(CssContext c)LengthTableCellBox. getOuterStyleOrColWidth(CssContext c)LengthTableCellBox. getOuterStyleWidth(CssContext c)RectangleTableCellBox. getPaintingClipEdge(CssContext c)intTableBox. marginsBordersPaddingAndSpacing(CssContext c, boolean ignoreAutoMargins) -
Uses of CssContext in com.openhtmltopdf.render
Classes in com.openhtmltopdf.render that implement CssContext Modifier and Type Class Description classRenderingContextSupplies information about the context in which rendering will take placeMethods in com.openhtmltopdf.render with parameters of type CssContext Modifier and Type Method Description voidLineBox. align(boolean dynamic, CssContext c)protected voidBlockBox. calcChildPaintingInfo(CssContext c, PaintingInfo result, boolean useCache)protected voidBox. calcChildPaintingInfo(CssContext c, PaintingInfo result, boolean useCache)protected voidInlineLayoutBox. calcChildPaintingInfo(CssContext c, PaintingInfo result, boolean useCache)intBlockBox. calcInlineBaseline(CssContext c)PaintingInfoBox. calcPaintingInfo(CssContext c, boolean useCache)BoxAnonymousBlockBox. find(CssContext cssCtx, int absX, int absY, boolean findAnonymous)BoxBox. find(CssContext cssCtx, int absX, int absY, boolean findAnonymous)BoxInlineLayoutBox. find(CssContext cssCtx, int absX, int absY, boolean findAnonymous)BoxLineBox. find(CssContext cssCtx, int absX, int absY, boolean findAnonymous)AreaBox. getAbsoluteClipBox(CssContext c)Returns the absolute (ie transformed if needed) clip area for this box.BorderPropertySetBox. getBorder(CssContext cssCtx)RectangleBox. getBorderBox(CssContext c)Only to be called after layout, due to double use of getHeight().protected intBox. getBorderBoxHeight(CssContext c)intBox. getBorderBoxWidth(CssContext c)RectangleBox. getBorderEdge(int left, int top, CssContext cssCtx)RectangleInlineLayoutBox. getBorderEdge(int left, int top, CssContext cssCtx)RectangleBox. getChildrenClipEdge(CssContext c)RectangleBox. getContentAreaEdge(int left, int top, CssContext cssCtx)RectangleInlineLayoutBox. getContentAreaEdge(int left, int top, CssContext cssCtx)RectangleMarginBox. getContentAreaEdge(int left, int top, CssContext cssCtx)RectangleViewportBox. getContentAreaEdge(int left, int top, CssContext cssCtx)intPageBox. getContentHeight(CssContext cssCtx)intPageBox. getContentWidth(CssContext cssCtx)protected intBlockBox. getCSSFitToWidth(CssContext c)protected intBlockBox. getCSSHeight(CssContext c)protected intViewportBox. getCSSHeight(CssContext c)protected intBlockBox. getCSSWidth(CssContext c)protected intBlockBox. getCSSWidth(CssContext c, boolean shrinkingToFit)RectanglePageBox. getDocumentCoordinatesContentBounds(CssContext c)Get the rectangle that this page's content area will cover of the layed out document.RectanglePageBox. getDocumentCoordinatesContentBoundsForInsertedPage(CssContext c, int shadowPageNumber)Get the shadow page (a page inserted to carry cut off content) content area of the layed out document.intPageBox. getHeight(CssContext cssCtx)intInlineLayoutBox. getInlineWidth(CssContext cssCtx)intInlineLayoutBox. getLeftMarginBorderPadding(CssContext cssCtx)RectPropertySetBox. getMargin(CssContext cssContext)RectPropertySetPageBox. getMargin(CssContext cssCtx)intBox. getMarginBorderPadding(CssContext cssCtx, int which)intPageBox. getMarginBorderPadding(CssContext cssCtx, int which)RectangleBox. getMarginEdge(int left, int top, CssContext cssCtx, int tx, int ty)RectangleBox. getMarginEdge(CssContext cssCtx, int tx, int ty)RectangleInlineLayoutBox. getMarginEdge(int left, int top, CssContext cssCtx, int tx, int ty)RectangleLineBox. getMarginEdge(CssContext cssCtx, int tx, int ty)intPageBox. getMaxShadowPagesForXPos(CssContext c, int x)Returns the number of shadow pages needed for a given x coordinate.RectPropertySetBox. getPadding(CssContext cssCtx)RectangleBox. getPaddingEdge(int left, int top, CssContext cssCtx)RectangleMarginBox. getPaddingEdge(int left, int top, CssContext cssCtx)RectangleViewportBox. getPaddingEdge(int left, int top, CssContext cssCtx)protected intBox. getPaddingWidth(CssContext cssCtx)protected intMarginBox. getPaddingWidth(CssContext cssCtx)protected intViewportBox. getPaddingWidth(CssContext cssCtx)RectanglePageBox. getPagedViewClippingBounds(CssContext cssCtx, int additionalClearance)RectangleBox. getPaintingBorderEdge(CssContext cssCtx)RectangleBlockBox. getPaintingClipEdge(CssContext cssCtx)RectangleBox. getPaintingClipEdge(CssContext cssCtx)RectangleLineBox. getPaintingClipEdge(CssContext cssCtx)RectangleBox. getPaintingPaddingEdge(CssContext cssCtx)RectanglePageBox. getPrintClippingBounds(CssContext cssCtx)RectanglePageBox. getPrintPaintingBounds(CssContext cssCtx)intInlineLayoutBox. getRightMarginPaddingBorder(CssContext cssCtx)RectanglePageBox. getScreenPaintingBounds(CssContext cssCtx, int additionalClearance)protected RectPropertySetBox. getStyleMargin(CssContext cssContext)protected RectPropertySetBox. getStyleMargin(CssContext cssContext, boolean useCache)intPageBox. getWidth(CssContext cssCtx)booleanBox. hasNonTextContent(CssContext c)booleanInlineLayoutBox. hasNonTextContent(CssContext c)booleanLineBox. hasNonTextContent(CssContext c)booleanBox. 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.booleanLineBox. intersects(CssContext cssCtx, Shape clip)booleanInlineLayoutBox. intersectsInlineBlocks(CssContext cssCtx, Shape clip)booleanInlineLayoutBox. isAllTextItems(CssContext c)booleanBlockBox. isNeedsClipOnPaint(CssContext c)voidLineBox. justify(CssContext c)voidBlockBox. positionAbsolute(CssContext cssCtx, int direction)DimensionBox. positionRelative(CssContext cssCtx)DimensionInlineLayoutBox. positionRelative(CssContext cssCtx)protected voidBox. resetTopMargin(CssContext cssContext)protected voidBox. setBorderBoxHeight(CssContext c, int h)voidBox. setBorderBoxWidth(CssContext c, int borderBoxWidth)voidBox. setMarginBottom(CssContext cssContext, int marginBottom)voidBox. setMarginLeft(CssContext cssContext, int marginLeft)voidBox. setMarginRight(CssContext cssContext, int marginRight)voidBox. setMarginTop(CssContext cssContext, int marginTop)voidPageBox. setTopAndBottom(CssContext cssCtx, int top) -
Uses of CssContext in com.openhtmltopdf.render.displaylist
Methods in com.openhtmltopdf.render.displaylist with parameters of type CssContext Modifier and Type Method Description voidPagedBoxCollector. collect(CssContext c, Layer layer)voidPagedBoxCollector. collect(CssContext c, Layer layer, Box container, int shadowPageNumber)The main box collection method.voidPagedBoxCollector. collect(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, int shadowPageNumber)voidPagedBoxCollector. collectFloats(CssContext c, Layer layer)static AffineTransformTransformCreator. createDocumentCoordinatesTransform(Box master, CssContext c, AffineTransform _parentCtm)Creates an absolute transform in document coordinates.static RectanglePagedBoxCollector. 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 RectanglePagedBoxCollector. 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 intPagedBoxCollector. findEndPage(CssContext c, Box container, AffineTransform transform)static intPagedBoxCollector. findEndPage(CssContext c, Box container, List<PageBox> pages)protected intPagedBoxCollector. 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 RectanglePagedBoxCollector. findLayerRect(CssContext c, Layer layer)intPagedBoxCollector.PageFinder. findPageAdjusted(CssContext c, int yOffset)static intPagedBoxCollector. findPageForY(CssContext c, double y, List<PageBox> pages)protected intPagedBoxCollector. findStartPage(CssContext c, Box container, AffineTransform transform)static intPagedBoxCollector. findStartPage(CssContext c, Box container, List<PageBox> pages)protected intPagedBoxCollector. findStartPage(CssContext c, Rectangle bounds, AffineTransform transform)static intPagedBoxCollector. getShadowPageForBounds(CssContext c, Rectangle bounds, PageBox page)RectanglePagedBoxCollector.PageResult. getShadowWindowOnDocument(PageBox page, CssContext c, int shadowPageNumber)