Top Description Fields Constructors Methods
com.openhtmltopdf.render

public Class MarginBox

extends BlockBox
Class Inheritance
Imports
java.awt.Rectangle, com.openhtmltopdf.css.style.CssContext

A dummy box representing one side of the margin area of a page.

Field Summary

Modifier and TypeField and Description
private Rectangle
Inherited from com.openhtmltopdf.render.BlockBox:
NO_BASELINEPOSITION_BOTHPOSITION_HORIZONTALLYPOSITION_VERTICALLY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BlockBox
protected int
public Rectangle
public int
public int
public Rectangle
protected int
public int
Inherited from com.openhtmltopdf.render.BlockBox:
addBoxIDappendPositioningInfocalcBaselinecalcBreakAtLineContextcalcCanvasLocationcalcChildLocationscalcChildPaintingInfocalcDimensionscalcDimensionscalcInitialBreakAtLinecalcInitialFloatedCanvasLocationcalcInlineBaselinecalcLayoutHeightcalcMinMaxWidthcheckPageContextcheckPopBfccheckPushBfccheckPushLayercollapseMarginscreateMarkerDatadumpensureChildrenfindLastNthLineBoxfindOffsetgetAvailableWidthgetChildrenContentTypegetChildrenHeightgetCSSFitToWidthgetCSSHeightgetCSSWidthgetCSSWidthgetDocumentParentgetExtraBoxDescriptiongetFirstLetterStylegetFirstLineStylegetFloatedBoxDatagetInlineContentgetLineBoxgetListCountergetMarkerDatagetMaxWidthgetMinWidthgetNextCollapsableSiblinggetPageClearancegetPaintingClipEdgegetPersistentBFCgetReplacedElementgetStaticEquivalentinitStaticPosisAllowHeightToShrinkisAutoHeightisBottomMarginCalculatedisContainsInlineContentisCurrentBreakAtLineContextisFixedWidthAdvisoryOnlyisFloatedisFromCaptionedTableisInlineisInlineBlockisInMainFlowisListItemisMayCollapseMarginsWithChildrenisMinMaxCalculatedisNeedPageClearisNeedsClipOnPaintisNeedsKeepWithInlineisPageBreakNeededBecauseOfMinHeightisReplacedisSkipWhenCollapsingMarginsisTopMarginCalculatedlayoutlayoutlayoutChildrenlayoutInlineChildrenpaintDebugOutlinepaintInlinepaintListMarkerpositionAbsolutepositionAbsoluteOnPagepropagateExtraSpaceresetresolveAutoMarginssetBottomMarginCalculatedsetChildrenContentTypesetChildrenHeightsetDimensionsCalculatedsetElementsetFirstLetterStylesetFirstLineStylesetFloatedBoxDatasetFromCaptionedTablesetInlineContentsetListCountersetMarkerDatasetMaxWidthsetMinMaxCalculatedsetMinWidthsetNeedPageClearsetNeedShrinkToFitCalculatationsetPersistentBFCsetReplacedElementsetStaticEquivalentsetTopMarginCalculatedshouldBeReplacedstyleTextstyleTexttoString

Field Detail

_boundsback to summary
private Rectangle _bounds

Constructor Detail

MarginBoxback to summary
public MarginBox(Rectangle bounds)

Method Detail

copyOfback to summary
public BlockBox copyOf()

Overrides com.openhtmltopdf.render.BlockBox.copyOf.

getContainingBlockWidthback to summary
protected int getContainingBlockWidth()

Overrides com.openhtmltopdf.render.Box.getContainingBlockWidth.

getContentAreaEdgeback to summary
public Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx)

Overrides com.openhtmltopdf.render.Box.getContentAreaEdge.

getContentWidthback to summary
public int getContentWidth()

Overrides com.openhtmltopdf.render.Box.getContentWidth.

getHeightback to summary
public int getHeight()

Overrides com.openhtmltopdf.render.Box.getHeight.

Doc from com.openhtmltopdf.render.Box.getHeight.

Uh oh! This refers to content height during layout but total height after layout!

getPaddingEdgeback to summary
public Rectangle getPaddingEdge(int left, int top, CssContext cssCtx)

Overrides com.openhtmltopdf.render.Box.getPaddingEdge.

getPaddingWidthback to summary
protected int getPaddingWidth(CssContext cssCtx)

Overrides com.openhtmltopdf.render.Box.getPaddingWidth.

getWidthback to summary
public int getWidth()

Overrides com.openhtmltopdf.render.Box.getWidth.