Package com.itextpdf.layout.properties
Class BackgroundImage.Builder
java.lang.Object
com.itextpdf.layout.properties.BackgroundImage.Builder
- Enclosing class:
- BackgroundImage
BackgroundImage
builder class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds newBackgroundImage
using 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.
-
Constructor Details
-
Builder
public Builder()Creates a newBackgroundImage.Builder
instance.
-
-
Method Details
-
setImage
Sets image.Makes linearGradientBuilder null as far as we can't have them both.
- Parameters:
-
image
-PdfXObject
to 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
-AbstractLinearGradientBuilder
to be set. - Returns:
-
this
BackgroundImage.Builder
.
-
setBackgroundRepeat
Sets background-repeat.- Parameters:
-
repeat
-BackgroundRepeat
to be set. - Returns:
-
this
BackgroundImage.Builder
.
-
setBackgroundPosition
Sets background-position.- Parameters:
-
position
-BackgroundPosition
to be set. - Returns:
-
this
BackgroundImage.Builder
.
-
setBackgroundBlendMode
Set the image's blend mode.- Parameters:
-
blendMode
-BlendMode
to be set. - Returns:
-
this
BackgroundImage.Builder
.
-
setBackgroundSize
Set the image's backgroundSize.- Parameters:
-
backgroundSize
-BackgroundSize
to be set. - Returns:
-
this
BackgroundImage.Builder
.
-
setBackgroundClip
Sets background-clip.- Parameters:
-
clip
-BackgroundBox
to be set. - Returns:
-
this
BackgroundImage.Builder
.
-
setBackgroundOrigin
Sets background-origin.- Parameters:
-
origin
-BackgroundBox
to be set. - Returns:
-
this
BackgroundImage.Builder
.
-
build
Builds newBackgroundImage
using set fields.- Returns:
-
new
BackgroundImage
.
-