Package com.itextpdf.layout.element
Class AreaBreak
- java.lang.Object
-
- com.itextpdf.commons.actions.sequence.AbstractIdentifiableElement
-
- com.itextpdf.layout.ElementPropertyContainer<T>
-
- com.itextpdf.layout.element.AbstractElement<AreaBreak>
-
- com.itextpdf.layout.element.AreaBreak
-
- All Implemented Interfaces:
IAbstractElement,IElement,IPropertyContainer
public class AreaBreak extends AbstractElement<AreaBreak>
A layout object that terminates the current content area and creates a new one. If noPageSizeis given, the new content area will have the same size as the current one.
-
-
Field Summary
Fields Modifier and Type Field Description protected PageSizepageSize-
Fields inherited from class com.itextpdf.layout.element.AbstractElement
childElements, nextRenderer, styles
-
Fields inherited from class com.itextpdf.layout.ElementPropertyContainer
properties
-
-
Constructor Summary
Constructors Constructor Description AreaBreak()Creates an AreaBreak.AreaBreak(PageSize pageSize)Creates an AreaBreak.AreaBreak(AreaBreakType areaBreakType)Creates an AreaBreak that terminates a specified area type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PageSizegetPageSize()Gets the page size.AreaBreakTypegetType()Gets the type of area that this AreaBreak will terminate.protected IRenderermakeNewRenderer()Creates a new renderer instance.voidsetPageSize(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, getTransparentStrokeColor, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDashPattern, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeColor, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing, simulateBold, simulateItalic
-
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 Detail
-
pageSize
protected PageSize pageSize
-
-
Constructor Detail
-
AreaBreak
public AreaBreak()
Creates an AreaBreak. The new content area will have the same size as the current one.
-
AreaBreak
public AreaBreak(AreaBreakType areaBreakType)
Creates an AreaBreak that terminates a specified area type.- Parameters:
areaBreakType- anarea break type
-
AreaBreak
public AreaBreak(PageSize pageSize)
Creates an AreaBreak. The new content area will have the specified page size.- Parameters:
pageSize- the size of the new content area
-
-
Method Detail
-
getPageSize
public PageSize getPageSize()
Gets the page size.- Returns:
- the
page sizeof the next content area.
-
setPageSize
public void setPageSize(PageSize pageSize)
Sets the page size.- Parameters:
pageSize- the newpage sizeof the next content area.
-
getType
public AreaBreakType getType()
Gets the type of area that this AreaBreak will terminate.- Returns:
- the current
area break type
-
makeNewRenderer
protected IRenderer makeNewRenderer()
Description copied from class:AbstractElementCreates a new renderer instance.- Specified by:
makeNewRendererin classAbstractElement<AreaBreak>- Returns:
- new
IRenderer
-
-