public static class BackgroundImage.Builder extends Object
BackgroundImage
builder class.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BackgroundImage |
build()
Builds new BackgroundImage using set fields.
|
BackgroundImage.Builder |
setBackgroundBlendMode(BlendMode blendMode)
Set the image's blend mode.
|
BackgroundImage.Builder |
setBackgroundClip(BackgroundBox clip)
Sets background-clip.
|
BackgroundImage.Builder |
setBackgroundOrigin(BackgroundBox origin)
Sets background-origin.
|
BackgroundImage.Builder |
setBackgroundPosition(BackgroundPosition position)
Sets background-position.
|
BackgroundImage.Builder |
setBackgroundRepeat(BackgroundRepeat repeat)
Sets background-repeat.
|
BackgroundImage.Builder |
setBackgroundSize(BackgroundSize backgroundSize)
Set the image's backgroundSize.
|
BackgroundImage.Builder |
setImage(PdfXObject image)
Sets image.
|
BackgroundImage.Builder |
setLinearGradientBuilder(AbstractLinearGradientBuilder linearGradientBuilder)
Sets linearGradientBuilder.
|
public BackgroundImage.Builder setImage(PdfXObject image)
Makes linearGradientBuilder null as far as we can't have them both.
image
- PdfXObject
to be set.
BackgroundImage.Builder
.
public BackgroundImage.Builder setLinearGradientBuilder(AbstractLinearGradientBuilder linearGradientBuilder)
Makes image null as far as we can't have them both. It also makes background-repeat: no-repeat.
linearGradientBuilder
- AbstractLinearGradientBuilder
to be set.
BackgroundImage.Builder
.
public BackgroundImage.Builder setBackgroundRepeat(BackgroundRepeat repeat)
repeat
- BackgroundRepeat
to be set.
BackgroundImage.Builder
.
public BackgroundImage.Builder setBackgroundPosition(BackgroundPosition position)
position
- BackgroundPosition
to be set.
BackgroundImage.Builder
.
public BackgroundImage.Builder setBackgroundBlendMode(BlendMode blendMode)
blendMode
- BlendMode
to be set.
BackgroundImage.Builder
.
public BackgroundImage.Builder setBackgroundSize(BackgroundSize backgroundSize)
backgroundSize
- BackgroundSize
to be set.
BackgroundImage.Builder
.
public BackgroundImage.Builder setBackgroundClip(BackgroundBox clip)
clip
- BackgroundBox
to be set.
BackgroundImage.Builder
.
public BackgroundImage.Builder setBackgroundOrigin(BackgroundBox origin)
origin
- BackgroundBox
to be set.
BackgroundImage.Builder
.
public BackgroundImage build()
BackgroundImage
using set fields.
BackgroundImage
.
Copyright © 1998–2021 iText Group NV. All rights reserved.