com.dropchop.textonic.model.dto.doc.Rect Maven / Gradle / Ivy
package com.dropchop.textonic.model.dto.doc;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;
import org.eclipse.microprofile.openapi.annotations.media.Schema;
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;
/**
* @author Nikola Ivačič on 10. 08. 22.
*/
@Data
@SuperBuilder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@JsonInclude(NON_NULL)
public class Rect extends Geometry {
@JsonProperty("l")
@Schema(
description = "Left coordinate."
)
private Double left;
@JsonProperty("t")
@Schema(
description = "Top coordinate."
)
private Double top;
@JsonProperty("w")
@Schema(
description = "Width."
)
private Double width;
@JsonProperty("h")
@Schema(
description = "Height."
)
private Double height;
@Override
public String toString() {
return super.toString() + ":l=" + left +
", t=" + top +
", w=" + width +
", h=" + height;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy