public abstract class AbstractFormFieldRenderer extends BlockRenderer
BlockRenderer for form fields.| Modifier and Type | Field and Description |
|---|---|
protected IRenderer |
flatRenderer
The flat renderer.
|
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, OVERLAP_EPSILON, parent, positionedRenderers, properties| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
adjustFieldLayout(LayoutContext layoutContext)
Adjusts the field layout.
|
protected abstract void |
applyAcroField(DrawContext drawContext)
Applies the AcroField widget.
|
protected abstract IRenderer |
createFlatRenderer()
Creates the flat renderer instance.
|
void |
draw(DrawContext drawContext) |
void |
drawChildren(DrawContext drawContext) |
protected PdfAConformanceLevel |
getConformanceLevel(PdfDocument document)
Gets the conformance level.
|
String |
getDefaultValue()
Gets the default value of the form field.
|
protected String |
getLang()
Gets the accessibility language.
|
MinMaxWidth |
getMinMaxWidth() |
protected String |
getModelId()
Gets the model id.
|
boolean |
isFlatten()
Checks if form fields need to be flattened.
|
protected boolean |
isLayoutBasedOnFlatRenderer()
Determines, whether the layout is based in the renderer itself or flat renderer.
|
protected boolean |
isRendererFit(float availableWidth,
float availableHeight)
Checks if the renderer fits a certain width and height.
|
LayoutResult |
layout(LayoutContext layoutContext) |
protected void |
writeAcroFormFieldLangAttribute(PdfDocument pdfDoc) |
applyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, createOverflowRenderer, createRotationTransformInsideOccupiedArea, createSplitRenderer, endRotationIfApplied, getOccupiedAreaBBox, getResolvedFontaddAllProperties, 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, updateWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNextRendererprotected IRenderer flatRenderer
public boolean isFlatten()
public String getDefaultValue()
public LayoutResult layout(LayoutContext layoutContext)
layout in interface IRendererlayout in class BlockRendererpublic void draw(DrawContext drawContext)
draw in interface IRendererdraw in class BlockRendererpublic void drawChildren(DrawContext drawContext)
drawChildren in class AbstractRendererpublic MinMaxWidth getMinMaxWidth()
getMinMaxWidth in class BlockRendererprotected abstract void adjustFieldLayout(LayoutContext layoutContext)
layoutContext - layout contextprotected abstract IRenderer createFlatRenderer()
protected abstract void applyAcroField(DrawContext drawContext)
drawContext - the draw contextprotected String getModelId()
protected boolean isRendererFit(float availableWidth,
float availableHeight)
availableWidth - the available widthavailableHeight - the available heightprotected String getLang()
protected PdfAConformanceLevel getConformanceLevel(PdfDocument document)
document - the documentprotected boolean isLayoutBasedOnFlatRenderer()
true if layout is based on flat renderer, false otherwiseprotected void writeAcroFormFieldLangAttribute(PdfDocument pdfDoc)
Copyright © 1998–2024 Apryse Group NV. All rights reserved.