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 float
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 CssContext Modifier and Type Method Description Length
CalculatedStyle. asLength(CssContext c, CSSName cssName)
BorderPropertySet
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)
FontSpecification
CalculatedStyle. getFont(CssContext ctx)
FSFont
CalculatedStyle. getFSFont(CssContext cssContext)
FSFontMetrics
CalculatedStyle. getFSFontMetrics(CssContext c)
float
CalculatedStyle. getFSPageBreakMinHeight(CssContext c)
FSLinearGradient
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)
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)
private static RectPropertySet
CalculatedStyle. getPaddingProperty(CalculatedStyle style, CSSName shorthandProp, CSSName.CSSSideProperties sides, float cbWidth, CssContext ctx, boolean useCache)
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.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 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 float
LengthValue. calcFloatProportionalValue(CalculatedStyle style, CSSName cssName, java.lang.String stringValue, float relVal, short primitiveType, float baseValue, CssContext ctx)
private java.util.List<FSLinearGradient.StopPoint>
FSLinearGradient. calculateStopPoints(java.util.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 CssContext Constructor Description 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 CssContext Modifier and Type Method Description SVGDrawer.SVGImage
SVGDrawer. buildSVGImage(org.w3c.dom.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 CssContext Constructor Description Java2DSVGReplacedElement(org.w3c.dom.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 CssContext Modifier and Type Class Description class
LayoutContext
This 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 void
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, java.awt.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, java.awt.Shape clip, Layer layer, Box container, java.util.List<Box> blockContent, java.util.List<Box> inlineContent, BoxRangeLists rangeLists)
void
BoxCollector. collect(CssContext c, java.awt.Shape clip, Layer layer, java.util.List<Box> blockContent, java.util.List<Box> inlineContent, BoxRangeLists rangeLists)
private void
BoxCollector. collectInlineLayer(CssContext c, java.awt.Shape clip, Layer layer, java.util.List<Box> blockContent, java.util.List<Box> inlineContent, BoxRangeLists rangeLists)
static PageBox
Layer. createPageBox(CssContext c, java.lang.String pseudoPage)
void
Layer. ensureHasPage(CssContext c, Box box)
Box
Layer. find(CssContext cssCtx, int absX, int absY, boolean findAnonymous)
Deprecated.private Box
Layer. find(CssContext cssCtx, int absX, int absY, java.util.List<Layer> layers, boolean findAnonymous)
Deprecated.private int
FloatManager. findLowestY(CssContext cssCtx, java.util.List<FloatManager.BoxOffset> floats)
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)
private FloatManager.BoxDistance
FloatManager. getFloatDistance(CssContext cssCtx, BlockFormattingContext bfc, LineBox line, int containingBlockContentWidth, java.util.List<FloatManager.BoxOffset> floatsList, FloatManager.FloatDirection direction)
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)
Gets the page box for the given document y offset.java.util.List<PageBox>
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, java.lang.String text, float letterSpacing)
Gets the width of a string with letter spacing factored in.boolean
BoxCollector. intersectsAny(CssContext c, java.awt.Shape clip, Box master)
private boolean
BoxCollector. intersectsAny(CssContext c, java.awt.Shape clip, Box master, Box container)
private void
FloatManager. moveClear(CssContext cssCtx, BlockFormattingContext bfc, Box current, java.util.List<FloatManager.BoxOffset> floats)
private void
FloatManager. moveFloatBelow(CssContext cssCtx, BlockFormattingContext bfc, Box current, java.util.List<FloatManager.BoxOffset> floats)
private boolean
FloatManager. overlaps(CssContext cssCtx, BlockFormattingContext bfc, BlockBox current, java.util.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
Layer. propagateCurrentTransformationMatrix(CssContext c)
Recursively propagates the transformation matrix.private void
BoxCollector. saveRangeData(CssContext c, Box container, java.util.List<Box> blockContent, java.util.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 CssContext Constructor Description Layer(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
-
Uses of CssContext in com.openhtmltopdf.pdfboxout
Methods in com.openhtmltopdf.pdfboxout with parameters of type CssContext Modifier and Type Method Description private PagePosition<Box>
PdfBoxFastOutputDevice. calcPDFPagePosition(CssContext c, java.lang.String id, Box box)
private PagePosition<Box>
PdfBoxSlowOutputDevice. calcPDFPagePosition(CssContext c, java.lang.String id, Box box)
static PdfBoxPDFReplacedElement
PdfBoxPDFReplacedElement. create(org.apache.pdfbox.pdmodel.PDDocument target, byte[] pdfBytes, org.w3c.dom.Element e, Box box, CssContext ctx, SharedContext shared)
java.util.List<PagePosition<Box>>
PdfBoxFastOutputDevice. findPagePositionsByID(CssContext c, java.util.regex.Pattern pattern)
java.util.List<PagePosition<Box>>
PdfBoxOutputDevice. findPagePositionsByID(CssContext c, java.util.regex.Pattern pattern)
java.util.List<PagePosition<Box>>
PdfBoxSlowOutputDevice. findPagePositionsByID(CssContext c, java.util.regex.Pattern pattern)
Constructors in com.openhtmltopdf.pdfboxout with parameters of type CssContext Constructor Description PdfBoxPDFReplacedElement(org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject srcForm, org.w3c.dom.Element e, Box box, CssContext ctx, SharedContext shared, float w, float h)
PdfBoxSVGReplacedElement(org.w3c.dom.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 CssContext Modifier and Type Class Description class
RenderingContext
Supplies information about the context in which rendering will take placeMethods in com.openhtmltopdf.render with parameters of type CssContext Modifier and Type Method Description void
LineBox. align(boolean dynamic, CssContext c)
private void
BlockBox. applyCSSMinMaxHeight(CssContext c)
private void
BlockBox. applyCSSMinMaxWidth(CssContext c)
private java.awt.geom.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)
PaintingInfo
Box. calcPaintingInfo(CssContext c, boolean useCache)
private int
BlockBox. calcPinnedContentWidth(CssContext c)
private int
BlockBox. calcPinnedHeight(CssContext c)
private void
Box. ensureWorkingMargin(CssContext cssContext)
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)
java.awt.geom.Area
Box. getAbsoluteClipBox(CssContext c)
Returns the absolute (ie transformed if needed) clip area for this box.BorderPropertySet
Box. getBorder(CssContext cssCtx)
java.awt.Rectangle
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)
java.awt.Rectangle
Box. getBorderEdge(int left, int top, CssContext cssCtx)
java.awt.Rectangle
InlineLayoutBox. getBorderEdge(int left, int top, CssContext cssCtx)
private java.awt.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()
.java.awt.Rectangle
Box. getChildrenClipEdge(CssContext c)
private int
BlockBox. getContainingBlockCSSHeight(CssContext c)
java.awt.Rectangle
Box. getContentAreaEdge(int left, int top, CssContext cssCtx)
java.awt.Rectangle
InlineLayoutBox. getContentAreaEdge(int left, int top, CssContext cssCtx)
java.awt.Rectangle
MarginBox. getContentAreaEdge(int left, int top, CssContext cssCtx)
java.awt.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)
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)
java.awt.Rectangle
PageBox. getDocumentCoordinatesContentBounds(CssContext c)
Get the rectangle that this page's content area will cover of the layed out document.java.awt.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.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)
java.awt.Dimension
PageBox.BottomLeftCorner. getLayoutDimension(CssContext c, PageBox page, RectPropertySet margin)
java.awt.Dimension
PageBox.BottomMarginArea. getLayoutDimension(CssContext c, PageBox page, RectPropertySet margin)
java.awt.Dimension
PageBox.BottomRightCorner. getLayoutDimension(CssContext c, PageBox page, RectPropertySet margin)
java.awt.Dimension
PageBox.LeftMarginArea. getLayoutDimension(CssContext c, PageBox page, RectPropertySet margin)
abstract java.awt.Dimension
PageBox.MarginArea. getLayoutDimension(CssContext c, PageBox page, RectPropertySet margin)
java.awt.Dimension
PageBox.RightMarginArea. getLayoutDimension(CssContext c, PageBox page, RectPropertySet margin)
java.awt.Dimension
PageBox.TopLeftCorner. getLayoutDimension(CssContext c, PageBox page, RectPropertySet margin)
java.awt.Dimension
PageBox.TopMarginArea. getLayoutDimension(CssContext c, PageBox page, RectPropertySet margin)
java.awt.Dimension
PageBox.TopRightCorner. getLayoutDimension(CssContext c, PageBox page, RectPropertySet margin)
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)
java.awt.Rectangle
Box. getMarginEdge(int left, int top, CssContext cssCtx, int tx, int ty)
java.awt.Rectangle
Box. getMarginEdge(CssContext cssCtx, int tx, int ty)
java.awt.Rectangle
InlineLayoutBox. getMarginEdge(int left, int top, CssContext cssCtx, int tx, int ty)
java.awt.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)
java.awt.Rectangle
Box. getPaddingEdge(int left, int top, CssContext cssCtx)
java.awt.Rectangle
MarginBox. getPaddingEdge(int left, int top, CssContext cssCtx)
java.awt.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)
java.awt.Rectangle
PageBox. getPagedViewClippingBounds(CssContext cssCtx, int additionalClearance)
java.awt.Rectangle
Box. getPaintingBorderEdge(CssContext cssCtx)
java.awt.Rectangle
BlockBox. getPaintingClipEdge(CssContext cssCtx)
java.awt.Rectangle
Box. getPaintingClipEdge(CssContext cssCtx)
java.awt.Rectangle
LineBox. getPaintingClipEdge(CssContext cssCtx)
java.awt.Rectangle
Box. getPaintingPaddingEdge(CssContext cssCtx)
java.awt.Rectangle
PageBox. getPrintClippingBounds(CssContext cssCtx)
java.awt.Rectangle
PageBox. getPrintPaintingBounds(CssContext cssCtx)
int
InlineLayoutBox. getRightMarginPaddingBorder(CssContext cssCtx)
java.awt.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, java.awt.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, java.awt.Shape clip)
boolean
InlineLayoutBox. intersectsInlineBlocks(CssContext cssCtx, java.awt.Shape clip)
private boolean
LineBox. intersectsInlineBlocks(CssContext cssCtx, java.awt.Shape clip)
private boolean
LineBox. intersectsLine(CssContext cssCtx, java.awt.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)
java.awt.Dimension
Box. positionRelative(CssContext cssCtx)
java.awt.Dimension
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, java.awt.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 CssContext Modifier and Type Method Description private void
PagedBoxCollector. addBlockToAll(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, java.awt.Shape ourClip, java.util.List<PagedBoxCollector.PageResult> clipPages, boolean includeShadowPages)
private void
PagedBoxCollector. addBlockToShadowPage(CssContext c, Layer layer, Box container, int pgStart, int pgEnd, java.awt.Shape ourClip, java.util.List<PagedBoxCollector.PageResult> clipPages, int shadowPageNumber)
private void
PagedBoxCollector. addBoxToShadowPages(CssContext c, Box container, int pageNumber, PagedBoxCollector.PageResult pageResult, java.awt.Shape ourClip, java.util.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, java.util.List<PropertyValue> transformList, java.awt.geom.AffineTransform result, Box box, CssContext ctx)
private boolean
PagedBoxCollector. boxIntersects(CssContext c, java.awt.Shape clip, Box box, java.awt.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 java.awt.geom.AffineTransform
TransformCreator. createDocumentCoordinatesTransform(Box master, CssContext c, java.awt.geom.AffineTransform _parentCtm)
Creates an absolute transform in document coordinates.private static void
TransformCreator. createTransform(CssContext c, Box box, PageBox page, java.awt.geom.AffineTransform result, TransformCreator.TransformYOrigin transformYOrigin, int shadowPageNumber)
page
may be null in the case thattransformYOrigin
isDOCUMENT_TOP
.static java.awt.Rectangle
PagedBoxCollector. findAdjustedBoundsForBorderBox(CssContext c, Box container, java.util.List<PageBox> pages)
Finds the document coordinates border box bounds of a box adjusted for transform and clipped according to overflow hidden.static java.awt.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, java.awt.geom.AffineTransform transform)
static int
PagedBoxCollector. findEndPage(CssContext c, Box container, java.util.List<PageBox> pages)
protected int
PagedBoxCollector. findEndPage(CssContext c, java.awt.Rectangle bounds, java.awt.geom.AffineTransform transform)
static java.util.List<PagedBoxCollector.PageInfo>
PagedBoxCollector. findLayerPages(CssContext c, Layer layer, java.util.List<PageBox> pages)
Returns the pages a layer appears on including inserted overflow pages.static java.awt.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, java.util.List<PageBox> pages)
protected int
PagedBoxCollector. findStartPage(CssContext c, Box container, java.awt.geom.AffineTransform transform)
static int
PagedBoxCollector. findStartPage(CssContext c, Box container, java.util.List<PageBox> pages)
protected int
PagedBoxCollector. findStartPage(CssContext c, java.awt.Rectangle bounds, java.awt.geom.AffineTransform transform)
private static java.awt.Rectangle
PagedBoxCollector. getBoxRect(CssContext c, Box container)
private java.awt.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, java.awt.Rectangle bounds, PageBox page)
java.awt.Rectangle
PagedBoxCollector.PageResult. getShadowWindowOnDocument(PageBox page, CssContext c, int shadowPageNumber)
private boolean
PagedBoxCollector. intersectsAggregateBounds(CssContext c, java.awt.Shape clip, Box box)
private boolean
PagedBoxCollector. intersectsAny(CssContext c, java.awt.Shape clip, Box master, Box container)
private boolean
PagedBoxCollector. intersectsBorderBoxBounds(CssContext c, java.awt.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 CssContext Modifier and Type Method Description SVGDrawer.SVGImage
BatikSVGDrawer. buildSVGImage(org.w3c.dom.Element svgElement, Box box, CssContext c, double cssWidth, double cssHeight, double dotsPerPixel)
private java.awt.Point
BatikSVGImage. parseDimensions(org.w3c.dom.Element e, Box box, CssContext ctx)
private java.lang.Integer
BatikSVGImage. parseLength(java.lang.String attrValue, CSSName property, Box box, CssContext ctx)
private java.awt.Point
BatikSVGImage. parseWidthHeightAttributes(org.w3c.dom.Element e, Box box, CssContext ctx)
Constructors in com.openhtmltopdf.svgsupport with parameters of type CssContext Constructor Description BatikSVGImage(org.w3c.dom.Element svgElement, Box box, double cssWidth, double cssHeight, double cssMaxWidth, double cssMaxHeight, double dotsPerPixel, CssContext ctx)
-