Package org.xhtmlrenderer.render
Class BlockBox
java.lang.Object
org.xhtmlrenderer.render.Box
org.xhtmlrenderer.render.BlockBox
- All Implemented Interfaces:
InlinePaintable
,Styleable
- Direct Known Subclasses:
AnonymousBlockBox
,MarginBox
,TableBox
,TableCellBox
,TableRowBox
,TableSectionBox
,ViewportBox
A block box as defined in the CSS spec. It also provides a base class for
other kinds of block content (for example table rows or cells).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class org.xhtmlrenderer.render.Box
CHILDREN_FLUX, DONE, DUMP_LAYOUT, DUMP_RENDER, FLUX, NOTHING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
void
void
void
int
void
boolean
copyOf()
void
dump
(LayoutContext c, String indent, int which) void
findLastNthLineBox
(int count) int
findOffset
(Box box) int
int
int
int
int
getPaintingClipEdge
(CssContext cssCtx) void
initStaticPos
(LayoutContext c, BlockBox parent, int childOffset) boolean
boolean
boolean
boolean
boolean
boolean
boolean
isInline()
boolean
boolean
boolean
boolean
boolean
boolean
void
void
layout
(LayoutContext c, int contentStart) void
void
void
void
positionAbsolute
(CssContext cssCtx, int direction) void
void
void
setBottomMarginCalculated
(boolean bottomMarginCalculated) void
setChildrenContentType
(int contentType) void
setFirstLetterStyle
(CascadedStyle firstLetterStyle) void
setFirstLineStyle
(CascadedStyle firstLineStyle) void
setFloatedBoxData
(FloatedBoxData floatedBoxData) void
setFromCaptionedTable
(boolean fromTable) void
setInlineContent
(List inlineContent) void
setListCounter
(int listCounter) void
setMarkerData
(MarkerData markerData) void
setNeedPageClear
(boolean needPageClear) void
setPersistentBFC
(PersistentBFC persistentBFC) void
setReplacedElement
(ReplacedElement replacedElement) void
setStaticEquivalent
(Box staticEquivalent) void
setTopMarginCalculated
(boolean topMarginCalculated) void
void
styleText
(LayoutContext c, CalculatedStyle style) toString()
Methods inherited from class org.xhtmlrenderer.render.Box
addAllChildren, addChild, addChildForLayout, analyzePageBreaks, calcPaintingInfo, clearSelection, collectText, connectChildrenToCurrentLayer, crossesPageBreak, detach, exportText, find, forcePageBreakAfter, forcePageBreakBefore, getAbsX, getAbsY, getBorder, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildIterator, getChildren, getChildrenClipEdge, getContainingBlock, getContainingLayer, getContentAreaEdge, getContentWidth, 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
-
Field Details
-
POSITION_VERTICALLY
public static final int POSITION_VERTICALLY- See Also:
-
POSITION_HORIZONTALLY
public static final int POSITION_HORIZONTALLY- See Also:
-
POSITION_BOTH
public static final int POSITION_BOTH- See Also:
-
CONTENT_UNKNOWN
public static final int CONTENT_UNKNOWN- See Also:
-
CONTENT_INLINE
public static final int CONTENT_INLINE- See Also:
-
CONTENT_BLOCK
public static final int CONTENT_BLOCK- See Also:
-
CONTENT_EMPTY
public static final int CONTENT_EMPTY- See Also:
-
-
Constructor Details
-
BlockBox
public BlockBox()
-
-
Method Details
-
copyOf
-
toString
-
dump
-
paintListMarker
-
getPaintingClipEdge
- Overrides:
getPaintingClipEdge
in classBox
-
paintInline
- Specified by:
paintInline
in interfaceInlinePaintable
-
isInline
public boolean isInline() -
getLineBox
-
paintDebugOutline
-
getMarkerData
-
setMarkerData
-
createMarkerData
-
getListCounter
public int getListCounter() -
setListCounter
public void setListCounter(int listCounter) -
getPersistentBFC
-
setPersistentBFC
-
getStaticEquivalent
-
setStaticEquivalent
-
isReplaced
public boolean isReplaced() -
calcCanvasLocation
public void calcCanvasLocation()- Specified by:
calcCanvasLocation
in classBox
-
calcInitialFloatedCanvasLocation
-
calcChildLocations
public void calcChildLocations()- Overrides:
calcChildLocations
in classBox
-
isNeedPageClear
public boolean isNeedPageClear() -
setNeedPageClear
public void setNeedPageClear(boolean needPageClear) -
positionAbsolute
-
positionAbsoluteOnPage
-
getReplacedElement
-
setReplacedElement
-
reset
-
calcDimensions
-
layout
-
layout
-
ensureChildren
-
getChildrenContentType
public int getChildrenContentType() -
setChildrenContentType
public void setChildrenContentType(int contentType) -
getInlineContent
-
setInlineContent
-
isTopMarginCalculated
public boolean isTopMarginCalculated() -
setTopMarginCalculated
public void setTopMarginCalculated(boolean topMarginCalculated) -
isBottomMarginCalculated
public boolean isBottomMarginCalculated() -
setBottomMarginCalculated
public void setBottomMarginCalculated(boolean bottomMarginCalculated) -
isAutoHeight
public boolean isAutoHeight() -
calcMinMaxWidth
-
getMaxWidth
public int getMaxWidth() -
getMinWidth
public int getMinWidth() -
styleText
-
styleText
-
getFirstLetterStyle
-
setFirstLetterStyle
-
getFirstLineStyle
-
setFirstLineStyle
-
initStaticPos
-
calcBaseline
-
isCurrentBreakAtLineContext
-
calcBreakAtLineContext
-
calcInlineBaseline
-
findOffset
-
findLastNthLineBox
-
isNeedsKeepWithInline
-
isFloated
public boolean isFloated() -
getFloatedBoxData
-
setFloatedBoxData
-
getChildrenHeight
public int getChildrenHeight() -
isFromCaptionedTable
public boolean isFromCaptionedTable() -
setFromCaptionedTable
public void setFromCaptionedTable(boolean fromTable) -
isInMainFlow
public boolean isInMainFlow() -
getDocumentParent
- Overrides:
getDocumentParent
in classBox
-
isContainsInlineContent
-
checkPageContext
-
isNeedsClipOnPaint
-