Package com.itextpdf.layout.properties
Class ContinuousContainer
- java.lang.Object
-
- com.itextpdf.layout.properties.ContinuousContainer
-
public final class ContinuousContainer extends java.lang.ObjectThis class is used to store properties of the renderer that are needed to be removed/reapplied. THis is used for processing continuous container property. This behavior is used when we want to simulate a continuous appearance over multiple pages. This means that only for the first and last page the margins, paddings and borders are applied. On the first page the top properties are applied and on the last page the bottom properties are applied.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMap<java.lang.Integer,java.lang.Object>propertiesprivate static int[]PROPERTIES_NEEDED_FOR_CONTINUOUS_CONTAINERProperties needed to be removed/added for continuous container.
-
Constructor Summary
Constructors Modifier Constructor Description privateContinuousContainer(IRenderer renderer)Creates a newContinuousContainerinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclearPropertiesFromOverFlowRenderer(IPropertyContainer overFlowRenderer)Removes properties from the overflow renderer that are not needed for continuous container.private static voidclearPropertiesFromSplitRenderer(AbstractRenderer blockRenderer)voidreApplyProperties(AbstractRenderer blockRenderer)Re adds the properties that were removed from the overflow renderer.static voidsetupContinuousContainerIfNeeded(AbstractRenderer blockRenderer)Sets up the needed values in the model element of the renderer.voidupdateValueOfSavedProperty(int property, java.lang.Object value)Updates values of the saved property.
-
-
-
Constructor Detail
-
ContinuousContainer
private ContinuousContainer(IRenderer renderer)
Creates a newContinuousContainerinstance.- Parameters:
renderer- the renderer that is used to get properties from.
-
-
Method Detail
-
clearPropertiesFromOverFlowRenderer
public static void clearPropertiesFromOverFlowRenderer(IPropertyContainer overFlowRenderer)
Removes properties from the overflow renderer that are not needed for continuous container.- Parameters:
overFlowRenderer- the renderer that is used to remove properties from.
-
setupContinuousContainerIfNeeded
public static void setupContinuousContainerIfNeeded(AbstractRenderer blockRenderer)
Sets up the needed values in the model element of the renderer.- Parameters:
blockRenderer- the renderer that is used to set up continuous container.
-
clearPropertiesFromSplitRenderer
private static void clearPropertiesFromSplitRenderer(AbstractRenderer blockRenderer)
-
reApplyProperties
public void reApplyProperties(AbstractRenderer blockRenderer)
Re adds the properties that were removed from the overflow renderer.- Parameters:
blockRenderer- the renderer that is used to reapply properties.
-
updateValueOfSavedProperty
public void updateValueOfSavedProperty(int property, java.lang.Object value)Updates values of the saved property.- Parameters:
property- the property to be updatedvalue- the new value
-
-