1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package com.xpn.xwiki.plugin.charts.params; |
21 |
|
|
22 |
|
import org.jfree.data.time.Day; |
23 |
|
import org.jfree.data.time.Hour; |
24 |
|
import org.jfree.data.time.Millisecond; |
25 |
|
import org.jfree.data.time.Minute; |
26 |
|
import org.jfree.data.time.Month; |
27 |
|
import org.jfree.data.time.Quarter; |
28 |
|
import org.jfree.data.time.Second; |
29 |
|
import org.jfree.data.time.Week; |
30 |
|
import org.jfree.data.time.Year; |
31 |
|
|
|
|
| 0% |
Uncovered Elements: 16 (16) |
Complexity: 4 |
Complexity Density: 0.33 |
|
32 |
|
public class TimePeriodClassChartParam extends ChoiceChartParam |
33 |
|
{ |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
34 |
0 |
public TimePeriodClassChartParam(String name)... |
35 |
|
{ |
36 |
0 |
super(name); |
37 |
|
} |
38 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
39 |
0 |
public TimePeriodClassChartParam(String name, boolean isOptional)... |
40 |
|
{ |
41 |
0 |
super(name, isOptional); |
42 |
|
} |
43 |
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 1 |
Complexity Density: 0.11 |
|
44 |
0 |
@Override... |
45 |
|
protected void init() |
46 |
|
{ |
47 |
0 |
addChoice("year", Year.class); |
48 |
0 |
addChoice("quarter", Quarter.class); |
49 |
0 |
addChoice("month", Month.class); |
50 |
0 |
addChoice("week", Week.class); |
51 |
0 |
addChoice("day", Day.class); |
52 |
0 |
addChoice("hour", Hour.class); |
53 |
0 |
addChoice("minute", Minute.class); |
54 |
0 |
addChoice("second", Second.class); |
55 |
0 |
addChoice("millisecond", Millisecond.class); |
56 |
|
} |
57 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
58 |
0 |
@Override... |
59 |
|
public Class getType() |
60 |
|
{ |
61 |
0 |
return Class.class; |
62 |
|
} |
63 |
|
} |