java.lang.Object
org.xhtmlrenderer.layout.Layer
All positioned content as well as content with an overflow value other
than visible creates a layer. Layers which define stacking contexts
provide the entry for rendering the box tree to an output device. The main
purpose of this class is to provide an implementation of Appendix E of the
spec, but it also provides additional utility services including page
management and mapping boxes to coordinates (for e.g. links). When
rendering to a paged output device, the layer is also responsible for laying
out absolute content (which is laid out after its containing block has
completed layout).
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidaddPageSequence(BlockBox start) voidaddRunningBlock(BlockBox block) voidassignPagePaintingPositions(CssContext cssCtx, Layer.PagedMode mode) voidassignPagePaintingPositions(CssContext cssCtx, Layer.PagedMode mode, int additionalClearance) booleanstatic PageBoxcreatePageBox(CssContext c, String pseudoPage) static PageBoxcreatePageBox(CssContext c, String pseudoPage, int top, int pageNo) booleancrossesPageBreak(LayoutContext c, int top, int bottom) voiddetach()voidensureHasPage(CssContext c, Box box) @Nullable Boxfind(CssContext cssCtx, int absX, int absY, boolean findAnonymous) findRoot()void@Nullable BoxgetEnd()@Nullable PageBoxgetFirstPage(CssContext c, Box box) @Nullable PageBox@Nullable PageBoxgetLastPage(CssContext c, Box box) intgetMaxPageWidth(CssContext cssCtx, int additionalClearance) @Nullable PageBoxgetPage(CssContext c, int yOffset) getPages()@Nullable LayerintintintgetRelativePageNo(RenderingContext c, int absY) @Nullable BlockBoxgetRunningBlock(String identifier, PageBox page, PageElementPosition which) intbooleanisInline()booleanisLastPage(PageBox pageBox) booleanbooleanbooleanvoidvoidvoidpaintAsLayer(RenderingContext c, BlockBox startingPoint) voidvoidremoveFloat(BlockBox floater) voidvoidremoveRunningBlock(BlockBox block) voidvoidsetFixedBackground(boolean b) voidsetInline(boolean inline) voidsetRequiresLayout(boolean requiresLayout) voidtrimEmptyPages(int maxYHeight) voidtrimPageCount(int newPageCount)
-
Constructor Details
-
Layer
-
Layer
-
-
Method Details
-
getParent
-
isStackingContext
@CheckReturnValue public boolean isStackingContext() -
getZIndex
@CheckReturnValue public int getZIndex() -
getMaster
-
addChild
-
addFloat
-
removeFloat
-
getPaintingDimension
-
paint
-
find
@CheckReturnValue public @Nullable Box find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) -
paintAsLayer
-
isRootLayer
public boolean isRootLayer() -
positionChildren
-
containsFixedContent
@CheckReturnValue public boolean containsFixedContent() -
setFixedBackground
public void setFixedBackground(boolean b) -
getChildren
-
detach
public void detach() -
isInline
@CheckReturnValue public boolean isInline() -
setInline
public void setInline(boolean inline) -
getEnd
-
setEnd
-
isRequiresLayout
@CheckReturnValue public boolean isRequiresLayout() -
setRequiresLayout
public void setRequiresLayout(boolean requiresLayout) -
finish
-
getPages
-
isLastPage
-
addPage
-
removeLastPage
public void removeLastPage() -
createPageBox
-
createPageBox
@CheckReturnValue public static PageBox createPageBox(CssContext c, String pseudoPage, int top, int pageNo) -
getFirstPage
-
getLastPage
-
ensureHasPage
-
getPage
-
trimEmptyPages
public void trimEmptyPages(int maxYHeight) -
trimPageCount
public void trimPageCount(int newPageCount) -
assignPagePaintingPositions
-
assignPagePaintingPositions
public void assignPagePaintingPositions(CssContext cssCtx, Layer.PagedMode mode, int additionalClearance) -
getMaxPageWidth
-
getLastPage
-
crossesPageBreak
-
findRoot
-
addRunningBlock
-
removeRunningBlock
-
getRunningBlock
public @Nullable BlockBox getRunningBlock(String identifier, PageBox page, PageElementPosition which) -
layoutPages
-
addPageSequence
-
getRelativePageNo
-
getRelativePageNo
-
getRelativePageCount
-