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 AGSSimpleRenderer AGSTemporalRenderer AGSUniqueValueRenderer

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:

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