public class ButtonRenderer extends AbstractOneLineTextFieldRenderer
AbstractTextFieldRenderer implementation for buttons.fontflatRendererchildRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, OVERLAP_EPSILON, parent, positionedRenderers, properties| Constructor and Description |
|---|
ButtonRenderer(Button modelElement)
Creates a new
ButtonRenderer instance. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustFieldLayout(LayoutContext layoutContext)
Adjusts the field layout.
|
protected void |
applyAcroField(DrawContext drawContext)
Applies the AcroField widget.
|
protected IRenderer |
createFlatRenderer()
Creates the flat renderer instance.
|
String |
getDefaultValue()
Gets the default value of the form field.
|
protected Float |
getLastYLineRecursively() |
IRenderer |
getNextRenderer() |
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.
|
applyAccessibilityProperties, draw, drawChildren, getConformance, getLang, getMinMaxWidth, getModelId, isFlatten, layout, writeAcroFormFieldLangAttributeapplyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, createOverflowRenderer, createRotationTransformInsideOccupiedArea, createSplitRenderer, endRotationIfApplied, getMinMaxWidth, 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, 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, retrieveResolvedDeclaredHeight, retrieveUnitValue, retrieveUnitValue, retrieveWidth, setBorders, setMinMaxWidthBasedOnFixedWidth, setParent, setProperty, toString, transformPoints, updateHeight, updateHeightsOnSplit, updateMaxHeight, updateMinHeight, updateWidthpublic ButtonRenderer(Button modelElement)
ButtonRenderer instance.modelElement - the model elementprotected void adjustFieldLayout(LayoutContext layoutContext)
adjustFieldLayout in class AbstractFormFieldRendererlayoutContext - layout contextprotected boolean isLayoutBasedOnFlatRenderer()
isLayoutBasedOnFlatRenderer in class AbstractFormFieldRenderertrue if layout is based on flat renderer, false otherwise.protected Float getLastYLineRecursively()
getLastYLineRecursively in class AbstractRendererprotected IRenderer createFlatRenderer()
createFlatRenderer in class AbstractFormFieldRendererpublic IRenderer getNextRenderer()
public String getDefaultValue()
getDefaultValue in class AbstractFormFieldRendererprotected boolean isRendererFit(float availableWidth,
float availableHeight)
isRendererFit in class AbstractFormFieldRendereravailableWidth - the available widthavailableHeight - the available heightprotected void applyAcroField(DrawContext drawContext)
applyAcroField in class AbstractFormFieldRendererdrawContext - the draw contextCopyright © 1998–2025 Apryse Group NV. All rights reserved.