public abstract class AbstractTextFieldRenderer extends AbstractFormFieldRenderer
BlockRenderer for form fields with text content.
| Modifier and Type | Field and Description |
|---|---|
protected com.itextpdf.kernel.font.PdfFont |
font
The font to be used for the text.
|
flatRenderer| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTextFieldRenderer(IFormField modelElement)
Creates a new AbstractTextFieldRenderer instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustNumberOfContentLines(List
Adjust number of content lines.
|
protected void |
applyDefaultFieldProperties(com.itextpdf.forms.fields.PdfFormField inputField)
Applies the default field properties.
|
protected com.itextpdf.layout.renderer.IRenderer |
createParagraphRenderer(String defaultValue)
Creates a paragraph renderer.
|
protected void |
updatePdfFont(com.itextpdf.layout.renderer.ParagraphRenderer renderer)
Updates the font.
|
adjustFieldLayout, applyAcroField, createFlatRenderer, draw, drawChildren, getContentWidth, getDefaultValue, getMinMaxWidth, getModelId, isFlatten, isRendererFit, layoutapplyBordersPaddingsMargins, applyRotation, applyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, correctPositionedLayout, createOverflowRenderer, createRotationTransformInsideOccupiedArea, createSplitRenderer, endRotationIfApplied, getOccupiedAreaBBoxaddAllProperties, addChild, alignChildHorizontally, alignChildHorizontally, applyAbsolutePosition, applyAction, applyBorderBox, applyBorderBox, applyDestination, applyDestinationsAndAnnotation, applyLinkAnnotation, applyMargins, applyMargins, applyPaddings, applyPaddings, applyRelativePositioningTranslation, beginElementOpacityApplying, beginTranformationIfApplied, calculateAbsolutePdfBBox, calculateBBox, calculateShiftToPositionBBoxOfPointsAt, clipBackgroundArea, clipBorderArea, deleteOwnProperty, deleteProperty, drawBackground, drawBorder, endElementOpacityApplying, endTranformationIfApplied, getBorderAreaBBox, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getLastYLineRecursively, getMargins, getModelElement, getOccupiedArea, getOwnProperties, getOwnProperty, getPaddings, getParent, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, getPropertyAsTransparentColor, hasAbsoluteUnitValue, hasOwnOrModelProperty, hasOwnProperty, hasProperty, initElementAreas, isAbsolutePosition, isFixedLayout, isFlushed, isKeepTogether, isNotFittingHeight, isNotFittingLayoutArea, isNotFittingWidth, isPositioned, isRelativePosition, isStaticLayout, move, overrideHeightProperties, rectangleToPointsList, retrieveHeight, retrieveMaxHeight, retrieveMaxWidth, retrieveMinHeight, retrieveMinWidth, retrieveUnitValue, retrieveWidth, setBorders, setMinMaxWidthBasedOnFixedWidth, setParent, setProperty, toString, transformPointsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAscent, getDescentprotected AbstractTextFieldRenderer(IFormField modelElement)
AbstractTextFieldRenderer instance.
modelElement - the model element
protected com.itextpdf.layout.renderer.IRenderer createParagraphRenderer(String defaultValue)
defaultValue - the default value
protected void adjustNumberOfContentLines(Listlines, com.itextpdf.kernel.geom.Rectangle bBox, int linesNumber)
lines - the lines that need to be rendered
bBox - the bounding box
linesNumber - the number of lines
protected void applyDefaultFieldProperties(com.itextpdf.forms.fields.PdfFormField inputField)
inputField - the input field
protected void updatePdfFont(com.itextpdf.layout.renderer.ParagraphRenderer renderer)
renderer - the renderer
Copyright © 1998–2019 iText Group NV. All rights reserved.