AGSSimpleRenderer Class Reference


Description

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

Simple renderers use a simple scheme - the same symbol is used for all graphics.

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

List of all members.

Public Member Functions

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

Static Public Member Functions

(id) + simpleRendererWithSymbol:

Properties

NSString * description
NSString * label
AGSSymbolsymbol

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
- (id) initWithSymbol: (AGSSymbol *)  symbol  

Initialize renderer with desired symbol.

Parameters:
symbol The symbol to be used to render all graphics.
Returns:
A new simple renderer object.
Since:
1.0
+ (id) simpleRendererWithSymbol: (AGSSymbol *)  symbol  

Initialize autoreleased renderer with desired symbol.

Parameters:
symbol The symbol to be used to render all graphics.
Returns:
A new, autoreleased, simple renderer object.
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

- (NSString*) description [read, retain]

The description for the renderer.

Since:
1.0
- (NSString*) label [read, retain]

The label for the renderer.

Since:
1.0
- (AGSSymbol*) symbol [read, retain]

The symbol for the renderer.

Since:
1.0