1 | monthlyDateAreaBean.getDateArea().setGridLineSpecProvider(↵ | | 1 | monthlyDateAreaBean.getDateArea().setGridLineSpecProvider(↵
|
2 | new GridLineSpecProvider() {↵ | | 2 | new GridLineSpecProvider() {↵
|
3 | public GridLineSpecification createSpecification(↵ | | 3 | public GridLineSpecification createSpecification(↵
|
4 | DateArea dateArea) {↵ | | 4 | DateArea dateArea) {↵
|
5 | return new GridLineSpecification(↵ | | 5 | return new GridLineSpecification(↵
|
6 | // horizontal grid lines↵ | | 6 | // horizontal grid lines↵
|
7 | new DefaultGridLineProvider(↵ | | 7 | new DefaultGridLineProvider(↵
|
8 | new GridLineRepetition[] {↵ | | 8 | new GridLineRepetition[] {↵
|
9 | // dark gray line at 12 and 13↵ | | 9 | // dark gray line at 12 and 13↵
|
10 | new GridLineRepetition(0, 1,↵ | | 10 | new GridLineRepetition(0, 1,↵
|
11 | new AtStart(0.1f), new AtEnd(↵ | | 11 | new AtStart(0.1f), new AtEnd(↵
|
12 | -1f), 1, lightGrayColor) }),↵ | | 12 | -1f), 1, lightGrayColor) }),↵
|
13 | // vertical grid lines↵ | | 13 | // vertical grid lines↵
|
14 | new DefaultGridLineProvider(↵ | | 14 | new DefaultGridLineProvider(↵
|
15 | new GridLineRepetition[] {↵ | | 15 | new GridLineRepetition[] {↵
|
16 | // light gray line every day↵ | | 16 | // light gray line every day↵
|
17 | new GridLineRepetition(0, 1, null,↵ | | 17 | new GridLineRepetition(0, 1, null,↵
|
18 | null, 1, lightGrayColor) }),// vertical↵ | | 18 | null, 1, lightGrayColor) }),// vertical↵
|
19 | // grid↵ | | 19 | // grid↵
|
20 | // lines↵ | | 20 | // lines↵
|
21 | new DefaultGridLineProvider(↵ | | 21 | new DefaultGridLineProvider(↵
|
22 | new GridLineRepetition[] {↵ | | 22 | new GridLineRepetition[] {↵
|
23 | // light gray line every day↵ | | 23 | // light gray line every day↵
|
24 | new GridLineRepetition(0, 1,↵ | | 24 | new GridLineRepetition(0, 1,↵
|
25 | new AtStart(1f),↵ | | 25 | new AtStart(1f),↵
|
26 | new AtEnd(-2f), 1,↵ | | 26 | new AtEnd(-2f), 1,↵
|
27 | lightGrayColor) }));↵ | | 27 | lightGrayColor) }));↵
|
28 | | | 28 |
|