mac
2024-06-12 12d6db5780d8a2121a3bef2d58bf897b24ff552a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.github.AAChartModel.AAChartCore.AAOptionsModel;
 
import java.util.HashMap;
import java.util.Map;
 
public class AASVGAttributes {
    public Number strokeWidth;
    public String fill;
    public String stroke;
 
    public AASVGAttributes strokeWidth(Number prop) {
        strokeWidth = prop;
        return this;
    }
 
    public AASVGAttributes fill(String prop) {
        fill = prop;
        return this;
    }
 
    public AASVGAttributes stroke(String prop) {
        stroke = prop;
        return this;
    }
 
    public Map<String, Object> toDic() {
        Map<String, Object> dic = new HashMap<>();
        if (strokeWidth != null) {
            dic.put("stroke-width", strokeWidth);
        }
        if (fill != null) {
            dic.put("fill", fill);
        }
        if (stroke != null) {
            dic.put("stroke", stroke);
        }
        return dic;
    }
 
}