ArcGIS Runtime SDK for iOS: AGSClassBreak.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSClassBreak.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/AGSObject.h>
27 #import <ArcGIS/AGSJSONSerializable.h>
28 
29 @class AGSSymbol;
30  //Required for Globals API doc
32 
84 @interface AGSClassBreak : AGSObject <AGSJSONSerializable, NSCopying>
85 
86 
87 #pragma mark -
88 #pragma mark initializers
89 
99 - (instancetype)initWithDescription:(NSString *)description
100  label:(NSString *)label
101  minValue:(double)minValue
102  maxValue:(double)maxValue
103  symbol:(AGSSymbol *)symbol;
104 
109 +(instancetype)classBreak;
110 
120 +(instancetype)classBreakWithDescription:(NSString *)description
121  label:(NSString *)label
122  minValue:(double)minValue
123  maxValue:(double)maxValue
124  symbol:(AGSSymbol *)symbol;
125 
145 - (instancetype)initWithDescription:(NSString *)description
146  label:(NSString *)label
147  minValue:(double)minValue
148  maxValue:(double)maxValue
149  symbol:(nullable AGSSymbol *)symbol
150  alternateSymbols:(NSArray<AGSSymbol *> *)alternateSymbols;
151 
171 + (instancetype)classBreakWithDescription:(NSString *)description
172  label:(NSString *)label
173  minValue:(double)minValue
174  maxValue:(double)maxValue
175  symbol:(nullable AGSSymbol *)symbol
176  alternateSymbols:(NSArray<AGSSymbol *> *)alternateSymbols;
177 
178 
179 #pragma mark -
180 #pragma mark properties
181 
192 @property (nonatomic, copy, readwrite) NSArray<AGSSymbol *> *alternateSymbols;
193 
197 @property (nonatomic, copy, readwrite) NSString * label;
198 
202 @property (nonatomic, copy, readwrite) NSString * breakDescription;
203 
207 @property (nonatomic, assign, readwrite) double minValue;
208 
212 @property (nonatomic, assign, readwrite) double maxValue;
213 
217 @property (nullable, nonatomic, strong, readwrite) AGSSymbol * symbol;
218 
219 #pragma mark -
220 #pragma mark methods
221 
227 -(BOOL)isEqualToClassBreak:(AGSClassBreak*)other;
228 
229 
230 @end
A class break object used to categorize a group of values that fall within a range of values.
Definition: AGSClassBreak.h:84
instancetype classBreak()
AGSSymbol * symbol
Definition: AGSClassBreak.h:217
NSArray< AGSSymbol * > * alternateSymbols
Definition: AGSClassBreak.h:192
NSString * label
Definition: AGSClassBreak.h:197
double minValue
Definition: AGSClassBreak.h:207
NSString * breakDescription
Definition: AGSClassBreak.h:202
double maxValue
Definition: AGSClassBreak.h:212
Definition: AGSObject.h:28
A symbol used to display a graphic or a feature.
Definition: AGSSymbol.h:93
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:38