Package com.itextpdf.forms.form.renderer
Class AbstractOneLineTextFieldRenderer
java.lang.Object
com.itextpdf.layout.renderer.AbstractRenderer
com.itextpdf.layout.renderer.BlockRenderer
com.itextpdf.forms.form.renderer.AbstractFormFieldRenderer
com.itextpdf.forms.form.renderer.AbstractTextFieldRenderer
com.itextpdf.forms.form.renderer.AbstractOneLineTextFieldRenderer
- All Implemented Interfaces:
IPropertyContainer
,IRenderer
- Direct Known Subclasses:
ButtonRenderer
,InputFieldRenderer
Abstract
AbstractTextFieldRenderer
for a single line of text content in a form field.-
Field Summary
Fields inherited from class com.itextpdf.forms.form.renderer.AbstractTextFieldRenderer
font
Fields inherited from class com.itextpdf.forms.form.renderer.AbstractFormFieldRenderer
flatRenderer
Fields inherited from class com.itextpdf.layout.renderer.AbstractRenderer
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, OVERLAP_EPSILON, parent, positionedRenderers, properties
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractOneLineTextFieldRenderer
(IFormField modelElement) Creates a newAbstractOneLineTextFieldRenderer
instance. -
Method Summary
Modifier and TypeMethodDescription(package private) void
cropContentLines
(List<LineRenderer> lines, Rectangle bBox) Crops the content lines.(package private) void
setContentHeight
(IRenderer flatRenderer, float height) Sets the content height.private void
Updates the paragraph height.Methods inherited from class com.itextpdf.forms.form.renderer.AbstractTextFieldRenderer
adjustNumberOfContentLines, adjustNumberOfContentLines, applyDefaultFieldProperties, approximateFontSize, calculateFittingFontSize, createParagraphRenderer, getHeightRowsBased, getLowestChildBottom, updateHtmlColsSizeBasedWidth, updatePdfFont
Methods inherited from class com.itextpdf.forms.form.renderer.AbstractFormFieldRenderer
adjustFieldLayout, applyAccessibilityProperties, applyAcroField, createFlatRenderer, draw, drawChildren, getConformance, getDefaultValue, getLang, getMinMaxWidth, getModelId, isFlatten, isLayoutBasedOnFlatRenderer, isRendererFit, layout, writeAcroFormFieldLangAttribute
Methods inherited from class com.itextpdf.layout.renderer.BlockRenderer
applyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, createOverflowRenderer, createRotationTransformInsideOccupiedArea, createSplitRenderer, endRotationIfApplied, getOccupiedAreaBBox, getResolvedFont
Methods inherited from class com.itextpdf.layout.renderer.AbstractRenderer
addAllProperties, addChild, alignChildHorizontally, allowLastYLineRecursiveExtraction, applyAbsolutePosition, applyAction, applyBorderBox, applyBorderBox, applyDestination, applyDestinationsAndAnnotation, applyLinkAnnotation, applyMargins, applyMargins, applyPaddings, applyPaddings, applyRelativePositioningTranslation, beginElementOpacityApplying, beginTransformationIfApplied, calculateAbsolutePdfBBox, calculateBBox, calculateShiftToPositionBBoxOfPointsAt, clipBackgroundArea, clipBackgroundArea, clipBorderArea, createXObject, deleteOwnProperty, deleteProperty, drawBackground, drawBorder, endElementOpacityApplying, endTransformationIfApplied, getBackgroundArea, getBorderAreaBBox, getBorderRadii, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getLastYLineRecursively, getMargins, getModelElement, getOccupiedArea, getOwnProperties, getOwnProperty, getPaddings, getParent, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, getPropertyAsTransparentColor, getPropertyAsUnitValue, hasAbsoluteUnitValue, hasOwnOrModelProperty, hasOwnProperty, hasProperty, hasRelativeUnitValue, initElementAreas, isAbsolutePosition, isBorderBoxSizing, isFirstOnRootArea, isFixedLayout, isFlushed, isKeepTogether, isNotFittingHeight, isNotFittingLayoutArea, isNotFittingWidth, isOverflowFit, isOverflowProperty, isOverflowProperty, isOverflowProperty, isPositioned, isRelativePosition, isStaticLayout, move, rectangleToPointsList, retrieveHeight, retrieveMaxHeight, retrieveMaxWidth, retrieveMinHeight, retrieveMinWidth, retrieveUnitValue, retrieveUnitValue, retrieveWidth, setBorders, setMinMaxWidthBasedOnFixedWidth, setParent, setProperty, toString, transformPoints, updateHeight, updateHeightsOnSplit, updateMaxHeight, updateMinHeight, updateWidth
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.itextpdf.layout.renderer.IRenderer
getNextRenderer
-
Constructor Details
-
AbstractOneLineTextFieldRenderer
AbstractOneLineTextFieldRenderer(IFormField modelElement) Creates a newAbstractOneLineTextFieldRenderer
instance.- Parameters:
modelElement
- the model element
-
-
Method Details
-
cropContentLines
Crops the content lines.- Parameters:
lines
- a list of linesbBox
- the bounding box
-
updateParagraphHeight
private void updateParagraphHeight()Updates the paragraph height. -
setContentHeight
Sets the content height.- Parameters:
flatRenderer
- the flat rendererheight
- the height
-