AGSClassBreaksRenderer Class Reference


Description

A class breaks renderer symbolizes each graphic based on the value of some numeric attribute. Graphics with similar values for the attribute get the same symbol. The "breaks" define the values at which the symbology changes.

For example, suppose you have a "buildings" layer with an attribute that defines the building age. You want to symbolize buildings constructed since the year 2000 in green, buildings constructed between 1980 and 2000 in yellow, and buildings built before 1980 with red. This would be a good scenario for class breaks renderer.

Any value that is greater than or equal to the minimum will be included in the break. Any value that is less than the maximum will be included in the break.

Defined in:
AGSClassBreaksRenderer.h ( ArcGIS library)
Since:
1.0
Inheritance diagram for AGSClassBreaksRenderer:
AGSRenderer <AGSCoding>

List of all members.

Public Member Functions

(void) - decodeWithJSON:
(NSDictionary *) - encodeToJSON
(id) - initWithJSON:
(UIImage *) - swatchForGraphic:geometryType:size:
(UIImage *) - swatchForGraphic:size:
(AGSSymbol *) - symbolForGraphic:
(AGSSymbol *) - symbolForGraphic:timeExtent:

Properties

NSArray * classBreaks
NSString * field
double minValue

Member Function Documentation

- (void) decodeWithJSON: (NSDictionary *)  json   [optional, inherited]

Decode object from JSON representation.

Parameters:
json The JSON representation of the object to be decoded.
Since:
1.0
- (NSDictionary *) encodeToJSON   [optional, inherited]

Encode and return JSON representation for object.

Returns:
JSON representation of object.
Since:
1.0
- (id) initWithJSON: (NSDictionary *)  json   [optional, inherited]

Initialize and return object from JSON representation.

Parameters:
json The JSON representation of the object to be created.
Returns:
Object decoded from JSON representation.
Since:
1.0
- (UIImage *) swatchForGraphic: (AGSGraphic *)  graphic
geometryType: (AGSGeometryType geometryType
size: (CGSize)  size 

Returns an image that represents a swatch for a particular graphic. This method can be used when your graphic does not have a geometry but you know the geometry type.

Parameters:
graphic Graphic for which the swatch should be drawn. This is used to determine what symbol in the renderer is used.
geometryType The type of the geometry determines what kind of swatch is drawn.
size Size of the output swatch.
Returns:
UIImage of the drawn swatch.
- (UIImage *) swatchForGraphic: (AGSGraphic *)  graphic
size: (CGSize)  size 

Returns an image that represents a swatch for a particular graphic. The graphic must have a valid geometry.

Parameters:
graphic Graphic for which the swatch should be drawn. This is used to determine what symbol in the renderer is used.
size Size of the output swatch.
Returns:
UIImage of the drawn swatch.
- (AGSSymbol *) symbolForGraphic:  

Return a symbol for the graphic based on the scheme used by this renderer.

Parameters:
graphic The graphic to determine symbol.
Returns:
Symbol for graphic.
Since:
1.0
Deprecated:
Deprecated at 1.8. Use symbolForGraphic:timeExtent: instead.
- (AGSSymbol *) symbolForGraphic: (AGSGraphic *)  graphic
timeExtent: (AGSTimeExtent *)  timeExtent 

Return a symbol for the graphic based on the scheme used by this renderer.

Parameters:
graphic The graphic to determine symbol.
timeExtent The time extent to determine the symbol at.
Returns:
Symbol for graphic.
Since:
1.8

Property Documentation

- (NSArray*) classBreaks [read, write, retain]

A collection of class breaks defined for the renderer. The breaks are an array of AGSClassBreak objects.

Since:
1.0
- (NSString*) field [read, write, copy]

Attribute field used by renderer to match values. This must be a key from the attributes collection of the graphic.

Since:
1.0
- (double) minValue [read, write, assign]

The minimum value for this class breaks renderer.

Since:
1.0