public class ButtonRenderer extends AbstractOneLineTextFieldRenderer
AbstractOneLineTextFieldRenderer implementation for buttons.
baselinefontflatRenderer| Constructor and Description |
|---|
ButtonRenderer(Button modelElement)
Creates a new ButtonRenderer instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustFieldLayout()
Adjusts the field layout.
|
protected void |
applyAcroField(com.itextpdf.layout.renderer.DrawContext drawContext)
Applies the AcroField widget.
|
protected com.itextpdf.layout.renderer.IRenderer |
createFlatRenderer()
Creates the flat renderer instance.
|
com.itextpdf.layout.renderer.IRenderer |
getNextRenderer() |
protected boolean |
isRendererFit(float availableWidth, float availableHeight)
Checks if the renderer fits a certain width and height.
|
cropContentLines, getAscent, getDescent, updateParagraphHeightadjustNumberOfContentLines, applyDefaultFieldProperties, createParagraphRenderer, updatePdfFontdraw, drawChildren, getContentWidth, getDefaultValue, getMinMaxWidth, getModelId, isFlatten, 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, waitpublic ButtonRenderer(Button modelElement)
ButtonRenderer instance.
modelElement - the model element
public com.itextpdf.layout.renderer.IRenderer getNextRenderer()
protected void adjustFieldLayout()
AbstractFormFieldRenderer
adjustFieldLayout in class AbstractFormFieldRenderer
protected com.itextpdf.layout.renderer.IRenderer createFlatRenderer()
AbstractFormFieldRenderer
createFlatRenderer in class AbstractFormFieldRenderer
protected void applyAcroField(com.itextpdf.layout.renderer.DrawContext drawContext)
AbstractFormFieldRenderer
applyAcroField in class AbstractFormFieldRenderer
drawContext - the draw context
protected boolean isRendererFit(float availableWidth,
float availableHeight)
AbstractFormFieldRenderer
isRendererFit in class AbstractFormFieldRenderer
availableWidth - the available width
availableHeight - the available height
Copyright © 1998–2019 iText Group NV. All rights reserved.