org.teamapps.dto.UiBaseTreeGraphNode Maven / Gradle / Ivy
package org.teamapps.dto;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver;
/**
* THIS IS GENERATED CODE!
* PLEASE DO NOT MODIFY - ALL YOUR WORK WOULD BE LOST!
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, property = "_type")
@JsonTypeIdResolver(TeamAppsJacksonTypeIdResolver.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UiBaseTreeGraphNode implements UiObject {
protected String id;
protected int width;
protected int height;
protected String backgroundColor = "rgb(255, 255, 255)";
protected String borderColor = "rgb(100, 100, 100)";
protected float borderWidth = 1;
protected float borderRadius = 0;
protected UiTreeGraphNodeImage image;
protected UiTreeGraphNodeIcon icon;
protected UiTemplate template;
protected UiClientRecord record;
protected String connectorLineColor = "rgb(100, 100, 100)";
protected int connectorLineWidth;
protected String dashArray;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public UiBaseTreeGraphNode() {
// default constructor for Jackson
}
public UiBaseTreeGraphNode(String id, int width, int height) {
this.id = id;
this.width = width;
this.height = height;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_BASE_TREE_GRAPH_NODE;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("width=" + width).append(", ")
.append("height=" + height).append(", ")
.append("backgroundColor=" + backgroundColor).append(", ")
.append("borderColor=" + borderColor).append(", ")
.append("borderWidth=" + borderWidth).append(", ")
.append("borderRadius=" + borderRadius).append(", ")
.append(template != null ? "template={" + template.toString() + "}" : "").append(", ")
.append("connectorLineColor=" + connectorLineColor).append(", ")
.append("connectorLineWidth=" + connectorLineWidth).append(", ")
.append("dashArray=" + dashArray).append(", ")
.append(image != null ? "image={" + image.toString() + "}" : "").append(", ")
.append(icon != null ? "icon={" + icon.toString() + "}" : "").append(", ")
.append(record != null ? "record={" + record.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("id")
public String getId() {
return id;
}
@com.fasterxml.jackson.annotation.JsonGetter("width")
public int getWidth() {
return width;
}
@com.fasterxml.jackson.annotation.JsonGetter("height")
public int getHeight() {
return height;
}
@com.fasterxml.jackson.annotation.JsonGetter("backgroundColor")
public String getBackgroundColor() {
return backgroundColor;
}
@com.fasterxml.jackson.annotation.JsonGetter("borderColor")
public String getBorderColor() {
return borderColor;
}
@com.fasterxml.jackson.annotation.JsonGetter("borderWidth")
public float getBorderWidth() {
return borderWidth;
}
@com.fasterxml.jackson.annotation.JsonGetter("borderRadius")
public float getBorderRadius() {
return borderRadius;
}
@com.fasterxml.jackson.annotation.JsonGetter("image")
public UiTreeGraphNodeImage getImage() {
return image;
}
@com.fasterxml.jackson.annotation.JsonGetter("icon")
public UiTreeGraphNodeIcon getIcon() {
return icon;
}
@com.fasterxml.jackson.annotation.JsonGetter("template")
public UiTemplate getTemplate() {
return template;
}
@com.fasterxml.jackson.annotation.JsonGetter("record")
public UiClientRecord getRecord() {
return record;
}
@com.fasterxml.jackson.annotation.JsonGetter("connectorLineColor")
public String getConnectorLineColor() {
return connectorLineColor;
}
@com.fasterxml.jackson.annotation.JsonGetter("connectorLineWidth")
public int getConnectorLineWidth() {
return connectorLineWidth;
}
@com.fasterxml.jackson.annotation.JsonGetter("dashArray")
public String getDashArray() {
return dashArray;
}
@com.fasterxml.jackson.annotation.JsonSetter("backgroundColor")
public UiBaseTreeGraphNode setBackgroundColor(String backgroundColor) {
this.backgroundColor = backgroundColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("borderColor")
public UiBaseTreeGraphNode setBorderColor(String borderColor) {
this.borderColor = borderColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("borderWidth")
public UiBaseTreeGraphNode setBorderWidth(float borderWidth) {
this.borderWidth = borderWidth;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("borderRadius")
public UiBaseTreeGraphNode setBorderRadius(float borderRadius) {
this.borderRadius = borderRadius;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("image")
public UiBaseTreeGraphNode setImage(UiTreeGraphNodeImage image) {
this.image = image;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("icon")
public UiBaseTreeGraphNode setIcon(UiTreeGraphNodeIcon icon) {
this.icon = icon;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("template")
public UiBaseTreeGraphNode setTemplate(UiTemplate template) {
this.template = template;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("record")
public UiBaseTreeGraphNode setRecord(UiClientRecord record) {
this.record = record;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("connectorLineColor")
public UiBaseTreeGraphNode setConnectorLineColor(String connectorLineColor) {
this.connectorLineColor = connectorLineColor;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("connectorLineWidth")
public UiBaseTreeGraphNode setConnectorLineWidth(int connectorLineWidth) {
this.connectorLineWidth = connectorLineWidth;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("dashArray")
public UiBaseTreeGraphNode setDashArray(String dashArray) {
this.dashArray = dashArray;
return this;
}
}