Class BackgroundImage.Builder
java.lang.Object
com.itextpdf.layout.properties.BackgroundImage.Builder
- Enclosing class:
BackgroundImage
BackgroundImage builder class.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BackgroundSizeprivate BlendModeprivate BackgroundBoxprivate PdfXObjectprivate AbstractLinearGradientBuilderprivate BackgroundBoxprivate BackgroundPositionprivate BackgroundRepeat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds newBackgroundImageusing set fields.setBackgroundBlendMode(BlendMode blendMode) Set the image's blend mode.Sets background-clip.setBackgroundOrigin(BackgroundBox origin) Sets background-origin.setBackgroundPosition(BackgroundPosition position) Sets background-position.setBackgroundRepeat(BackgroundRepeat repeat) Sets background-repeat.setBackgroundSize(BackgroundSize backgroundSize) Set the image's backgroundSize.setImage(PdfXObject image) Sets image.setLinearGradientBuilder(AbstractLinearGradientBuilder linearGradientBuilder) Sets linearGradientBuilder.
-
Field Details
-
image
-
linearGradientBuilder
-
position
-
repeat
-
blendMode
-
backgroundSize
-
clip
-
origin
-
-
Constructor Details
-
Builder
public Builder()Creates a newBackgroundImage.Builderinstance.
-
-
Method Details
-
setImage
Sets image.Makes linearGradientBuilder null as far as we can't have them both.
- Parameters:
image-PdfXObjectto be set.- Returns:
- this
BackgroundImage.Builder.
-
setLinearGradientBuilder
public BackgroundImage.Builder setLinearGradientBuilder(AbstractLinearGradientBuilder linearGradientBuilder) Sets linearGradientBuilder.Makes image null as far as we can't have them both. It also makes background-repeat: no-repeat.
- Parameters:
linearGradientBuilder-AbstractLinearGradientBuilderto be set.- Returns:
- this
BackgroundImage.Builder.
-
setBackgroundRepeat
Sets background-repeat.- Parameters:
repeat-BackgroundRepeatto be set.- Returns:
- this
BackgroundImage.Builder.
-
setBackgroundPosition
Sets background-position.- Parameters:
position-BackgroundPositionto be set.- Returns:
- this
BackgroundImage.Builder.
-
setBackgroundBlendMode
Set the image's blend mode.- Parameters:
blendMode-BlendModeto be set.- Returns:
- this
BackgroundImage.Builder.
-
setBackgroundSize
Set the image's backgroundSize.- Parameters:
backgroundSize-BackgroundSizeto be set.- Returns:
- this
BackgroundImage.Builder.
-
setBackgroundClip
Sets background-clip.- Parameters:
clip-BackgroundBoxto be set.- Returns:
- this
BackgroundImage.Builder.
-
setBackgroundOrigin
Sets background-origin.- Parameters:
origin-BackgroundBoxto be set.- Returns:
- this
BackgroundImage.Builder.
-
build
Builds newBackgroundImageusing set fields.- Returns:
- new
BackgroundImage.
-