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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
package com.github.AAChartModel.AAChartCore.AAOptionsModel;
 
public class AAStyle {
 
    public String background;
    public String backgroundColor;
    public String border;
    public String borderRadius;
    public String color;
    public String cursor;
    public String fontFamily;
    public String fontSize;
    public String fontWeight;
    public Number height;
    public Number lineWidth;
    public Number opacity;
    public String padding;
    public String pointerEvents;
    public String position;
    public String textAlign;
    public String textDecoration;
    public String textOutline;
    public String textOverflow;
    public String top;
    public String transition;
    public String whiteSpace;
    public Number width;
 
    public AAStyle background(String prop) {
        background = prop;
        return this;
    }
 
    public AAStyle backgroundColor(String prop) {
        backgroundColor = prop;
        return this;
    }
 
    public AAStyle border(String prop) {
        border = prop;
        return this;
    }
 
    public AAStyle borderRadius(Number prop) {
        if (prop != null) {
            borderRadius = prop + "px";
        }
        return this;
    }
 
    public AAStyle color(String prop) {
        color = prop;
        return this;
    }
 
    public AAStyle cursor(String prop) {
        cursor = prop;
        return this;
    }
 
    public AAStyle fontFamily(String prop) {
        fontFamily = prop;
        return this;
    }
 
    public AAStyle fontSize(Number prop) {
        if (prop != null) {
            fontSize = prop + "px";
        }
        return this;
    }
 
 
    public AAStyle fontWeight(String prop) {
        fontWeight = prop;
        return this;
    }
 
 
 
    public AAStyle height(Number prop) {
        height = prop;
        return this;
    }
 
    public AAStyle lineWidth(Number prop) {
        lineWidth = prop;
        return this;
    }
 
    public AAStyle opacity(Number prop) {
        opacity = prop;
        return this;
    }
 
    public AAStyle padding(Number prop) {
        if (prop != null) {
            padding = prop + "px";
        }
        return this;
    }
 
    public AAStyle pointerEvents(String prop) {
        pointerEvents = prop;
        return this;
    }
 
    public AAStyle position(String prop) {
        position = prop;
        return this;
    }
 
    public AAStyle textAlign(String prop) {
        textAlign = prop;
        return this;
    }
 
    public AAStyle textDecoration(String prop) {
        textDecoration = prop;
        return this;
    }
 
    public AAStyle textOutline(String prop) {
        textOutline = prop;
        return this;
    }
 
    public AAStyle textOverflow(String prop) {
        textOverflow = prop;
        return this;
    }
 
    public AAStyle top(String prop) {
        top = prop;
        return this;
    }
 
    public AAStyle transition(String prop) {
        transition = prop;
        return this;
    }
 
    public AAStyle whiteSpace(String prop) {
        whiteSpace = prop;
        return this;
    }
 
    public AAStyle width(Number prop) {
        width = prop;
        return this;
    }
 
 
 
 
 
    public static AAStyle style(
            String color
    ) {
        return AAStyle.style(color,null);
    }
 
    public static AAStyle style(
            String color,
            Number fontSize
    ) {
        return AAStyle.style(color,fontSize,null);
    }
 
    public static AAStyle style(
            String color,
            Number fontSize,
            String fontWeight
    ) {
        return AAStyle.style(color,fontSize,fontWeight,null);
    }
 
    public static AAStyle style(
            String color,
            Number fontSize,
            String fontWeight,
            String textOutline
    ) {
        AAStyle aaStyle = new AAStyle()
                .color(color)
                .fontSize(fontSize)
                .fontWeight(fontWeight)
                .textOutline(textOutline);
        return aaStyle;
    }
 
}