org.xhtmlrenderer.render
Class AnonymousBlockBox
java.lang.Object
org.xhtmlrenderer.render.Box
org.xhtmlrenderer.render.BlockBox
org.xhtmlrenderer.render.AnonymousBlockBox
- All Implemented Interfaces:
- InlinePaintable, Styleable
public class AnonymousBlockBox
- extends BlockBox
An anonymous block box as defined in the CSS spec. This class is only used
when wrapping inline content in a block box in order to ensure that a block
box only ever contains either block or inline content. Other anonymous block
boxes create a BlockBox
directly with the anonymous property is
true.
Methods inherited from class org.xhtmlrenderer.render.BlockBox |
calcBaseline, calcBreakAtLineContext, calcCanvasLocation, calcChildLocations, calcDimensions, calcInitialFloatedCanvasLocation, calcInlineBaseline, calcMinMaxWidth, checkPageContext, createMarkerData, dump, ensureChildren, findLastNthLineBox, findOffset, getChildrenContentType, getChildrenHeight, getDocumentParent, getFirstLetterStyle, getFirstLineStyle, getFloatedBoxData, getInlineContent, getLineBox, getListCounter, getMarkerData, getMaxWidth, getMinWidth, getPaintingClipEdge, getPersistentBFC, getReplacedElement, getStaticEquivalent, initStaticPos, isAutoHeight, isBottomMarginCalculated, isContainsInlineContent, isCurrentBreakAtLineContext, isFloated, isFromCaptionedTable, isInline, isInMainFlow, isNeedPageClear, isNeedsClipOnPaint, isNeedsKeepWithInline, isReplaced, isTopMarginCalculated, layout, paintDebugOutline, paintInline, paintListMarker, positionAbsolute, positionAbsoluteOnPage, reset, setBottomMarginCalculated, setChildrenContentType, setFirstLetterStyle, setFirstLineStyle, setFloatedBoxData, setFromCaptionedTable, setInlineContent, setListCounter, setMarkerData, setNeedPageClear, setPersistentBFC, setReplacedElement, setStaticEquivalent, setTopMarginCalculated, styleText, toString |
Methods inherited from class org.xhtmlrenderer.render.Box |
addAllChildren, addChild, addChildForLayout, analyzePageBreaks, calcPaintingInfo, clearSelection, collectText, connectChildrenToCurrentLayer, crossesPageBreak, detach, exportText, forcePageBreakAfter, forcePageBreakBefore, getAbsX, getAbsY, getBorder, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildIterator, getChildren, getChildrenClipEdge, getContainingBlock, getContainingLayer, getContentAreaEdge, getEffBackgroundColor, getEffectiveWidth, getElement, getElementBoxes, getHeight, getLayer, getLeftMBP, getMargin, getMarginBorderPadding, getMarginEdge, getMarginEdge, getNextSibling, getPadding, getPaddingEdge, getPaintingBorderEdge, getPaintingInfo, getPaintingPaddingEdge, getParent, getPreviousSibling, getPseudoElementOrClass, getRelativeOffset, getRestyleTarget, getRightMBP, getState, getStyle, getTx, getTy, getWidth, getX, getY, initContainingLayer, intersects, isAnonymous, isBody, isContainedInMarginBox, isInDocumentFlow, isRoot, isStyled, paintBackground, paintBorder, paintRootElementBackground, positionRelative, removeAllChildren, removeChild, removeChild, resetChildren, restyle, selectAll, setAbsX, setAbsY, setAnonymous, setBoxDimensions, setContainingBlock, setContainingLayer, setContentWidth, setElement, setHeight, setLayer, setLeftMBP, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setParent, setPseudoElementOrClass, setRelativeOffset, setRightMBP, setState, setStyle, setTx, setTy, setX, setY, stateToString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AnonymousBlockBox
public AnonymousBlockBox(org.w3c.dom.Element element)
layout
public void layout(LayoutContext c)
- Overrides:
layout
in class BlockBox
getContentWidth
public int getContentWidth()
- Overrides:
getContentWidth
in class Box
find
public Box find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous)
- Overrides:
find
in class Box
getOpenInlineBoxes
public java.util.List getOpenInlineBoxes()
setOpenInlineBoxes
public void setOpenInlineBoxes(java.util.List openInlineBoxes)
isSkipWhenCollapsingMargins
public boolean isSkipWhenCollapsingMargins()
provideSiblingMarginToFloats
public void provideSiblingMarginToFloats(int margin)
isMayCollapseMarginsWithChildren
public boolean isMayCollapseMarginsWithChildren()
styleText
public void styleText(LayoutContext c)
- Overrides:
styleText
in class BlockBox
copyOf
public BlockBox copyOf()
- Overrides:
copyOf
in class BlockBox
Flying Saucer Project Home