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 TypeMethodDescriptionfloat
IdentValue.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) int
CalculatedStyle.getBorderHSpacing
(CssContext c) private static BorderPropertySet
CalculatedStyle.getBorderProperty
(CalculatedStyle style, CssContext ctx) 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) CalculatedStyle.getFont
(CssContext ctx) CalculatedStyle.getFSFont
(CssContext cssContext) CalculatedStyle.getFSFontMetrics
(CssContext c) float
CalculatedStyle.getFSPageBreakMinHeight
(CssContext c) CalculatedStyle.getLinearGradient
(PropertyValue value, CssContext cssContext, int boxWidth, int boxHeight) float
CalculatedStyle.getLineHeight
(CssContext ctx) int
CalculatedStyle.getMarginBorderPadding
(CssContext cssCtx, int cbWidth, int which) private static RectPropertySet
CalculatedStyle.getMarginProperty
(CalculatedStyle style, CSSName shorthandProp, CSSName.CSSSideProperties sides, float cbWidth, CssContext ctx, boolean useCache) 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) 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) private static RectPropertySet
CalculatedStyle.getPaddingProperty
(CalculatedStyle style, CSSName shorthandProp, CSSName.CSSSideProperties sides, float cbWidth, CssContext ctx, boolean useCache) 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.private static RectPropertySet
CalculatedStyle.newRectInstance
(CalculatedStyle style, CSSName shorthand, CSSName.CSSSideProperties sides, float cbWidth, CssContext ctx) private void
BorderRadiusCorner.setLeft
(CSSName fromVal, CalculatedStyle style, PropertyValue value, CssContext ctx) private void
BorderRadiusCorner.setRight
(CSSName fromVal, CalculatedStyle style, PropertyValue value, CssContext ctx) 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 float
LengthValue.calcFloatProportionalValue
(CalculatedStyle style, CSSName cssName, String stringValue, float relVal, short primitiveType, float baseValue, CssContext ctx) private List
<FSLinearGradient.StopPoint> FSLinearGradient.calculateStopPoints
(List<PropertyValue> params, CalculatedStyle style, CssContext ctx, float boxWidth, int stopsStartIndex) private float
FSLinearGradient.get100PercentDefaultStopLength
(CalculatedStyle style, CssContext ctx, float boxWidth) 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) Constructors in com.openhtmltopdf.css.style.derived with parameters of type CssContextModifierConstructorDescriptionprivate
BorderPropertySet
(CalculatedStyle style, CssContext ctx) FSLinearGradient
(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 TypeClassDescriptionclass
This class tracks state which changes over the course of a layout run.Methods in com.openhtmltopdf.layout with parameters of type CssContextModifier and TypeMethodDescriptionvoid
Layer.addPage
(CssContext c) private void
Layer.addPagesUntilPosition
(CssContext c, int position) private void
FloatManager.alignToLastFloat
(CssContext cssCtx, BlockFormattingContext bfc, BlockBox current, FloatManager.FloatDirection direction) private void
FloatManager.alignToLastOpposingFloat
(CssContext cssCtx, BlockFormattingContext bfc, BlockBox current, FloatManager.FloatDirection direction) private void
FloatManager.applyLineHeightHack
(CssContext cssCtx, Box line, Rectangle bounds) void
Layer.assignPagePaintingPositions
(CssContext cssCtx, int mode, int additionalClearance) void
Layer.assignPagePaintingPositions
(CssContext cssCtx, short mode) private int
FloatManager.calcDelta
(CssContext cssCtx, LineBox line, FloatManager.BoxDistance boxDistance) 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) private void
BoxCollector.collectInlineLayer
(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) Layer.find
(CssContext cssCtx, int absX, int absY, boolean findAnonymous) Deprecated.private Box
Layer.find
(CssContext cssCtx, int absX, int absY, List<Layer> layers, boolean findAnonymous) Deprecated.private int
FloatManager.findLowestY
(CssContext cssCtx, List<FloatManager.BoxOffset> floats) int
FloatManager.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) int
BlockFormattingContext.getFloatDistance
(CssContext cssCtx, LineBox line, int containingBlockWidth) private FloatManager.BoxDistance
FloatManager.getFloatDistance
(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth, List<FloatManager.BoxOffset> floatsList, FloatManager.FloatDirection direction) 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) 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.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) private boolean
BoxCollector.intersectsAny
(CssContext c, Shape clip, Box master, Box container) private void
FloatManager.moveClear
(CssContext cssCtx, BlockFormattingContext bfc, Box current, List<FloatManager.BoxOffset> floats) private void
FloatManager.moveFloatBelow
(CssContext cssCtx, BlockFormattingContext bfc, Box current, List<FloatManager.BoxOffset> floats) private boolean
FloatManager.overlaps
(CssContext cssCtx, BlockFormattingContext bfc, BlockBox current, List<FloatManager.BoxOffset> floats) private void
FloatManager.position
(CssContext cssCtx, BlockFormattingContext bfc, BlockBox current, FloatManager.FloatDirection direction) static int
InlineBoxing.positionHorizontally
(CssContext c, Box current, int start) private static int
InlineBoxing.positionHorizontally
(CssContext c, InlineLayoutBox current, int start) private static int
InlineBoxing.positionHorizontallyILBRTL
(CssContext c, InlineLayoutBox current, int start, int width) static int
InlineBoxing.positionHorizontallyRTL
(CssContext c, Box current, int start, int width) Attempts to layout inline boxes from right to left.void
Recursively propagates the transformation matrix.private void
BoxCollector.saveRangeData
(CssContext c, Box container, List<Box> blockContent, List<Box> inlineContent, BoxRangeLists rangeLists, boolean isBlock, int blockStart, int inlineStart, int blockRangeStart, int inlineRangeStart) void
Layer.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 TypeMethodDescriptionvoid
TableCellBox.calcCollapsedBorder
(CssContext c) int
TableBox.calcFixedHeightRowBottom
(CssContext c) int
TableBox.calcInlineBaseline
(CssContext c) private void
TableRowBox.calcRowHeight
(CssContext c) private CollapsedBorderValue
TableCellBox.collapsedBottomBorder
(CssContext c) private CollapsedBorderValue
TableCellBox.collapsedLeftBorder
(CssContext c) private CollapsedBorderValue
TableCellBox.collapsedRightBorder
(CssContext c) private CollapsedBorderValue
TableCellBox.collapsedTopBorder
(CssContext c) TableBox.getBorder
(CssContext cssCtx) TableCellBox.getBorder
(CssContext cssCtx) private Rectangle
TableCellBox.getCollapsedBorderBounds
(CssContext c) TableBox.getColumnBounds
(CssContext c, int col) protected int
TableCellBox.getCSSHeight
(CssContext c) protected int
TableBox.getCSSWidth
(CssContext c) TableCellBox.getOuterStyleOrColWidth
(CssContext c) TableCellBox.getOuterStyleWidth
(CssContext c) TableCellBox.getPaintingClipEdge
(CssContext c) int
TableBox.marginsBordersPaddingAndSpacing
(CssContext c, boolean ignoreAutoMargins) -
Uses of CssContext in com.openhtmltopdf.pdfboxout
Methods in com.openhtmltopdf.pdfboxout with parameters of type CssContextModifier and TypeMethodDescriptionprivate PagePosition
<Box> PdfBoxFastOutputDevice.calcPDFPagePosition
(CssContext c, String id, Box box) private PagePosition
<Box> PdfBoxSlowOutputDevice.calcPDFPagePosition
(CssContext c, String id, Box box) static PdfBoxPDFReplacedElement
PdfBoxPDFReplacedElement.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 CssContextModifierConstructorDescriptionprivate
PdfBoxPDFReplacedElement
(org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject srcForm, Element e, Box box, CssContext ctx, SharedContext shared, float w, float h) PdfBoxSVGReplacedElement
(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 TypeClassDescriptionclass
Supplies information about the context in which rendering will take placeMethods in com.openhtmltopdf.render with parameters of type CssContextModifier and TypeMethodDescriptionvoid
LineBox.align
(boolean dynamic, CssContext c) private void
BlockBox.applyCSSMinMaxHeight
(CssContext c) private void
BlockBox.applyCSSMinMaxWidth
(CssContext c) private Area
Box.calcAbsoluteClipBox
(CssContext c) private int
AbstractOutputDevice.calcBackgroundSizeLength
(CssContext c, CalculatedStyle style, PropertyValue value, float boundsDim) 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) private int
AbstractOutputDevice.calcOffset
(CssContext c, CalculatedStyle style, PropertyValue value, float boundsDim, float imageDim) Box.calcPaintingInfo
(CssContext c, boolean useCache) private int
BlockBox.calcPinnedContentWidth
(CssContext c) private int
BlockBox.calcPinnedHeight
(CssContext c) private void
Box.ensureWorkingMargin
(CssContext cssContext) 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().int
Box.getBorderBoxHeight
(CssContext c) int
Box.getBorderBoxWidth
(CssContext c) Box.getBorderEdge
(int left, int top, CssContext cssCtx) InlineLayoutBox.getBorderEdge
(int left, int top, CssContext cssCtx) private Rectangle
PageBox.getBorderEdge
(int left, int top, CssContext cssCtx) int
PageBox.getBottom
(CssContext c) If we are in a footnote callsPageBox.getBottom()
, otherwise usesPageBox.getBottomUsable()
.Box.getChildrenClipEdge
(CssContext c) private int
BlockBox.getContainingBlockCSSHeight
(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) 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) private int
BlockBox.getCSSMaxHeight
(CssContext c) private int
BlockBox.getCSSMaxWidth
(CssContext c) private int
BlockBox.getCSSMinHeight
(CssContext c) private int
BlockBox.getCSSMinWidth
(CssContext c) protected int
BlockBox.getCSSWidth
(CssContext c) protected int
BlockBox.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.float
PageBox.getFootnoteMaxHeight
(CssContext c) Gets the footnote area max-height if it is provided in the footnote at-rule for this page, otherwise -1.int
PageBox.getHeight
(CssContext cssCtx) int
InlineLayoutBox.getInlineWidth
(CssContext cssCtx) PageBox.BottomLeftCorner.getLayoutDimension
(CssContext c, PageBox page, RectPropertySet margin) PageBox.BottomMarginArea.getLayoutDimension
(CssContext c, PageBox page, RectPropertySet margin) PageBox.BottomRightCorner.getLayoutDimension
(CssContext c, PageBox page, RectPropertySet margin) PageBox.LeftMarginArea.getLayoutDimension
(CssContext c, PageBox page, RectPropertySet margin) abstract Dimension
PageBox.MarginArea.getLayoutDimension
(CssContext c, PageBox page, RectPropertySet margin) PageBox.RightMarginArea.getLayoutDimension
(CssContext c, PageBox page, RectPropertySet margin) PageBox.TopLeftCorner.getLayoutDimension
(CssContext c, PageBox page, RectPropertySet margin) PageBox.TopMarginArea.getLayoutDimension
(CssContext c, PageBox page, RectPropertySet margin) PageBox.TopRightCorner.getLayoutDimension
(CssContext c, PageBox page, RectPropertySet margin) int
InlineLayoutBox.getLeftMarginBorderPadding
(CssContext cssCtx) Box.getMargin
(CssContext cssContext) PageBox.getMargin
(CssContext cssCtx) int
Box.getMarginBorderPadding
(CssContext cssCtx, int which) int
PageBox.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) int
PageBox.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 int
Box.getPaddingWidth
(CssContext cssCtx) protected int
MarginBox.getPaddingWidth
(CssContext cssCtx) protected int
ViewportBox.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) int
InlineLayoutBox.getRightMarginPaddingBorder
(CssContext cssCtx) 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) private boolean
LineBox.intersectsInlineBlocks
(CssContext cssCtx, Shape clip) private boolean
LineBox.intersectsLine
(CssContext cssCtx, Shape clip) boolean
InlineLayoutBox.isAllTextItems
(CssContext c) boolean
PageBox.isFootnoteReserved
(CssContext c) If this page is reserved for footnote content.boolean
BlockBox.isNeedsClipOnPaint
(CssContext c) void
LineBox.justify
(CssContext c) void
BlockBox.positionAbsolute
(CssContext cssCtx, int direction) Box.positionRelative
(CssContext cssCtx) InlineLayoutBox.positionRelative
(CssContext cssCtx) protected void
Box.resetTopMargin
(CssContext cssContext) private int
PageBox.resolveAutoPageHeight
(CssContext cssCtx) Return the default page height if defined, else A4.private int
PageBox.resolveAutoPageWidth
(CssContext cssCtx) Returns the default page width if defined, else the A4 page size width.private void
PageBox.resolvePageDimensions
(CssContext cssCtx) private void
AbstractOutputDevice.scaleBackgroundImage
(CssContext c, CalculatedStyle style, Rectangle backgroundContainer, FSImage image, CalculatedStyle.BackgroundContainer bgImage) 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) -
Uses of CssContext in com.openhtmltopdf.render.displaylist
Methods in com.openhtmltopdf.render.displaylist with parameters of type CssContextModifier and TypeMethodDescriptionprivate void
PagedBoxCollector.addBlockToAll
(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, Shape ourClip, List<PagedBoxCollector.PageResult> clipPages, boolean includeShadowPages) private void
PagedBoxCollector.addBlockToShadowPage
(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, Shape ourClip, List<PagedBoxCollector.PageResult> clipPages, int shadowPageNumber) private void
PagedBoxCollector.addBoxToShadowPages
(CssContext c, Box container, int pageNumber, PagedBoxCollector.PageResult pageResult, Shape ourClip, List<PagedBoxCollector.PageResult> clipPages, Layer layer, PagedBoxCollector.AddToShadowPage addToMethod) Adds box to inserted shadow pages as needed.private void
PagedBoxCollector.addLineBoxToAll
(CssContext c, Layer layer, LineBox container, int basePageNumber, boolean includeShadowPages) Adds a line box to the base page if needed and any shadow pages as needed.private void
PagedBoxCollector.addLineBoxToShadowPage
(CssContext c, Layer layer, LineBox container, int basePageNumber, int shadowPageNumber) private void
PagedBoxCollector.addTableHeaderFooter
(CssContext c, Layer layer, Box container, int shadowPageNumber) private static void
TransformCreator.applyTransformFunctions
(float flipFactor, List<PropertyValue> transformList, AffineTransform result, Box box, CssContext ctx) private boolean
PagedBoxCollector.boxIntersects
(CssContext c, Shape clip, Box box, Rectangle boxBounds) 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) private void
PagedBoxCollector.collectInline
(CssContext c, Layer layer) static AffineTransform
TransformCreator.createDocumentCoordinatesTransform
(Box master, CssContext c, AffineTransform _parentCtm) Creates an absolute transform in document coordinates.private static void
TransformCreator.createTransform
(CssContext c, Box box, PageBox page, AffineTransform result, TransformCreator.TransformYOrigin transformYOrigin, int shadowPageNumber) page
may be null in the case thattransformYOrigin
isDOCUMENT_TOP
.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) private int
PagedBoxCollector.PageFinder.findPage
(CssContext c, int yOffset) 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) private static Rectangle
PagedBoxCollector.getBoxRect
(CssContext c, Box container) private Rectangle
PagedBoxCollector.PageResult.getContentWindowOnDocument
(PageBox page, CssContext c) private static float
TransformCreator.getPageTranslateX
(float absTranslateX, int shadowPageNumber, PageBox page, CssContext c, Box box) static int
PagedBoxCollector.getShadowPageForBounds
(CssContext c, Rectangle bounds, PageBox page) PagedBoxCollector.PageResult.getShadowWindowOnDocument
(PageBox page, CssContext c, int shadowPageNumber) private boolean
PagedBoxCollector.intersectsAggregateBounds
(CssContext c, Shape clip, Box box) private boolean
PagedBoxCollector.intersectsAny
(CssContext c, Shape clip, Box master, Box container) private boolean
PagedBoxCollector.intersectsBorderBoxBounds
(CssContext c, Shape clip, Box box) Returns whether a box (out to the outside edge of border) is partially or fully in a clip shape. -
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) private Point
BatikSVGImage.parseDimensions
(Element e, Box box, CssContext ctx) private Integer
BatikSVGImage.parseLength
(String attrValue, CSSName property, Box box, CssContext ctx) private Point
BatikSVGImage.parseWidthHeightAttributes
(Element e, Box box, CssContext ctx) 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)