Package org.xhtmlrenderer.layout
Class Layer
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).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final short -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddFloat(BlockBox floater, BlockFormattingContext bfc) voidvoidaddPageSequence(BlockBox start) voidaddRunningBlock(BlockBox block) voidassignPagePaintingPositions(CssContext cssCtx, int mode, int additionalClearance) voidassignPagePaintingPositions(CssContext cssCtx, short mode) booleanstatic PageBoxcreatePageBox(CssContext c, String pseudoPage) booleancrossesPageBreak(LayoutContext c, int top, int bottom) voiddetach()voidensureHasPage(CssContext c, Box box) find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) findRoot()voidgetEnd()getFirstPage(CssContext c, Box box) getLastPage(CssContext c, Box box) intgetMaxPageWidth(CssContext cssCtx, int additionalClearance) getPage(CssContext c, int yOffset) getPages()intintintgetRelativePageNo(RenderingContext c, int absY) getRunningBlock(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)
-
Field Details
-
PAGED_MODE_SCREEN
public static final short PAGED_MODE_SCREEN- See Also:
-
PAGED_MODE_PRINT
public static final short PAGED_MODE_PRINT- See Also:
-
-
Constructor Details
-
Layer
-
Layer
-
-
Method Details
-
getParent
-
isStackingContext
public boolean isStackingContext() -
getZIndex
public int getZIndex() -
getMaster
-
addChild
-
addFloat
-
removeFloat
-
getPaintingDimension
-
paint
-
find
-
paintAsLayer
-
isRootLayer
public boolean isRootLayer() -
positionChildren
-
containsFixedContent
public boolean containsFixedContent() -
setFixedBackground
public void setFixedBackground(boolean b) -
getChildren
-
detach
public void detach() -
isInline
public boolean isInline() -
setInline
public void setInline(boolean inline) -
getEnd
-
setEnd
-
isRequiresLayout
public boolean isRequiresLayout() -
setRequiresLayout
public void setRequiresLayout(boolean requiresLayout) -
finish
-
getPages
-
isLastPage
-
addPage
-
removeLastPage
public void removeLastPage() -
createPageBox
-
getFirstPage
-
getLastPage
-
ensureHasPage
-
getPage
-
trimEmptyPages
public void trimEmptyPages(int maxYHeight) -
trimPageCount
public void trimPageCount(int newPageCount) -
assignPagePaintingPositions
-
assignPagePaintingPositions
-
getMaxPageWidth
-
getLastPage
-
crossesPageBreak
-
findRoot
-
addRunningBlock
-
removeRunningBlock
-
getRunningBlock
-
layoutPages
-
addPageSequence
-
getRelativePageNo
-
getRelativePageNo
-
getRelativePageCount
-