Package com.itextpdf.layout.element
Class AreaBreak
java.lang.Object
- All Implemented Interfaces:
-
IAbstractElement
,IElement
,IPropertyContainer
A layout object that terminates the current content area and creates a new one. If no
PageSize
is given, the new content area will have the same size as the current one.
-
Field Summary
Fields inherited from class com.itextpdf.layout.element.AbstractElement
childElements, nextRenderer, styles
Fields inherited from class com.itextpdf.layout.ElementPropertyContainer
properties
-
Constructor Summary
ConstructorDescriptionCreates an AreaBreak.Creates an AreaBreak.AreaBreak
(AreaBreakType areaBreakType) Creates an AreaBreak that terminates a specified area type. -
Method Summary
Modifier and TypeMethodDescriptionGets the page size.getType()
Gets the type of area that this AreaBreak will terminate.protected IRenderer
Creates new renderer instance.void
setPageSize
(PageSize pageSize) Sets the page size.Methods inherited from class com.itextpdf.layout.element.AbstractElement
addStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumber
Methods inherited from class com.itextpdf.layout.ElementPropertyContainer
deleteOwnProperty, getDefaultProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.itextpdf.layout.IPropertyContainer
deleteOwnProperty, getDefaultProperty, getOwnProperty, hasOwnProperty, setProperty
-
Field Details
-
pageSize
-
-
Constructor Details
-
AreaBreak
public AreaBreak()Creates an AreaBreak. The new content area will have the same size as the current one. -
AreaBreak
Creates an AreaBreak that terminates a specified area type.- Parameters:
-
areaBreakType
- anarea break type
-
AreaBreak
Creates an AreaBreak. The new content area will have the specified page size.- Parameters:
-
pageSize
- the size of the new content area
-
-
Method Details
-
getPageSize
Gets the page size.- Returns:
-
the
page size
of the next content area.
-
setPageSize
Sets the page size.- Parameters:
-
pageSize
- the newpage size
of the next content area.
-
getType
Gets the type of area that this AreaBreak will terminate.- Returns:
-
the current
area break type
-
makeNewRenderer
Description copied from class:AbstractElement
Creates new renderer instance.- Specified by:
-
makeNewRenderer
in classAbstractElement<AreaBreak>
- Returns:
-
new
IRenderer
-