Skip to content

Commit

Permalink
close #108
Browse files Browse the repository at this point in the history
  • Loading branch information
appreciated committed Jun 4, 2021
1 parent 78505a3 commit dcff371
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ public class Pie {
private Double customScale;
private Double offsetX;
private Double offsetY;
private Double startAngle;
private Double endAngle;
private Boolean expandOnClick;
private DataLabels dataLabels;
private Donut donut;
Expand All @@ -19,56 +21,71 @@ public Double getSize() {
return size;
}

public void setSize(Double size) {
this.size = size;
}

public Double getCustomScale() {
return customScale;
}

public void setCustomScale(Double customScale) {
this.customScale = customScale;
}

public Double getOffsetX() {
return offsetX;
}

public void setOffsetX(Double offsetX) {
this.offsetX = offsetX;
}

public Double getOffsetY() {
return offsetY;
}

public void setOffsetY(Double offsetY) {
this.offsetY = offsetY;
}

public Boolean getExpandOnClick() {
return expandOnClick;
}

public DataLabels getDataLabels() {
return dataLabels;
public void setExpandOnClick(Boolean expandOnClick) {
this.expandOnClick = expandOnClick;
}

public Donut getDonut() {
return donut;
public DataLabels getDataLabels() {
return dataLabels;
}

public void setSize(Double size) {
this.size = size;
public void setDataLabels(DataLabels dataLabels) {
this.dataLabels = dataLabels;
}

public void setCustomScale(Double customScale) {
this.customScale = customScale;
public Donut getDonut() {
return donut;
}

public void setOffsetX(Double offsetX) {
this.offsetX = offsetX;
public void setDonut(Donut donut) {
this.donut = donut;
}

public void setOffsetY(Double offsetY) {
this.offsetY = offsetY;
public Double getStartAngle() {
return startAngle;
}

public void setExpandOnClick(Boolean expandOnClick) {
this.expandOnClick = expandOnClick;
public void setStartAngle(Double startAngle) {
this.startAngle = startAngle;
}

public void setDataLabels(DataLabels dataLabels) {
this.dataLabels = dataLabels;
public Double getEndAngle() {
return endAngle;
}

public void setDonut(Donut donut) {
this.donut = donut;
public void setEndAngle(Double endAngle) {
this.endAngle = endAngle;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public class PieBuilder {
private Double customScale;
private Double offsetX;
private Double offsetY;
private Double startAngle;
private Double endAngle;
private Boolean expandOnClick;
private DataLabels dataLabels;
private Donut donut;
Expand Down Expand Up @@ -55,6 +57,16 @@ public PieBuilder withDonut(Donut donut) {
return this;
}

public PieBuilder withStartAngle(Double startAngle) {
this.startAngle = startAngle;
return this;
}

public PieBuilder withEndAngle(Double endAngle) {
this.endAngle = endAngle;
return this;
}

public Pie build() {
Pie pie = new Pie();
pie.setSize(size);
Expand All @@ -64,6 +76,8 @@ public Pie build() {
pie.setExpandOnClick(expandOnClick);
pie.setDataLabels(dataLabels);
pie.setDonut(donut);
pie.setStartAngle(startAngle);
pie.setEndAngle(endAngle);
return pie;
}
}

0 comments on commit dcff371

Please sign in to comment.