1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.rendering.macro.chart; |
21 |
|
|
22 |
|
import org.xwiki.properties.annotation.PropertyDescription; |
23 |
|
import org.xwiki.properties.annotation.PropertyMandatory; |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
@version |
29 |
|
@since |
30 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (24) |
Complexity: 12 |
Complexity Density: 1 |
|
31 |
|
public class ChartMacroParameters |
32 |
|
{ |
33 |
|
|
34 |
|
@see |
35 |
|
|
36 |
|
private String title; |
37 |
|
|
38 |
|
|
39 |
|
@see |
40 |
|
|
41 |
|
private int height = 300; |
42 |
|
|
43 |
|
|
44 |
|
@see |
45 |
|
|
46 |
|
private int width = 400; |
47 |
|
|
48 |
|
|
49 |
|
@see |
50 |
|
|
51 |
|
private String type; |
52 |
|
|
53 |
|
|
54 |
|
@see |
55 |
|
|
56 |
|
private String source; |
57 |
|
|
58 |
|
|
59 |
|
@see |
60 |
|
|
61 |
|
private String params; |
62 |
|
|
63 |
|
|
64 |
|
@return |
65 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
66 |
39 |
public String getTitle()... |
67 |
|
{ |
68 |
39 |
return title; |
69 |
|
} |
70 |
|
|
71 |
|
|
72 |
|
@param@link |
73 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
2 |
@PropertyDescription("The title of the chart (appears on top of the chart image)")... |
75 |
|
public void setTitle(String title) |
76 |
|
{ |
77 |
2 |
this.title = title; |
78 |
|
} |
79 |
|
|
80 |
|
|
81 |
|
@return |
82 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
83 |
24 |
public int getWidth()... |
84 |
|
{ |
85 |
24 |
return width; |
86 |
|
} |
87 |
|
|
88 |
|
|
89 |
|
@param@link |
90 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
91 |
3 |
@PropertyDescription("The width of the generated chart image")... |
92 |
|
public void setWidth(int width) |
93 |
|
{ |
94 |
3 |
this.width = width; |
95 |
|
} |
96 |
|
|
97 |
|
|
98 |
|
@return |
99 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
24 |
public int getHeight()... |
101 |
|
{ |
102 |
24 |
return height; |
103 |
|
} |
104 |
|
|
105 |
|
|
106 |
|
@param@link |
107 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
108 |
2 |
@PropertyDescription("The height of the generated chart image")... |
109 |
|
public void setHeight(int height) |
110 |
|
{ |
111 |
2 |
this.height = height; |
112 |
|
} |
113 |
|
|
114 |
|
|
115 |
|
@return |
116 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
117 |
24 |
public String getType()... |
118 |
|
{ |
119 |
24 |
return type; |
120 |
|
} |
121 |
|
|
122 |
|
|
123 |
|
@param@link |
124 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
125 |
15 |
@PropertyMandatory... |
126 |
|
@PropertyDescription("The type of the chart (Ex. pie, line, area or bar)") |
127 |
|
public void setType(String chartType) |
128 |
|
{ |
129 |
15 |
this.type = chartType; |
130 |
|
} |
131 |
|
|
132 |
|
|
133 |
|
@return |
134 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
135 |
24 |
public String getSource()... |
136 |
|
{ |
137 |
24 |
return source; |
138 |
|
} |
139 |
|
|
140 |
|
|
141 |
|
@param@link |
142 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
143 |
9 |
@PropertyDescription("The string describing the type of input data source (Ex. xdom or inline)")... |
144 |
|
public void setSource(String source) |
145 |
|
{ |
146 |
9 |
this.source = source; |
147 |
|
} |
148 |
|
|
149 |
|
|
150 |
|
@return |
151 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
152 |
39 |
public String getParams()... |
153 |
|
{ |
154 |
39 |
return params; |
155 |
|
} |
156 |
|
|
157 |
|
|
158 |
|
@param |
159 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
160 |
12 |
@PropertyDescription("Additional parameters for the data source")... |
161 |
|
public void setParams(String params) |
162 |
|
{ |
163 |
12 |
this.params = params; |
164 |
|
} |
165 |
|
} |