| Modifier and Type | Method and Description |
|---|---|
float |
IdentValue.getFloatProportionalTo(CSSName cssName,
float baseValue,
CssContext ctx) |
| Modifier and Type | Method and 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(PropertyValue value,
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.
|
| Constructor and Description |
|---|
BorderRadiusCorner(CSSName fromVal,
CalculatedStyle style,
CssContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
static float |
LengthValue.calcFloatProportionalValue(CalculatedStyle style,
CSSName cssName,
String stringValue,
float relVal,
short primitiveType,
float baseValue,
CssContext ctx) |
float |
NumberValue.getFloatProportionalTo(CSSName cssName,
float baseValue,
CssContext ctx) |
float |
LengthValue.getFloatProportionalTo(CSSName cssName,
float baseValue,
CssContext ctx)
Computes a relative unit (e.g.
|
static BorderPropertySet |
BorderPropertySet.newInstance(CalculatedStyle style,
CssContext ctx) |
static RectPropertySet |
RectPropertySet.newInstance(CalculatedStyle style,
CSSName shortHandProperty,
CSSName.CSSSideProperties sideProperties,
float cbWidth,
CssContext ctx) |
| Constructor and Description |
|---|
FSLinearGradient(CalculatedStyle style,
FSFunction function,
int boxWidth,
int boxHeight,
CssContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
SVGDrawer.SVGImage |
SVGDrawer.buildSVGImage(Element svgElement,
Box box,
CssContext cssContext,
double cssWidth,
double cssHeight,
double dotsPerPixel) |
| Modifier and Type | Class and Description |
|---|---|
class |
LayoutContext
This class tracks state which changes over the course of a layout run.
|
| Modifier and Type | Method and 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) |
static PageBox |
Layer.createPageBox(CssContext c,
String pseudoPage) |
void |
Layer.ensureHasPage(CssContext c,
Box box) |
int |
FloatManager.getClearDelta(CssContext cssCtx,
int bfcRelativeY) |
PageBox |
Layer.getFirstPage(CssContext c,
Box box) |
PageBox |
Layer.getFirstPage(CssContext c,
int absY)
Returns the page box for a Y position.
|
int |
BlockFormattingContext.getFloatDistance(CssContext cssCtx,
LineBox line,
int containingBlockWidth) |
PageBox |
Layer.getLastPage(CssContext c,
Box box) |
int |
FloatManager.getLeftFloatDistance(CssContext cssCtx,
BlockFormattingContext bfc,
LineBox line,
int containingBlockContentWidth) |
int |
BlockFormattingContext.getLeftFloatDistance(CssContext cssCtx,
LineBox line,
int containingBlockWidth) |
int |
Layer.getMaxPageWidth(CssContext cssCtx,
int additionalClearance) |
int |
FloatManager.getNextLineBoxDelta(CssContext cssCtx,
BlockFormattingContext bfc,
LineBox line,
int containingBlockContentWidth) |
int |
BlockFormattingContext.getNextLineBoxDelta(CssContext cssCtx,
LineBox line,
int containingBlockWidth) |
PageBox |
Layer.getPage(CssContext c,
int yOffset)
Gets the page box for the given document y offset.
|
PageBox |
Layer.getPage(CssContext c,
int yOffset,
boolean addPages)
Differs from
Layer.getPage(CssContext, int) by allowing the caller to
control whether a yOffset past the last page will add pages or just
return null. |
List<PageBox> |
Layer.getPages(CssContext c,
int top,
int bottom)
Tries to return a list of pages that cover top to bottom.
|
int |
FloatManager.getRightFloatDistance(CssContext cssCtx,
BlockFormattingContext bfc,
LineBox line,
int containingBlockContentWidth) |
int |
BlockFormattingContext.getRightFloatDistance(CssContext cssCtx,
LineBox line,
int containingBlockWidth) |
static int |
Breaker.getTextWidthWithLetterSpacing(CssContext c,
FSFont font,
String text,
float letterSpacing)
Gets the width of a string with letter spacing factored in.
|
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) |
| Constructor and Description |
|---|
Layer(BlockBox master,
CssContext c)
Creates the root layer.
|
Layer(BlockBox master,
CssContext c,
boolean isolated) |
Layer(Layer parent,
BlockBox master,
CssContext c)
Creates a child layer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TableCellBox.calcCollapsedBorder(CssContext c) |
int |
TableBox.calcFixedHeightRowBottom(CssContext c) |
int |
TableBox.calcInlineBaseline(CssContext c) |
BorderPropertySet |
TableCellBox.getBorder(CssContext cssCtx) |
BorderPropertySet |
TableBox.getBorder(CssContext cssCtx) |
Rectangle |
TableBox.getColumnBounds(CssContext c,
int col) |
protected int |
TableCellBox.getCSSHeight(CssContext c) |
protected int |
TableBox.getCSSWidth(CssContext c) |
Length |
TableCellBox.getOuterStyleOrColWidth(CssContext c) |
Length |
TableCellBox.getOuterStyleWidth(CssContext c) |
Rectangle |
TableCellBox.getPaintingClipEdge(CssContext c) |
int |
TableBox.marginsBordersPaddingAndSpacing(CssContext c,
boolean ignoreAutoMargins) |
| Modifier and Type | Class and Description |
|---|---|
class |
RenderingContext
Supplies information about the context in which rendering will take place
|
| Modifier and Type | Method and Description |
|---|---|
void |
LineBox.align(boolean dynamic,
CssContext c) |
protected void |
InlineLayoutBox.calcChildPaintingInfo(CssContext c,
PaintingInfo result,
boolean useCache) |
protected void |
BlockBox.calcChildPaintingInfo(CssContext c,
PaintingInfo result,
boolean useCache) |
protected void |
Box.calcChildPaintingInfo(CssContext c,
PaintingInfo result,
boolean useCache) |
int |
BlockBox.calcInlineBaseline(CssContext c) |
PaintingInfo |
Box.calcPaintingInfo(CssContext c,
boolean useCache) |
Box |
InlineLayoutBox.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
Box |
AnonymousBlockBox.find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous) |
Box |
Box.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().
|
int |
Box.getBorderBoxHeight(CssContext c) |
int |
Box.getBorderBoxWidth(CssContext c) |
Rectangle |
InlineLayoutBox.getBorderEdge(int left,
int top,
CssContext cssCtx) |
Rectangle |
Box.getBorderEdge(int left,
int top,
CssContext cssCtx) |
int |
PageBox.getBottom(CssContext c)
If we are in a footnote calls
PageBox.getBottom(), otherwise uses
PageBox.getBottomUsable(). |
Rectangle |
Box.getChildrenClipEdge(CssContext c) |
Rectangle |
InlineLayoutBox.getContentAreaEdge(int left,
int top,
CssContext cssCtx) |
Rectangle |
ViewportBox.getContentAreaEdge(int left,
int top,
CssContext cssCtx) |
Rectangle |
MarginBox.getContentAreaEdge(int left,
int top,
CssContext cssCtx) |
Rectangle |
Box.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.
|
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) |
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(CssContext cssCtx,
int tx,
int ty) |
Rectangle |
LineBox.getMarginEdge(CssContext cssCtx,
int tx,
int ty) |
Rectangle |
InlineLayoutBox.getMarginEdge(int left,
int top,
CssContext cssCtx,
int tx,
int ty) |
Rectangle |
Box.getMarginEdge(int left,
int top,
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 |
ViewportBox.getPaddingEdge(int left,
int top,
CssContext cssCtx) |
Rectangle |
MarginBox.getPaddingEdge(int left,
int top,
CssContext cssCtx) |
Rectangle |
Box.getPaddingEdge(int left,
int top,
CssContext cssCtx) |
protected int |
ViewportBox.getPaddingWidth(CssContext cssCtx) |
protected int |
MarginBox.getPaddingWidth(CssContext cssCtx) |
protected int |
Box.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 |
InlineLayoutBox.hasNonTextContent(CssContext c) |
boolean |
Box.hasNonTextContent(CssContext c) |
boolean |
LineBox.hasNonTextContent(CssContext c) |
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) |
Dimension |
InlineLayoutBox.positionRelative(CssContext cssCtx) |
Dimension |
Box.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) |
| Modifier and Type | Method and 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) |
Copyright © 2004–2025. All rights reserved.