Class PromptImageGeometryData.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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.