summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java
blob: 281b4fc028bf67fd4d12c5942b056bd72855322e (plain)
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
// This file is generated. Edit android/platform/scripts/generate-style-code.js, then run `make style-code-android`.
package com.mapbox.mapboxsdk.style.layers;

/**
 * Symbol Layer
 */
public class SymbolLayer extends Layer {

    public SymbolLayer(long nativePtr) {
        super(nativePtr);
    }

    public SymbolLayer(String layerId, String sourceId) {
        initialize(layerId, sourceId);
    }

    protected native void initialize(String layerId, String sourceId);

    public void setSourceLayer(String sourceLayer) {
        checkValidity();
        nativeSetSourceLayer(sourceLayer);
    }

    public void setFilter(Filter.Statement filter) {
        checkValidity();
        this.setFilter(filter.toArray());
    }

    public void setFilter(Object[] filter) {
        checkValidity();
        nativeSetFilter(filter);
    }


    // Property getters

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getSymbolPlacement() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetSymbolPlacement());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getSymbolSpacing() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetSymbolSpacing());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Boolean> getSymbolAvoidEdges() {
        checkValidity();
        return (PropertyValue<Boolean>) new PropertyValue(nativeGetSymbolAvoidEdges());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Boolean> getIconAllowOverlap() {
        checkValidity();
        return (PropertyValue<Boolean>) new PropertyValue(nativeGetIconAllowOverlap());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Boolean> getIconIgnorePlacement() {
        checkValidity();
        return (PropertyValue<Boolean>) new PropertyValue(nativeGetIconIgnorePlacement());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Boolean> getIconOptional() {
        checkValidity();
        return (PropertyValue<Boolean>) new PropertyValue(nativeGetIconOptional());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getIconRotationAlignment() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetIconRotationAlignment());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getIconSize() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetIconSize());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getIconTextFit() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetIconTextFit());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float[]> getIconTextFitPadding() {
        checkValidity();
        return (PropertyValue<Float[]>) new PropertyValue(nativeGetIconTextFitPadding());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getIconImage() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetIconImage());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getIconRotate() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetIconRotate());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getIconPadding() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetIconPadding());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Boolean> getIconKeepUpright() {
        checkValidity();
        return (PropertyValue<Boolean>) new PropertyValue(nativeGetIconKeepUpright());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float[]> getIconOffset() {
        checkValidity();
        return (PropertyValue<Float[]>) new PropertyValue(nativeGetIconOffset());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getTextPitchAlignment() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetTextPitchAlignment());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getTextRotationAlignment() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetTextRotationAlignment());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getTextField() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetTextField());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String[]> getTextFont() {
        checkValidity();
        return (PropertyValue<String[]>) new PropertyValue(nativeGetTextFont());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getTextSize() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetTextSize());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getTextMaxWidth() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetTextMaxWidth());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getTextLineHeight() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetTextLineHeight());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getTextLetterSpacing() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetTextLetterSpacing());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getTextJustify() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetTextJustify());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getTextAnchor() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetTextAnchor());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getTextMaxAngle() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetTextMaxAngle());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getTextRotate() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetTextRotate());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getTextPadding() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetTextPadding());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Boolean> getTextKeepUpright() {
        checkValidity();
        return (PropertyValue<Boolean>) new PropertyValue(nativeGetTextKeepUpright());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getTextTransform() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetTextTransform());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float[]> getTextOffset() {
        checkValidity();
        return (PropertyValue<Float[]>) new PropertyValue(nativeGetTextOffset());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Boolean> getTextAllowOverlap() {
        checkValidity();
        return (PropertyValue<Boolean>) new PropertyValue(nativeGetTextAllowOverlap());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Boolean> getTextIgnorePlacement() {
        checkValidity();
        return (PropertyValue<Boolean>) new PropertyValue(nativeGetTextIgnorePlacement());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Boolean> getTextOptional() {
        checkValidity();
        return (PropertyValue<Boolean>) new PropertyValue(nativeGetTextOptional());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getIconOpacity() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetIconOpacity());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getIconColor() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetIconColor());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getIconHaloColor() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetIconHaloColor());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getIconHaloWidth() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetIconHaloWidth());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getIconHaloBlur() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetIconHaloBlur());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float[]> getIconTranslate() {
        checkValidity();
        return (PropertyValue<Float[]>) new PropertyValue(nativeGetIconTranslate());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getIconTranslateAnchor() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetIconTranslateAnchor());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getTextOpacity() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetTextOpacity());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getTextColor() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetTextColor());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getTextHaloColor() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetTextHaloColor());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getTextHaloWidth() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetTextHaloWidth());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float> getTextHaloBlur() {
        checkValidity();
        return (PropertyValue<Float>) new PropertyValue(nativeGetTextHaloBlur());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<Float[]> getTextTranslate() {
        checkValidity();
        return (PropertyValue<Float[]>) new PropertyValue(nativeGetTextTranslate());
    }

    @SuppressWarnings("unchecked")
    public PropertyValue<String> getTextTranslateAnchor() {
        checkValidity();
        return (PropertyValue<String>) new PropertyValue(nativeGetTextTranslateAnchor());
    }

    private native Object nativeGetSymbolPlacement();

    private native Object nativeGetSymbolSpacing();

    private native Object nativeGetSymbolAvoidEdges();

    private native Object nativeGetIconAllowOverlap();

    private native Object nativeGetIconIgnorePlacement();

    private native Object nativeGetIconOptional();

    private native Object nativeGetIconRotationAlignment();

    private native Object nativeGetIconSize();

    private native Object nativeGetIconTextFit();

    private native Object nativeGetIconTextFitPadding();

    private native Object nativeGetIconImage();

    private native Object nativeGetIconRotate();

    private native Object nativeGetIconPadding();

    private native Object nativeGetIconKeepUpright();

    private native Object nativeGetIconOffset();

    private native Object nativeGetTextPitchAlignment();

    private native Object nativeGetTextRotationAlignment();

    private native Object nativeGetTextField();

    private native Object nativeGetTextFont();

    private native Object nativeGetTextSize();

    private native Object nativeGetTextMaxWidth();

    private native Object nativeGetTextLineHeight();

    private native Object nativeGetTextLetterSpacing();

    private native Object nativeGetTextJustify();

    private native Object nativeGetTextAnchor();

    private native Object nativeGetTextMaxAngle();

    private native Object nativeGetTextRotate();

    private native Object nativeGetTextPadding();

    private native Object nativeGetTextKeepUpright();

    private native Object nativeGetTextTransform();

    private native Object nativeGetTextOffset();

    private native Object nativeGetTextAllowOverlap();

    private native Object nativeGetTextIgnorePlacement();

    private native Object nativeGetTextOptional();

    private native Object nativeGetIconOpacity();

    private native Object nativeGetIconColor();

    private native Object nativeGetIconHaloColor();

    private native Object nativeGetIconHaloWidth();

    private native Object nativeGetIconHaloBlur();

    private native Object nativeGetIconTranslate();

    private native Object nativeGetIconTranslateAnchor();

    private native Object nativeGetTextOpacity();

    private native Object nativeGetTextColor();

    private native Object nativeGetTextHaloColor();

    private native Object nativeGetTextHaloWidth();

    private native Object nativeGetTextHaloBlur();

    private native Object nativeGetTextTranslate();

    private native Object nativeGetTextTranslateAnchor();

}