ArcGIS Runtime SDK for iOS: AGSUniqueValueRenderer.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSUniqueValueRenderer.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2022 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24 
25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSRenderer.h>
27 
28 @class AGSSymbol;
29 @class AGSUniqueValue;
30  //Required for Globals API doc
32 
51 
52 
53 #pragma mark -
54 #pragma mark initializers
55 
60 +(instancetype)uniqueValueRenderer;
61 
70 -(instancetype)initWithFieldNames:(nullable NSArray<NSString*> *)fieldNames
71  uniqueValues:(nullable NSArray<AGSUniqueValue*> *)uniqueValues
72  defaultLabel:(NSString*)defaultLabel
73  defaultSymbol:(nullable AGSSymbol*)defaultSymbol;
74 
83 +(instancetype)uniqueValueRendererWithFieldNames:(nullable NSArray<NSString*> *)fieldNames
84  uniqueValues:(nullable NSArray<AGSUniqueValue*> *)uniqueValues
85  defaultLabel:(NSString*)defaultLabel
86  defaultSymbol:(nullable AGSSymbol*)defaultSymbol;
87 
88 #pragma mark -
89 #pragma mark properties
90 
94 @property (nonatomic, copy, readwrite) NSString *defaultLabel;
95 
99 @property (nullable, nonatomic, strong, readwrite) AGSSymbol *defaultSymbol;
100 
105 @property (nonatomic, copy, readwrite) NSArray<NSString*> *fieldNames;
106 
110 @property (nonatomic, copy, readwrite) NSArray<AGSUniqueValue*> *uniqueValues;
111 
112 #pragma mark -
113 #pragma mark methods
114 
115 
116 @end
An abstract base class for renderers.
Definition: AGSRenderer.h:55
A symbol used to display a graphic or a feature.
Definition: AGSSymbol.h:93
Each unique value that is symbolized differently by a unique value renderer.
Definition: AGSUniqueValue.h:42
A renderer based on unique values.
Definition: AGSUniqueValueRenderer.h:51
NSString * defaultLabel
Definition: AGSUniqueValueRenderer.h:94
AGSSymbol * defaultSymbol
Definition: AGSUniqueValueRenderer.h:99
instancetype uniqueValueRenderer()
NSArray< NSString * > * fieldNames
Definition: AGSUniqueValueRenderer.h:105
NSArray< AGSUniqueValue * > * uniqueValues
Definition: AGSUniqueValueRenderer.h:110