org.xhtmlrenderer.render
Class ViewportBox

java.lang.Object
  extended by org.xhtmlrenderer.render.Box
      extended by org.xhtmlrenderer.render.BlockBox
          extended by org.xhtmlrenderer.render.ViewportBox
All Implemented Interfaces:
InlinePaintable, Styleable

public class ViewportBox
extends BlockBox

A dummy box representing the viewport


Field Summary
 
Fields inherited from class org.xhtmlrenderer.render.BlockBox
CONTENT_BLOCK, CONTENT_EMPTY, CONTENT_INLINE, CONTENT_UNKNOWN, NO_BASELINE, POSITION_BOTH, POSITION_HORIZONTALLY, POSITION_VERTICALLY
 
Fields inherited from class org.xhtmlrenderer.render.Box
CHILDREN_FLUX, DONE, DUMP_LAYOUT, DUMP_RENDER, FLUX, LINE_SEPARATOR, NOTHING
 
Constructor Summary
ViewportBox(Rectangle viewport)
           
 
Method Summary
 BlockBox copyOf()
           
 Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx)
           
 int getContentWidth()
           
protected  int getCSSHeight(CssContext c)
           
 Rectangle getExtents()
           
 int getHeight()
           
 Rectangle getPaddingEdge(int left, int top, CssContext cssCtx)
           
protected  int getPaddingWidth(CssContext cssCtx)
           
 int getWidth()
           
 boolean isAutoHeight()
           
protected  boolean isInitialContainingBlock()
           
 
Methods inherited from class org.xhtmlrenderer.render.BlockBox
appendPositioningInfo, calcBaseline, calcBreakAtLineContext, calcCanvasLocation, calcChildLocations, calcChildPaintingInfo, calcDimensions, calcDimensions, calcInitialBreakAtLine, calcInitialFloatedCanvasLocation, calcInlineBaseline, calcLayoutHeight, calcMinMaxWidth, checkPageContext, createMarkerData, dump, ensureChildren, findLastNthLineBox, findOffset, getAvailableWidth, getChildrenContentType, getChildrenHeight, getCSSFitToWidth, getCSSWidth, getCSSWidth, getDocumentParent, getExtraBoxDescription, getFirstLetterStyle, getFirstLineStyle, getFloatedBoxData, getInlineContent, getLineBox, getListCounter, getMarkerData, getMaxWidth, getMinWidth, getPageClearance, getPaintingClipEdge, getPersistentBFC, getReplacedElement, getStaticEquivalent, initStaticPos, isAllowHeightToShrink, isBottomMarginCalculated, isContainsInlineContent, isCurrentBreakAtLineContext, isFixedWidthAdvisoryOnly, isFloated, isFromCaptionedTable, isInline, isInlineBlock, isInMainFlow, isMayCollapseMarginsWithChildren, isMinMaxCalculated, isNeedPageClear, isNeedsClipOnPaint, isNeedsKeepWithInline, isReplaced, isSkipWhenCollapsingMargins, isTopMarginCalculated, layout, layout, layoutChildren, layoutInlineChildren, paintDebugOutline, paintInline, paintListMarker, positionAbsolute, positionAbsoluteOnPage, propagateExtraSpace, reset, resolveAutoMargins, setBottomMarginCalculated, setChildrenContentType, setChildrenHeight, setDimensionsCalculated, setFirstLetterStyle, setFirstLineStyle, setFloatedBoxData, setFromCaptionedTable, setInlineContent, setListCounter, setMarkerData, setMaxWidth, setMinMaxCalculated, setMinWidth, setNeedPageClear, setNeedShrinkToFitCalculatation, setPersistentBFC, setReplacedElement, setStaticEquivalent, setTopMarginCalculated, styleText, styleText, toString
 
Methods inherited from class org.xhtmlrenderer.render.Box
addAllChildren, addChild, addChildForLayout, analyzePageBreaks, calcPaintingInfo, clearSelection, collectText, connectChildrenToCurrentLayer, crossesPageBreak, detach, dumpBoxes, exportPageBoxText, exportText, find, forcePageBreakAfter, forcePageBreakBefore, getAbsX, getAbsY, getBorder, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildIterator, getChildren, getChildrenClipEdge, getContainingBlock, getContainingBlockWidth, getContainingLayer, getEffBackgroundColor, getEffectiveWidth, getElement, getElementBoxes, getIndex, getLayer, getLeftMBP, getMargin, getMarginBorderPadding, getMarginEdge, getMarginEdge, getNext, getNextSibling, getPadding, getPaintingBorderEdge, getPaintingInfo, getPaintingPaddingEdge, getParent, getPrevious, getPreviousSibling, getPseudoElementOrClass, getRelativeOffset, getRestyleTarget, getRightMBP, getState, getStyle, getStyleMargin, getStyleMargin, getTx, getTy, getX, getY, initContainingLayer, intersects, isAnonymous, isBody, isContainedInMarginBox, isInDocumentFlow, isMarginAreaRoot, isRoot, isStyled, moveIfGreater, paintBackground, paintBorder, paintRootElementBackground, positionRelative, removeAllChildren, removeChild, removeChild, resetChildren, resetChildren, resetTopMargin, restyle, restyleChildren, selectAll, setAbsX, setAbsY, setAnonymous, setBoxDimensions, setContainingBlock, setContainingLayer, setContentWidth, setElement, setHeight, setIndex, setLayer, setLeftMBP, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setParent, setPseudoElementOrClass, setRelativeOffset, setRightMBP, setState, setStyle, setTx, setTy, setX, setY, stateToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViewportBox

public ViewportBox(Rectangle viewport)
Method Detail

getWidth

public int getWidth()
Overrides:
getWidth in class Box

getHeight

public int getHeight()
Overrides:
getHeight in class Box

getContentWidth

public int getContentWidth()
Overrides:
getContentWidth in class Box

getContentAreaEdge

public Rectangle getContentAreaEdge(int left,
                                    int top,
                                    CssContext cssCtx)
Overrides:
getContentAreaEdge in class Box

getPaddingEdge

public Rectangle getPaddingEdge(int left,
                                int top,
                                CssContext cssCtx)
Overrides:
getPaddingEdge in class Box

getPaddingWidth

protected int getPaddingWidth(CssContext cssCtx)
Overrides:
getPaddingWidth in class Box

copyOf

public BlockBox copyOf()
Overrides:
copyOf in class BlockBox

isAutoHeight

public boolean isAutoHeight()
Overrides:
isAutoHeight in class BlockBox

getCSSHeight

protected int getCSSHeight(CssContext c)
Overrides:
getCSSHeight in class BlockBox

isInitialContainingBlock

protected boolean isInitialContainingBlock()
Overrides:
isInitialContainingBlock in class BlockBox

getExtents

public Rectangle getExtents()


Copyright © 2013. All Rights Reserved.