Top Description Fields Constructors Methods
com.openhtmltopdf.render

public Class ViewportBox

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

A dummy box representing the viewport

Field Summary

Modifier and TypeField and Description
private final 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
public Rectangle
public int
protected int
public Rectangle
public int
public Rectangle
protected int
public int
public boolean
protected boolean
Inherited from com.openhtmltopdf.render.BlockBox:
addBoxIDappendPositioningInfocalcBaselinecalcBreakAtLineContextcalcCanvasLocationcalcChildLocationscalcChildPaintingInfocalcDimensionscalcDimensionscalcInitialBreakAtLinecalcInitialFloatedCanvasLocationcalcInlineBaselinecalcLayoutHeightcalcMinMaxWidthcheckPageContextcheckPopBfccheckPushBfccheckPushLayercollapseMarginscreateMarkerDatadumpensureChildrenfindLastNthLineBoxfindOffsetgetAvailableWidthgetChildrenContentTypegetChildrenHeightgetCSSFitToWidthgetCSSWidthgetCSSWidthgetDocumentParentgetExtraBoxDescriptiongetFirstLetterStylegetFirstLineStylegetFloatedBoxDatagetInlineContentgetLineBoxgetListCountergetMarkerDatagetMaxWidthgetMinWidthgetNextCollapsableSiblinggetPageClearancegetPaintingClipEdgegetPersistentBFCgetReplacedElementgetStaticEquivalentinitStaticPosisAllowHeightToShrinkisBottomMarginCalculatedisContainsInlineContentisCurrentBreakAtLineContextisFixedWidthAdvisoryOnlyisFloatedisFromCaptionedTableisInlineisInlineBlockisInMainFlowisListItemisMayCollapseMarginsWithChildrenisMinMaxCalculatedisNeedPageClearisNeedsClipOnPaintisNeedsKeepWithInlineisPageBreakNeededBecauseOfMinHeightisReplacedisSkipWhenCollapsingMarginsisTopMarginCalculatedlayoutlayoutlayoutChildrenlayoutInlineChildrenpaintDebugOutlinepaintInlinepaintListMarkerpositionAbsolutepositionAbsoluteOnPagepropagateExtraSpaceresetresolveAutoMarginssetBottomMarginCalculatedsetChildrenContentTypesetChildrenHeightsetDimensionsCalculatedsetElementsetFirstLetterStylesetFirstLineStylesetFloatedBoxDatasetFromCaptionedTablesetInlineContentsetListCountersetMarkerDatasetMaxWidthsetMinMaxCalculatedsetMinWidthsetNeedPageClearsetNeedShrinkToFitCalculatationsetPersistentBFCsetReplacedElementsetStaticEquivalentsetTopMarginCalculatedshouldBeReplacedstyleTextstyleTexttoString

Field Detail

_viewportback to summary
private final Rectangle _viewport

Constructor Detail

ViewportBoxback to summary
public ViewportBox(Rectangle viewport)

Method Detail

copyOfback to summary
public BlockBox copyOf()

Overrides com.openhtmltopdf.render.BlockBox.copyOf.

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.

getCSSHeightback to summary
protected int getCSSHeight(CssContext c)

Overrides com.openhtmltopdf.render.BlockBox.getCSSHeight.

getExtentsback to summary
public Rectangle getExtents()
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.

isAutoHeightback to summary
public boolean isAutoHeight()

Overrides com.openhtmltopdf.render.BlockBox.isAutoHeight.

isInitialContainingBlockback to summary
protected boolean isInitialContainingBlock()

Overrides com.openhtmltopdf.render.Box.isInitialContainingBlock.