Package com.itextpdf.layout.renderer
Class AnonymousInlineBoxRenderer
java.lang.Object
com.itextpdf.layout.renderer.AbstractRenderer
com.itextpdf.layout.renderer.BlockRenderer
com.itextpdf.layout.renderer.ParagraphRenderer
com.itextpdf.layout.renderer.AnonymousInlineBoxRenderer
- All Implemented Interfaces:
-
IPropertyContainer
,IRenderer
This class represents the
IRenderer
object for a AnonymousInlineBox
object.
-
Field Summary
Fields inherited from class com.itextpdf.layout.renderer.ParagraphRenderer
lines
Fields inherited from class com.itextpdf.layout.renderer.AbstractRenderer
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, OVERLAP_EPSILON, parent, positionedRenderers, properties
-
Constructor Summary
ConstructorsConstructorDescriptionAnonymousInlineBoxRenderer
(AnonymousInlineBox modelElement) Creates anAnonymousInlineBoxRenderer
from its corresponding layout model element. -
Method Summary
Modifier and TypeMethodDescriptionT1 getDefaultProperty
(int property) Gets the default property from this entity.Gets a new instance of this class to be used as a next renderer, after this renderer is used, ifParagraphRenderer.layout(LayoutContext)
is called more than once.protected Float
Retrieve the resolved height declaration.Methods inherited from class com.itextpdf.layout.renderer.ParagraphRenderer
createOverflowRenderer, createOverflowRenderer, createSplitRenderer, directLayout, drawChildren, getFirstYLineRecursively, getLastYLineRecursively, getLines, getMinMaxWidth, layout, move, split, toString
Methods inherited from class com.itextpdf.layout.renderer.BlockRenderer
applyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, createRotationTransformInsideOccupiedArea, createSplitRenderer, draw, endRotationIfApplied, getMinMaxWidth, 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, 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, rectangleToPointsList, retrieveHeight, retrieveMaxHeight, retrieveMaxWidth, retrieveMinHeight, retrieveMinWidth, retrieveUnitValue, retrieveUnitValue, retrieveWidth, setBorders, setMinMaxWidthBasedOnFixedWidth, setParent, setProperty, transformPoints, updateHeight, updateHeightsOnSplit, updateMaxHeight, updateMinHeight, updateWidth
-
Constructor Details
-
AnonymousInlineBoxRenderer
Creates anAnonymousInlineBoxRenderer
from its corresponding layout model element.- Parameters:
-
modelElement
- theAnonymousInlineBox
layout model element to render
-
-
Method Details
-
getNextRenderer
Gets a new instance of this class to be used as a next renderer, after this renderer is used, ifParagraphRenderer.layout(LayoutContext)
is called more than once.If a renderer overflows to the next area, iText uses this method to create a renderer for the overflow part. So if one wants to extend
ParagraphRenderer
, one should override this method: otherwise the default method will be used and thus the default rather than the custom renderer will be created.- Specified by:
-
getNextRenderer
in interfaceIRenderer
- Overrides:
-
getNextRenderer
in classParagraphRenderer
- Returns:
- new renderer instance
-
retrieveResolvedDeclaredHeight
Retrieve the resolved height declaration. If it has a relative height declaration,AbstractRenderer.retrieveHeight()
is called.- Overrides:
-
retrieveResolvedDeclaredHeight
in classAbstractRenderer
- Returns:
-
null
if no height declaration is set on the parent, or if its own height declaration cannot be resolved. The float value of the resolved height otherwise
-
getDefaultProperty
publicT1 getDefaultProperty (int property) Gets the default property from this entity.- Specified by:
-
getDefaultProperty
in interfaceIPropertyContainer
- Overrides:
-
getDefaultProperty
in classParagraphRenderer
- Type Parameters:
-
T1
- the return type associated with the property - Parameters:
-
property
- the property to be retrieved - Returns:
-
the default property value. If the default property is not defined,
null
will be returned
-