public class CellRenderer extends BlockRenderer
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, parent, positionedRenderers, properties| Constructor and Description |
|---|
CellRenderer(Cell modelElement) |
| Modifier and Type | Method and Description |
|---|---|
protected CellRenderer |
createOverflowRenderer(int layoutResult) |
protected CellRenderer |
createSplitRenderer(int layoutResult) |
void |
drawBorder(DrawContext drawContext)
Performs the drawing operation for the border of this renderer, if defined by any of the Property.BORDER values in either the layout element or this IRenderer itself.
|
Cell |
getModelElement()
Gets the model element associated with this renderer.
|
IRenderer |
getNextRenderer()
Gets a new instance of this class to be used as a next renderer, after this renderer is used, if IRenderer.layout(LayoutContext) is called more than once.
|
LayoutResult |
layout(LayoutContext layoutContext)
This method simulates positioning of the renderer, including all of its children, and returns the LayoutResult, representing the layout result, including occupied area, status, i.e.
|
applyRotation, applyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, draw, endRotationIfApplied, getOccupiedAreaBBoxaddAllProperties, addChild, alignChildHorizontally, applyAbsolutePositioningTranslation, applyAction, applyBorderBox, applyDestination, applyMargins, applyPaddings, deleteOwnProperty, deleteProperty, drawBackground, drawChildren, getBorderAreaBBox, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getOccupiedArea, getOwnProperties, getOwnProperty, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, hasOwnProperty, hasProperty, initElementAreas, isFixedLayout, isFlushed, isNotFittingHeight, isPositioned, move, retrieveHeight, retrieveUnitValue, retrieveWidth, setBorders, setParent, setProperty, toStringpublic CellRenderer(Cell modelElement)
public Cell getModelElement()
IRenderer
getModelElement in interface IRenderer
getModelElement in class AbstractRenderer
container of properties
public LayoutResult layout(LayoutContext layoutContext)
IRenderer
LayoutResult, representing the layout result, including occupied area, status, i.e. if there was enough place to fit the renderer subtree, etc. LayoutResult can be extended to return custom layout results for custom elements, e.g. TextRenderer uses TextLayoutResult as its result. This method can be called standalone to learn how much area the renderer subtree needs, or can be called before IRenderer.draw(DrawContext), to prepare the renderer to be flushed to the output stream.
layout in interface IRenderer
layout in class BlockRenderer
layoutContext - the description of layout area and any other additional information
protected CellRenderer createSplitRenderer(int layoutResult)
createSplitRenderer in class BlockRenderer
protected CellRenderer createOverflowRenderer(int layoutResult)
createOverflowRenderer in class BlockRenderer
public void drawBorder(DrawContext drawContext)
AbstractRenderer
Property.BORDER values in either the layout element or this IRenderer itself.
drawBorder in class AbstractRenderer
drawContext - the context (canvas, document, etc) of this drawing operation.
public IRenderer getNextRenderer()
IRenderer
IRenderer.layout(LayoutContext) is called more than once.
Copyright © 1998–2016 iText Group NV. All rights reserved.