1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.client.console.chartjs;
20
21
22
23
24 public class PieChartOptions extends ChartOptions {
25
26 private static final long serialVersionUID = -5356780831848556616L;
27
28
29 private Boolean segmentShowStroke;
30
31
32 private String segmentStrokeColor;
33
34
35 private Integer segmentStrokeWidth;
36
37
38 private Boolean animateRotate;
39
40
41 private Boolean animateScale;
42
43 private String legendTemplate = "<ul class=\"<%=name.toLowerCase()%>-legend\">"
44 + "<% for (var i=0; i<segments.length; i++){%><li>"
45 + "<span style=\"background-color:<%=segments[i].fillColor%>\">"
46 + "<%if(segments[i].label){%><%=segments[i].label%><%}%></span></li><%}%></ul>";
47
48 public String getLegendTemplate() {
49 return legendTemplate;
50 }
51
52 public void setLegendTemplate(final String legendTemplate) {
53 this.legendTemplate = legendTemplate;
54 }
55
56
57
58
59
60
61 public Boolean getSegmentShowStroke() {
62 return segmentShowStroke;
63 }
64
65
66
67
68
69
70 public void setSegmentShowStroke(final Boolean segmentShowStroke) {
71 this.segmentShowStroke = segmentShowStroke;
72 }
73
74
75
76
77
78
79 public String getSegmentStrokeColor() {
80 return segmentStrokeColor;
81 }
82
83
84
85
86
87
88 public void setSegmentStrokeColor(final String segmentStrokeColor) {
89 this.segmentStrokeColor = segmentStrokeColor;
90 }
91
92
93
94
95
96
97 public Integer getSegmentStrokeWidth() {
98 return segmentStrokeWidth;
99 }
100
101
102
103
104
105
106 public void setSegmentStrokeWidth(final Integer segmentStrokeWidth) {
107 this.segmentStrokeWidth = segmentStrokeWidth;
108 }
109
110
111
112
113
114
115 public Boolean getAnimateRotate() {
116 return animateRotate;
117 }
118
119
120
121
122
123
124 public void setAnimateRotate(final Boolean animateRotate) {
125 this.animateRotate = animateRotate;
126 }
127
128
129
130
131
132
133 public Boolean getAnimateScale() {
134 return animateScale;
135 }
136
137
138
139
140
141
142 public void setAnimateScale(final Boolean animateScale) {
143 this.animateScale = animateScale;
144 }
145 }