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
FieldsFields inherited from class AbstractElement
childElements, nextRenderer, stylesFields inherited from class ElementPropertyContainer
properties -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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 IRendererCreates a new renderer instance.voidsetPageSize(PageSize pageSize) Sets the page size.Methods inherited from class AbstractElement
addStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumberMethods inherited from class 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, simulateItalicMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
setPageSize
-
getType
Gets the type of area that this AreaBreak will terminate.- Returns:
- the current
area break type
-
makeNewRenderer
Description copied from class:AbstractElementCreates a new renderer instance.- Specified by:
makeNewRendererin classAbstractElement<AreaBreak>- Returns:
- new
IRenderer
-