Package com.itextpdf.layout.element
Interface IElement
- All Superinterfaces:
-
IPropertyContainer
- All Known Subinterfaces:
-
IAbstractElement
,IBlockElement
,IFormField
,ILargeElement
,ILeafElement
- All Known Implementing Classes:
-
AbstractElement
,AbstractSelectField
,AreaBreak
,BlockElement
,Button
,Cell
,CheckBox
,ComboBoxField
,Div
,FormField
,Image
,InputField
,LineSeparator
,Link
,List
,ListBoxField
,ListItem
,MulticolContainer
,Paragraph
,Radio
,SignatureFieldAppearance
,SvgImage
,Tab
,Table
,Text
,TextArea
This class represents a layout element, i.e. a piece of content that will take up 'physical' space on a canvas or document. Its presence and positioning may influence the position of other
IElement
s on the layout surface.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a renderer subtree with root in the current element.Gets a renderer for this element.void
setNextRenderer
(IRenderer renderer) Overrides theIRenderer
instance which will be returned by the next call to thegetRenderer()
.Methods inherited from interface com.itextpdf.layout.IPropertyContainer
deleteOwnProperty, getDefaultProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setProperty
-
Method Details
-
setNextRenderer
Overrides theIRenderer
instance which will be returned by the next call to thegetRenderer()
.- Parameters:
-
renderer
- the renderer instance
-
getRenderer
IRenderer getRenderer()Gets a renderer for this element. Note that this method can be called more than once. By default each element should define its own renderer, but the renderer can be overridden bysetNextRenderer(IRenderer)
method call.- Returns:
- a renderer for this element
-
createRendererSubTree
IRenderer createRendererSubTree()Creates a renderer subtree with root in the current element. Compared togetRenderer()
, the renderer returned by this method should contain all the child renderers for children of the current element.- Returns:
- a renderer subtree for this element
-