Uses of Interface
com.openhtmltopdf.css.style.CssContext
Packages that use CssContext
Package
Description
-
Uses of CssContext in com.openhtmltopdf.css.constants
Methods in com.openhtmltopdf.css.constants with parameters of type CssContextModifier and TypeMethodDescriptionfloatIdentValue.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 CssContextModifier and TypeMethodDescriptionCalculatedStyle.asLength(CssContext c, CSSName cssName) CalculatedStyle.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. returns -1 if there is no max-height defined.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) CalculatedStyle.getFont(CssContext ctx) CalculatedStyle.getFSFont(CssContext cssContext) CalculatedStyle.getFSFontMetrics(CssContext c) floatCalculatedStyle.getFSPageBreakMinHeight(CssContext c) CalculatedStyle.getLinearGradient(PropertyValue value, CssContext cssContext, int boxWidth, int boxHeight) floatCalculatedStyle.getLineHeight(CssContext ctx) intCalculatedStyle.getMarginBorderPadding(CssContext cssCtx, int cbWidth, int which) CalculatedStyle.getMarginRect(float cbWidth, CssContext ctx) Convenience property accessor; returns a Border initialized with the four-sided margin width.CalculatedStyle.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) CalculatedStyle.getPaddingRect(float cbWidth, CssContext ctx) CalculatedStyle.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 CssContextModifierConstructorDescriptionBorderRadiusCorner(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 CssContextModifier and TypeMethodDescriptionstatic 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. percentage) as an absolute value, using the input value.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) Constructors in com.openhtmltopdf.css.style.derived with parameters of type CssContextModifierConstructorDescriptionFSLinearGradient(CalculatedStyle style, FSFunction function, int boxWidth, int boxHeight, CssContext ctx) -
Uses of CssContext in com.openhtmltopdf.extend
Methods in com.openhtmltopdf.extend with parameters of type CssContextModifier and TypeMethodDescriptionSVGDrawer.buildSVGImage(Element svgElement, Box box, CssContext cssContext, double cssWidth, double cssHeight, double dotsPerPixel) -
Uses of CssContext in com.openhtmltopdf.java2d
Constructors in com.openhtmltopdf.java2d with parameters of type CssContextModifierConstructorDescriptionJava2DSVGReplacedElement(Element e, SVGDrawer svgImpl, int width, int height, Box box, CssContext c) -
Uses of CssContext in com.openhtmltopdf.layout
Classes in com.openhtmltopdf.layout that implement CssContextModifier and TypeClassDescriptionclassThis class tracks state which changes over the course of a layout run.Methods in com.openhtmltopdf.layout with parameters of type CssContextModifier and TypeMethodDescriptionvoidLayer.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) Layer.find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) Deprecated.intFloatManager.getClearDelta(CssContext cssCtx, int bfcRelativeY) Layer.getFirstPage(CssContext c, int absY) Returns the page box for a Y position.Layer.getFirstPage(CssContext c, Box box) intBlockFormattingContext.getFloatDistance(CssContext cssCtx, LineBox line, int containingBlockWidth) Layer.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) Layer.getPage(CssContext c, int yOffset) Gets the page box for the given document y offset.Layer.getPages(CssContext c, int top, int bottom) Tries to return a list of pages that cover top to bottom.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.voidRecursively propagates the transformation matrix.voidLayer.trimEmptyPages(CssContext c, int maxYHeight) Constructors in com.openhtmltopdf.layout with parameters of type CssContextModifierConstructorDescriptionLayer(Layer parent, Box master, CssContext c) Creates a child layer.Layer(Box master, CssContext c) Creates the root layer.Layer(Box master, CssContext c, boolean isolated) -
Uses of CssContext in com.openhtmltopdf.newtable
Methods in com.openhtmltopdf.newtable with parameters of type CssContextModifier and TypeMethodDescriptionvoidTableCellBox.calcCollapsedBorder(CssContext c) intTableBox.calcFixedHeightRowBottom(CssContext c) intTableBox.calcInlineBaseline(CssContext c) TableBox.getBorder(CssContext cssCtx) TableCellBox.getBorder(CssContext cssCtx) TableBox.getColumnBounds(CssContext c, int col) protected intTableCellBox.getCSSHeight(CssContext c) protected intTableBox.getCSSWidth(CssContext c) TableCellBox.getOuterStyleOrColWidth(CssContext c) TableCellBox.getOuterStyleWidth(CssContext c) TableCellBox.getPaintingClipEdge(CssContext c) intTableBox.marginsBordersPaddingAndSpacing(CssContext c, boolean ignoreAutoMargins) -
Uses of CssContext in com.openhtmltopdf.pdfboxout
Methods in com.openhtmltopdf.pdfboxout with parameters of type CssContextModifier and TypeMethodDescriptionstatic PdfBoxPDFReplacedElementPdfBoxPDFReplacedElement.create(org.apache.pdfbox.pdmodel.PDDocument target, byte[] pdfBytes, Element e, Box box, CssContext ctx, SharedContext shared) PdfBoxFastOutputDevice.findPagePositionsByID(CssContext c, Pattern pattern) PdfBoxOutputDevice.findPagePositionsByID(CssContext c, Pattern pattern) PdfBoxSlowOutputDevice.findPagePositionsByID(CssContext c, Pattern pattern) Constructors in com.openhtmltopdf.pdfboxout with parameters of type CssContextModifierConstructorDescriptionPdfBoxSVGReplacedElement(Element e, SVGDrawer svgImpl, int cssWidth, int cssHeight, Box box, CssContext css, SharedContext c) -
Uses of CssContext in com.openhtmltopdf.render
Classes in com.openhtmltopdf.render that implement CssContextModifier and TypeClassDescriptionclassSupplies information about the context in which rendering will take placeMethods in com.openhtmltopdf.render with parameters of type CssContextModifier and TypeMethodDescriptionvoidLineBox.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) Box.calcPaintingInfo(CssContext c, boolean useCache) AnonymousBlockBox.find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) Box.find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) InlineLayoutBox.find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) LineBox.find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) Box.getAbsoluteClipBox(CssContext c) Returns the absolute (ie transformed if needed) clip area for this box.Box.getBorder(CssContext cssCtx) Box.getBorderBox(CssContext c) Only to be called after layout, due to double use of getHeight().intBox.getBorderBoxHeight(CssContext c) intBox.getBorderBoxWidth(CssContext c) Box.getBorderEdge(int left, int top, CssContext cssCtx) InlineLayoutBox.getBorderEdge(int left, int top, CssContext cssCtx) intPageBox.getBottom(CssContext c) If we are in a footnote callsPageBox.getBottom(), otherwise usesPageBox.getBottomUsable().Box.getChildrenClipEdge(CssContext c) Box.getContentAreaEdge(int left, int top, CssContext cssCtx) InlineLayoutBox.getContentAreaEdge(int left, int top, CssContext cssCtx) MarginBox.getContentAreaEdge(int left, int top, CssContext cssCtx) ViewportBox.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) PageBox.getDocumentCoordinatesContentBounds(CssContext c) Get the rectangle that this page's content area will cover of the layed out document.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.floatPageBox.getFootnoteMaxHeight(CssContext c) Gets the footnote area max-height if it is provided in the footnote at-rule for this page, otherwise -1.intPageBox.getHeight(CssContext cssCtx) intInlineLayoutBox.getInlineWidth(CssContext cssCtx) intInlineLayoutBox.getLeftMarginBorderPadding(CssContext cssCtx) Box.getMargin(CssContext cssContext) PageBox.getMargin(CssContext cssCtx) intBox.getMarginBorderPadding(CssContext cssCtx, int which) intPageBox.getMarginBorderPadding(CssContext cssCtx, int which) Box.getMarginEdge(int left, int top, CssContext cssCtx, int tx, int ty) Box.getMarginEdge(CssContext cssCtx, int tx, int ty) InlineLayoutBox.getMarginEdge(int left, int top, CssContext cssCtx, int tx, int ty) LineBox.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.Box.getPadding(CssContext cssCtx) Box.getPaddingEdge(int left, int top, CssContext cssCtx) MarginBox.getPaddingEdge(int left, int top, CssContext cssCtx) ViewportBox.getPaddingEdge(int left, int top, CssContext cssCtx) protected intBox.getPaddingWidth(CssContext cssCtx) protected intMarginBox.getPaddingWidth(CssContext cssCtx) protected intViewportBox.getPaddingWidth(CssContext cssCtx) PageBox.getPagedViewClippingBounds(CssContext cssCtx, int additionalClearance) Box.getPaintingBorderEdge(CssContext cssCtx) BlockBox.getPaintingClipEdge(CssContext cssCtx) Box.getPaintingClipEdge(CssContext cssCtx) LineBox.getPaintingClipEdge(CssContext cssCtx) Box.getPaintingPaddingEdge(CssContext cssCtx) PageBox.getPrintClippingBounds(CssContext cssCtx) PageBox.getPrintPaintingBounds(CssContext cssCtx) intInlineLayoutBox.getRightMarginPaddingBorder(CssContext cssCtx) PageBox.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) booleanPageBox.isFootnoteReserved(CssContext c) If this page is reserved for footnote content.booleanBlockBox.isNeedsClipOnPaint(CssContext c) voidLineBox.justify(CssContext c) voidBlockBox.positionAbsolute(CssContext cssCtx, int direction) Box.positionRelative(CssContext cssCtx) InlineLayoutBox.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 CssContextModifier and TypeMethodDescriptionvoidPagedBoxCollector.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) PagedBoxCollector.PageResult.getShadowWindowOnDocument(PageBox page, CssContext c, int shadowPageNumber) -
Uses of CssContext in com.openhtmltopdf.svgsupport
Methods in com.openhtmltopdf.svgsupport with parameters of type CssContextModifier and TypeMethodDescriptionBatikSVGDrawer.buildSVGImage(Element svgElement, Box box, CssContext c, double cssWidth, double cssHeight, double dotsPerPixel) Constructors in com.openhtmltopdf.svgsupport with parameters of type CssContextModifierConstructorDescriptionBatikSVGImage(Element svgElement, Box box, double cssWidth, double cssHeight, double cssMaxWidth, double cssMaxHeight, double dotsPerPixel, CssContext ctx)