Class PromptImageGeometryData.Builder
java.lang.Object
de.xima.fc.prompt.service.support.PromptImageGeometryData.Builder
- Enclosing class:
PromptImageGeometryData
Builder for
PromptImageGeometryData.- Since:
- 8.5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()canvasHeight(int canvasHeight) Sets the height of the canvas.canvasSize(int canvasWidth, int canvasHeight) Sets the size of the canvas.canvasWidth(int canvasWidth) Sets the width of the canvas.imageHeight(int imageHeight) Sets the height of the image inside the canvas.imagePosition(int imageX, int imageY) Sets the position of the image inside the canvas.imageSize(int imageWidth, int imageHeight) Sets the size of the image inside the canvas.imageWidth(int imageWidth) Sets the width of the image inside the canvas.imageX(int imageX) Sets the X coordinate of the image inside the canvas.imageY(int imageY) Sets the Y coordinate of the image inside the canvas.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
canvasHeight
Sets the height of the canvas.- Parameters:
canvasHeight- The height of the canvas.- Returns:
- The builder.
-
canvasSize
@CanIgnoreReturnValue public PromptImageGeometryData.Builder canvasSize(int canvasWidth, int canvasHeight) Sets the size of the canvas.- Parameters:
canvasWidth- The width of the canvas.canvasHeight- The height of the canvas.- Returns:
- The builder.
-
canvasWidth
Sets the width of the canvas.- Parameters:
canvasWidth- The width of the canvas.- Returns:
- The builder.
-
imageHeight
Sets the height of the image inside the canvas.- Parameters:
imageHeight- The height of the image.- Returns:
- The builder.
-
imagePosition
Sets the position of the image inside the canvas.- Parameters:
imageX- The X coordinate of the image.imageY- The Y coordinate of the image.- Returns:
- The builder.
-
imageSize
@CanIgnoreReturnValue public PromptImageGeometryData.Builder imageSize(int imageWidth, int imageHeight) Sets the size of the image inside the canvas.- Parameters:
imageWidth- The width of the image.imageHeight- The height of the image.- Returns:
- The builder.
-
imageWidth
Sets the width of the image inside the canvas.- Parameters:
imageWidth- The width of the image.- Returns:
- The builder.
-
imageX
Sets the X coordinate of the image inside the canvas.- Parameters:
imageX- The X coordinate of the image.- Returns:
- The builder.
-
imageY
Sets the Y coordinate of the image inside the canvas.- Parameters:
imageY- The Y coordinate of the image.- Returns:
- The builder.
-