public class CellRenderer extends BlockRenderer
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, parent, positionedRenderers, properties
Constructor and Description |
---|
CellRenderer(Cell modelElement)
Creates a CellRenderer from its corresponding layout object.
|
Modifier and Type | Method and Description |
---|---|
protected Rectangle |
applyBorderBox(Rectangle rect, Border[] borders, boolean reverse)
Applies the given border box (borders) on the given rectangle
|
protected CellRenderer |
createOverflowRenderer(int layoutResult) |
protected CellRenderer |
createSplitRenderer(int layoutResult) |
void |
drawBackground(DrawContext drawContext)
Draws a background layer if it is defined by a key Property.BACKGROUND in either the layout element or this IRenderer itself.
|
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.
|
applyRotation, applyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, createRotationTransformInsideOccupiedArea, draw, endRotationIfApplied, getOccupiedAreaBBox, layout
addAllProperties, addChild, alignChildHorizontally, applyAbsolutePositioningTranslation, applyAction, applyBorderBox, applyDestination, applyMargins, applyMargins, applyPaddings, applyPaddings, calculateAbsolutePdfBBox, calculateBBox, deleteOwnProperty, deleteProperty, drawChildren, getBorderAreaBBox, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getMargins, getOccupiedArea, getOwnProperties, getOwnProperty, getPaddings, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, hasOwnOrModelProperty, hasOwnProperty, hasProperty, initElementAreas, isFixedLayout, isFlushed, isKeepTogether, isNotFittingHeight, isNotFittingLayoutArea, isPositioned, isRelativePosition, move, rectangleToPointsList, retrieveHeight, retrieveUnitValue, retrieveWidth, setBorders, setParent, setProperty, toString, transformPoints
public Cell getModelElement()
getModelElement
in interface IRenderer
getModelElement
in class AbstractRenderer
container of properties
protected CellRenderer createSplitRenderer(int layoutResult)
createSplitRenderer
in class BlockRenderer
protected CellRenderer createOverflowRenderer(int layoutResult)
createOverflowRenderer
in class BlockRenderer
public void drawBackground(DrawContext drawContext)
AbstractRenderer
Property.BACKGROUND
in either the layout element or this IRenderer
itself.
drawBackground
in class AbstractRenderer
drawContext
- the context (canvas, document, etc) of this drawing operation.
public void drawBorder(DrawContext drawContext)
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.
protected Rectangle applyBorderBox(Rectangle rect, Border[] borders, boolean reverse)
AbstractRenderer
applyBorderBox
in class AbstractRenderer
rect
- a rectangle paddings will be applied on.
borders
- the borders
to be applied on the given rectangle
reverse
- indicates whether the border box will be applied inside (in case of false) or outside (in case of false) the rectangle.
border box
of the renderer
public IRenderer getNextRenderer()
IRenderer.layout(LayoutContext)
is called more than once.
Copyright © 1998–2016 iText Group NV. All rights reserved.