Class PromptImageGeometryData.Builder
- java.lang.Object
-
- de.xima.fc.prompt.service.support.PromptImageGeometryData.Builder
-
- Enclosing class:
- PromptImageGeometryData
public static final class PromptImageGeometryData.Builder extends Object
Builder forPromptImageGeometryData.- Since:
- 8.5.0
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PromptImageGeometryDatabuild()PromptImageGeometryData.BuildercanvasHeight(int canvasHeight)Sets the height of the canvas.PromptImageGeometryData.BuildercanvasSize(int canvasWidth, int canvasHeight)Sets the size of the canvas.PromptImageGeometryData.BuildercanvasWidth(int canvasWidth)Sets the width of the canvas.PromptImageGeometryData.BuilderimageHeight(int imageHeight)Sets the height of the image inside the canvas.PromptImageGeometryData.BuilderimagePosition(int imageX, int imageY)Sets the position of the image inside the canvas.PromptImageGeometryData.BuilderimageSize(int imageWidth, int imageHeight)Sets the size of the image inside the canvas.PromptImageGeometryData.BuilderimageWidth(int imageWidth)Sets the width of the image inside the canvas.PromptImageGeometryData.BuilderimageX(int imageX)Sets the X coordinate of the image inside the canvas.PromptImageGeometryData.BuilderimageY(int imageY)Sets the Y coordinate of the image inside the canvas.
-
-
-
Method Detail
-
build
public PromptImageGeometryData build()
-
canvasHeight
@CanIgnoreReturnValue public PromptImageGeometryData.Builder canvasHeight(int 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
@CanIgnoreReturnValue public PromptImageGeometryData.Builder canvasWidth(int canvasWidth)
Sets the width of the canvas.- Parameters:
canvasWidth- The width of the canvas.- Returns:
- The builder.
-
imageHeight
@CanIgnoreReturnValue public PromptImageGeometryData.Builder imageHeight(int imageHeight)
Sets the height of the image inside the canvas.- Parameters:
imageHeight- The height of the image.- Returns:
- The builder.
-
imagePosition
@CanIgnoreReturnValue public PromptImageGeometryData.Builder imagePosition(int imageX, int imageY)
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
@CanIgnoreReturnValue public PromptImageGeometryData.Builder imageWidth(int imageWidth)
Sets the width of the image inside the canvas.- Parameters:
imageWidth- The width of the image.- Returns:
- The builder.
-
imageX
@CanIgnoreReturnValue public PromptImageGeometryData.Builder imageX(int imageX)
Sets the X coordinate of the image inside the canvas.- Parameters:
imageX- The X coordinate of the image.- Returns:
- The builder.
-
imageY
@CanIgnoreReturnValue public PromptImageGeometryData.Builder imageY(int imageY)
Sets the Y coordinate of the image inside the canvas.- Parameters:
imageY- The Y coordinate of the image.- Returns:
- The builder.
-
-