10.2.5: AGSRenderer Class Reference
10.2.5
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
AGSRenderer Class Reference

Description

Instances of this class represent renderers. Renderers symbolize all graphics in a graphics layer according to a given scheme. This is easier than symbolizing each graphic individually.

Defined in:
AGSRenderer.h ( ArcGIS library)

Since
1.0
Inheritance diagram for AGSRenderer:
<AGSCoding> AGSClassBreaksRenderer AGSMPDictionaryRenderer AGSSimpleRenderer AGSUniqueValueRenderer

Instance Methods

(void) - decodeWithJSON:
 
(NSDictionary *) - encodeToJSON
 
(id) - initWithJSON:
 
(AGSImage *) - swatchForFeature:geometryType:size:
 
(AGSImage *) - swatchForFeature:size:
 
(AGSImage *) - swatchForFeatureWithAttributes:geometryType:size:
 
(AGSImage *) - swatchForGraphic:geometryType:size:
 
(AGSImage *) - swatchForGraphic:size:
 
(AGSSymbol *) - symbolForFeature:timeExtent:
 
(AGSSymbol *) - symbolForGraphic:timeExtent:
 

Properties

AGSGraphicsLayerlayer
 
NSString * rotationExpression
 
AGSRotationType rotationType
 

Method Documentation

- (void) decodeWithJSON: (NSDictionary *)  json
optionalinherited

Decode object from JSON representation.

Parameters
jsonThe JSON representation of the object to be decoded.
Since
1.0
- (NSDictionary *) encodeToJSON
optionalinherited

Encode and return JSON representation for object.

Returns
JSON representation of object.
Since
1.0
- (id) initWithJSON: (NSDictionary *)  json
optionalinherited

Initialize and return object from JSON representation.

Parameters
jsonThe JSON representation of the object to be created.
Returns
Object decoded from JSON representation.
Since
1.0

Reimplemented in AGSWebMapFeatureCollection.

- (AGSImage *) swatchForFeature: (id< AGSFeature >)  feature
geometryType: (AGSGeometryType geometryType
size: (CGSize)  size 

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

Parameters
featureFeature for which the swatch should be drawn. This is used to determine what symbol in the renderer is used.
geometryTypeThe type of the geometry determines what kind of swatch is drawn.
sizeSize of the output swatch.
Returns
AGSImage of the drawn swatch.
Since
10.2
- (AGSImage *) swatchForFeature: (id< AGSFeature >)  feature
size: (CGSize)  size 

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

Parameters
featureFeature for which the swatch should be drawn. This is used to determine what symbol in the renderer is used.
sizeSize of the output swatch.
Returns
AGSImage of the drawn swatch.
Since
10.2
- (AGSImage *) swatchForFeatureWithAttributes: (NSDictionary *)  attributes
geometryType: (AGSGeometryType geometryType
size: (CGSize)  size 

Returns an image that represents a swatch for a feature.

Parameters
attributesAttributes of the feature for which the swatch should be drawn. This is used to determine what symbol in the renderer is used.
geometryTypeThe type of the geometry determines what kind of swatch is drawn.
sizeSize of the output swatch.
Returns
AGSImage of the drawn swatch.
Since
10.2
- (AGSImage *) 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
graphicGraphic for which the swatch should be drawn. This is used to determine what symbol in the renderer is used.
geometryTypeThe type of the geometry determines what kind of swatch is drawn.
sizeSize of the output swatch.
Returns
AGSImage of the drawn swatch.
Deprecated:
Deprecated at 10.2. Please use swatchForFeature:geometryType:size: instead.
- (AGSImage *) 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
graphicGraphic for which the swatch should be drawn. This is used to determine what symbol in the renderer is used.
sizeSize of the output swatch.
Returns
AGSImage of the drawn swatch.
Deprecated:
Deprecated at 10.2. Please use swatchForFeature:size: instead.
- (AGSSymbol*) symbolForFeature: (id< AGSFeature >)  feature
timeExtent: (AGSTimeExtent *)  timeExtent 

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

Parameters
featureThe feature to determine the symbol for.
timeExtentThe time extent to determine the symbol at.
Returns
Symbol for graphic.
Since
10.2
- (AGSSymbol*) symbolForGraphic: (AGSGraphic *)  graphic
timeExtent: (AGSTimeExtent *)  timeExtent 

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

Parameters
graphicThe graphic to determine symbol.
timeExtentThe time extent to determine the symbol at.
Returns
Symbol for graphic.
Deprecated:
Deprecated at 10.2. Please use symbolForFeature:timeExtent: instead.
Since
1.8

Property Documentation

- (AGSGraphicsLayer*) layer
readnonatomicweak

The graphics layer that this renderer belongs to, if any.

Since
2.2
- (NSString*) rotationExpression
readwritenonatomicstrong

Constant value or an expression that derives the angle of rotation based on the feature attribute value. When an attribute name is specified in rotationExpression, it's enclosed in square brackets, for example, [Rotation].

Since
10.2.2
- (AGSRotationType) rotationType
readwritenonatomicassign

Controls the origin and direction of rotation. If the rotationType is defined as arithmetic, the symbol is rotated from East in a counter-clockwise direction where East is the 0° axis. If the rotationType is defined as geographic, the symbol is rotated from North in a clockwise direction where North is the 0° axis.

Since
10.2.2