Flying Saucer Project Release ${app.version}

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, POSITION_BOTH, POSITION_HORIZONTALLY, POSITION_VERTICALLY
 
Fields inherited from class org.xhtmlrenderer.render.Box
CHILDREN_FLUX, DONE, DUMP_LAYOUT, DUMP_RENDER, FLUX, NOTHING
 
Constructor Summary
ViewportBox(java.awt.Rectangle viewport)
           
 
Method Summary
 BlockBox copyOf()
           
 java.awt.Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx)
           
 int getContentWidth()
           
 int getHeight()
           
 java.awt.Rectangle getPaddingEdge(int left, int top, CssContext cssCtx)
           
 int getWidth()
           
 boolean isAutoHeight()
           
 
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, isBottomMarginCalculated, isContainsInlineContent, isCurrentBreakAtLineContext, isFloated, isFromCaptionedTable, isInline, isInMainFlow, isNeedPageClear, isNeedsClipOnPaint, isNeedsKeepWithInline, isReplaced, isTopMarginCalculated, layout, layout, paintDebugOutline, paintInline, paintListMarker, positionAbsolute, positionAbsoluteOnPage, reset, setBottomMarginCalculated, setChildrenContentType, setFirstLetterStyle, setFirstLineStyle, setFloatedBoxData, setFromCaptionedTable, setInlineContent, setListCounter, setMarkerData, setNeedPageClear, 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, exportText, find, forcePageBreakAfter, forcePageBreakBefore, getAbsX, getAbsY, getBorder, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildIterator, getChildren, getChildrenClipEdge, getContainingBlock, getContainingLayer, getEffBackgroundColor, getEffectiveWidth, getElement, getElementBoxes, getLayer, getLeftMBP, getMargin, getMarginBorderPadding, getMarginEdge, getMarginEdge, getNextSibling, getPadding, getPaintingBorderEdge, getPaintingInfo, getPaintingPaddingEdge, getParent, getPreviousSibling, getPseudoElementOrClass, getRelativeOffset, getRestyleTarget, getRightMBP, getState, getStyle, getTx, getTy, 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
 

Constructor Detail

ViewportBox

public ViewportBox(java.awt.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 java.awt.Rectangle getContentAreaEdge(int left,
                                             int top,
                                             CssContext cssCtx)
Overrides:
getContentAreaEdge in class Box

getPaddingEdge

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

copyOf

public BlockBox copyOf()
Overrides:
copyOf in class BlockBox

isAutoHeight

public boolean isAutoHeight()
Overrides:
isAutoHeight in class BlockBox

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home