Package io.keikai.model
Class Watermark.Builder
java.lang.Object
io.keikai.model.Watermark.Builder
- Enclosing class:
- Watermark
Builder for constructing
Watermark instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the watermark.Sets the color.Sets the font.imageData(byte[] imageData) Sets the image data.opacity(double opacity) Sets the opacity.position(Watermark.Position position) Sets the position.rotationAngle(double rotationAngle) Sets the rotation angle.Sets the watermark text.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
text
Sets the watermark text.- Parameters:
text- the text- Returns:
- this builder
-
imageData
Sets the image data.- Parameters:
imageData- the image bytes- Returns:
- this builder
-
opacity
Sets the opacity.- Parameters:
opacity- the opacity (0.0-1.0)- Returns:
- this builder
-
rotationAngle
Sets the rotation angle.- Parameters:
rotationAngle- the angle in degrees- Returns:
- this builder
-
font
Sets the font.- Parameters:
font- the font- Returns:
- this builder
-
color
Sets the color.- Parameters:
color- the HTML color string- Returns:
- this builder
-
position
Sets the position.- Parameters:
position- the position- Returns:
- this builder
-
build
Builds the watermark.- Returns:
- the configured Watermark
-