Class ImageThumbnailGeneratorConstraints.Builder
java.lang.Object
de.xima.fc.common.image.ImageThumbnailGeneratorConstraints.Builder
- Enclosing class:
ImageThumbnailGeneratorConstraints
A builder for
ImageThumbnailGeneratorConstraints.- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newImageThumbnailGeneratorConstraintsobject with the constraints set in this builder.targetHeight(Integer targetHeight) Constrains the thumbnail to have the given height.targetWidth(Integer targetWidth) Constrains the thumbnail to have the given width.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Creates a newImageThumbnailGeneratorConstraintsobject with the constraints set in this builder. Subsequent changes to this builder will not affect the returned object.- Returns:
- The new
ImageThumbnailGeneratorConstraintsobject.
-
targetHeight
Constrains the thumbnail to have the given height.- Parameters:
targetHeight- The target height in pixels.- Returns:
- This builder.
-
targetWidth
Constrains the thumbnail to have the given width.- Parameters:
targetWidth- The target width in pixels.- Returns:
- This builder.
-