class CanvasSize {

    private final float x;
    private final float y;
    private final float width;
    private final float height;

    /**
     * Constructor.
     *
     * @param x      The x coordinate of the top left position
     * @param y      The y coordinate of the top left position
     * @param width  The canvas width
     * @param height The canvas height
     */
    public CanvasSize(float x, float y, float width, float height) {
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
    }

    /**
     * Constructs the default <code>CanvasSize</code>, with both width and
     * height equal to zero.
     */
    public CanvasSize() {
        this(0F, 0F, 0F, 0F);
    }

    /**
     * Returns the x coordinate of the top left position.
     *
     * @return the x coordinate of the top left position
     */
    public float getX() {
        return x;
    }

    /**
     * Returns the y coordinate of the top left position.
     *
     * @return the y coordinate of the top left position
     */
    public float getY() {
        return y;
    }

    /**
     * Returns the canvas width.
     *
     * @return the canvas width
     */
    public float getWidth() {
        return width;
    }

    /**
     * Returns the canvas height.
     *
     * @return the canvas height
     */
    public float getHeight() {
        return height;
    }

    /**
     * Returns the x coordinate of the bottom right position.
     *
     * @return the x coordinate of the bottom right position
     */
    public float getMaxX() {
        return getX() + getWidth();
    }

    /**
     * Returns the y coordinate of the bottom right position.
     *
     * @return the y coordinate of the bottom right position
     */
    public float getMaxY() {
        return getY() + getHeight();
    }

    @Override
    public String toString() {<FILL_FUNCTION_BODY>}
}

        return "CanvasSize{" +
            "x=" + x +
            ", y=" + y +
            ", width=" + width +
            ", height=" + height +
            '}';
    
<no_super_class>