All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.teamapps.dto.UiPieChart 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", defaultImpl = UiPieChart.class)
public class UiPieChart extends AbstractUiChart implements UiObject {
protected UiDataPointWeighting dataPointWeighting = UiDataPointWeighting.RELATIVE;
protected float rotation3D = 0;
protected float height3D = 0;
protected float rotationClockwise = 0;
protected float innerRadiusProportion = 0;
protected List dataPoints;
public UiPieChart() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_PIE_CHART;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("debuggingId=" + debuggingId).append(", ")
.append("classNamesBySelector=" + classNamesBySelector).append(", ")
.append("visible=" + visible).append(", ")
.append("stylesBySelector=" + stylesBySelector).append(", ")
.append("attributesBySelector=" + attributesBySelector).append(", ")
.append("initialAnimationDuration=" + initialAnimationDuration).append(", ")
.append("legendStyle=" + legendStyle).append(", ")
.append("dataPointWeighting=" + dataPointWeighting).append(", ")
.append("rotation3D=" + rotation3D).append(", ")
.append("height3D=" + height3D).append(", ")
.append("rotationClockwise=" + rotationClockwise).append(", ")
.append("innerRadiusProportion=" + innerRadiusProportion).append(", ")
.append(dataPoints != null ? "dataPoints={" + dataPoints.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("dataPointWeighting")
public UiDataPointWeighting getDataPointWeighting() {
return dataPointWeighting;
}
@com.fasterxml.jackson.annotation.JsonGetter("rotation3D")
public float getRotation3D() {
return rotation3D;
}
@com.fasterxml.jackson.annotation.JsonGetter("height3D")
public float getHeight3D() {
return height3D;
}
@com.fasterxml.jackson.annotation.JsonGetter("rotationClockwise")
public float getRotationClockwise() {
return rotationClockwise;
}
@com.fasterxml.jackson.annotation.JsonGetter("innerRadiusProportion")
public float getInnerRadiusProportion() {
return innerRadiusProportion;
}
@com.fasterxml.jackson.annotation.JsonGetter("dataPoints")
public List getDataPoints() {
return dataPoints;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiPieChart setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("debuggingId")
public UiPieChart setDebuggingId(String debuggingId) {
this.debuggingId = debuggingId;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiPieChart setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiPieChart setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("classNamesBySelector")
public UiPieChart setClassNamesBySelector(Map> classNamesBySelector) {
this.classNamesBySelector = classNamesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("attributesBySelector")
public UiPieChart setAttributesBySelector(Map> attributesBySelector) {
this.attributesBySelector = attributesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("initialAnimationDuration")
public UiPieChart setInitialAnimationDuration(long initialAnimationDuration) {
this.initialAnimationDuration = initialAnimationDuration;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("legendStyle")
public UiPieChart setLegendStyle(UiChartLegendStyle legendStyle) {
this.legendStyle = legendStyle;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("dataPointWeighting")
public UiPieChart setDataPointWeighting(UiDataPointWeighting dataPointWeighting) {
this.dataPointWeighting = dataPointWeighting;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("rotation3D")
public UiPieChart setRotation3D(float rotation3D) {
this.rotation3D = rotation3D;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("height3D")
public UiPieChart setHeight3D(float height3D) {
this.height3D = height3D;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("rotationClockwise")
public UiPieChart setRotationClockwise(float rotationClockwise) {
this.rotationClockwise = rotationClockwise;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("innerRadiusProportion")
public UiPieChart setInnerRadiusProportion(float innerRadiusProportion) {
this.innerRadiusProportion = innerRadiusProportion;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("dataPoints")
public UiPieChart setDataPoints(List dataPoints) {
this.dataPoints = dataPoints;
return this;
}
public static class DataPointClickedEvent implements UiEvent {
@UiComponentId protected String componentId;
protected String dataPointName;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public DataPointClickedEvent() {
// default constructor for Jackson
}
public DataPointClickedEvent(String componentId, String dataPointName) {
this.componentId = componentId;
this.dataPointName = dataPointName;
}
public UiEventType getUiEventType() {
return UiEventType.UI_PIE_CHART_DATA_POINT_CLICKED;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("dataPointName=" + dataPointName)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("dataPointName")
public String getDataPointName() {
return dataPointName;
}
}
public static class SetDataPointWeightingCommand implements UiCommand {
@UiComponentId protected String componentId;
protected UiDataPointWeighting dataPointWeighting;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetDataPointWeightingCommand() {
// default constructor for Jackson
}
public SetDataPointWeightingCommand(String componentId, UiDataPointWeighting dataPointWeighting) {
this.componentId = componentId;
this.dataPointWeighting = dataPointWeighting;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("dataPointWeighting=" + dataPointWeighting)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("dataPointWeighting")
public UiDataPointWeighting getDataPointWeighting() {
return dataPointWeighting;
}
}
public static class SetRotation3DCommand implements UiCommand {
@UiComponentId protected String componentId;
protected float rotation3D;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetRotation3DCommand() {
// default constructor for Jackson
}
public SetRotation3DCommand(String componentId, float rotation3D) {
this.componentId = componentId;
this.rotation3D = rotation3D;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("rotation3D=" + rotation3D)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("rotation3D")
public float getRotation3D() {
return rotation3D;
}
}
public static class SetHeight3DCommand implements UiCommand {
@UiComponentId protected String componentId;
protected float height3D;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetHeight3DCommand() {
// default constructor for Jackson
}
public SetHeight3DCommand(String componentId, float height3D) {
this.componentId = componentId;
this.height3D = height3D;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("height3D=" + height3D)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("height3D")
public float getHeight3D() {
return height3D;
}
}
public static class SetRotationClockwiseCommand implements UiCommand {
@UiComponentId protected String componentId;
protected float rotationClockwise;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetRotationClockwiseCommand() {
// default constructor for Jackson
}
public SetRotationClockwiseCommand(String componentId, float rotationClockwise) {
this.componentId = componentId;
this.rotationClockwise = rotationClockwise;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("rotationClockwise=" + rotationClockwise)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("rotationClockwise")
public float getRotationClockwise() {
return rotationClockwise;
}
}
public static class SetInnerRadiusProportionCommand implements UiCommand {
@UiComponentId protected String componentId;
protected float innerRadiusProportion;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetInnerRadiusProportionCommand() {
// default constructor for Jackson
}
public SetInnerRadiusProportionCommand(String componentId, float innerRadiusProportion) {
this.componentId = componentId;
this.innerRadiusProportion = innerRadiusProportion;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("innerRadiusProportion=" + innerRadiusProportion)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("innerRadiusProportion")
public float getInnerRadiusProportion() {
return innerRadiusProportion;
}
}
public static class SetDataPointsCommand implements UiCommand {
@UiComponentId protected String componentId;
protected List dataPoints;
protected long animationDuration;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetDataPointsCommand() {
// default constructor for Jackson
}
public SetDataPointsCommand(String componentId, List dataPoints, long animationDuration) {
this.componentId = componentId;
this.dataPoints = dataPoints;
this.animationDuration = animationDuration;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("animationDuration=" + animationDuration).append(", ")
.append(dataPoints != null ? "dataPoints={" + dataPoints.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("dataPoints")
public List getDataPoints() {
return dataPoints;
}
@com.fasterxml.jackson.annotation.JsonGetter("animationDuration")
public long getAnimationDuration() {
return animationDuration;
}
}
}