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

Description

Instances of this class represent composite symbols. Composite symbols are simply a combination of two or more symbols. Each symbol can represent the same or a different aspect of a graphic.

For example, consider a composite symbol of an AGSSimpleMarkerSymbol and an AGSSimpleFillSymbol. A polygon displayed with this composite symbol would display the marker at each vertex along the polygon, and fill the interior space of each ring in the polygon.

Defined in:
AGSCompositeSymbol.h ( ArcGIS library)

Since
1.0
Inheritance diagram for AGSCompositeSymbol:
AGSSymbol <AGSCoding>

Instance Methods

(void) - addSymbol:
 
(void) - addSymbols:
 
(void) - decodeWithJSON:
 
(NSDictionary *) - encodeToJSON
 
(id) - initWithJSON:
 
(void) - removeAllSymbols
 
(void) - removeSymbol:
 
(AGSImage *) - swatchForGeometryType:size:
 

Class Methods

(id) + compositeSymbol
 

Properties

AGSColorcolor
 
NSArray * symbols
 

Method Documentation

- (void) addSymbol: (AGSSymbol *)  symbol

Add a symbol to the composite symbol. The new symbol is added on top of existing symbols.

Parameters
symbol
Since
10.1.1
- (void) addSymbols: (NSArray *)  symbols

Add an array of symbols to the composite symbol. The new symbols are added in the same sequence (0th, 1st, 2nd and so on) on top of existing symbols.

Parameters
symbolsAn array of AGSSymbol objects
Since
10.1.1
+ (id) compositeSymbol

A method to get an initialized and autoreleased composite symbol.

Returns
A new, autoreleased, composite symbol object.
Since
1.0
- (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.

- (void) removeAllSymbols

Remove all symbols

Since
10.1.1
- (void) removeSymbol: (AGSSymbol *)  symbol

Remove a symbol from the composite symbol

Parameters
symbol
Since
10.1.1
- (AGSImage *) swatchForGeometryType: (AGSGeometryType geometryType
size: (CGSize)  size 

Returns an image that represents a swatch for a particular geometry type.

Parameters
geometryTypeThe type of the geometry determines what kind of swatch is drawn.
sizeSize of the output swatch.
Returns
Image of the drawn swatch.

Property Documentation

- (AGSColor*) color
readwritenonatomiccopyinherited

Symbol color.

Since
1.0
- (NSArray*) symbols
readnonatomiccopy

The individual symbols which make up this composite symbol. The symbols are drawn in the order they are stored in the array. The 0th symbol is drawn first, then the next symbol is drawn on top of it, and so on.

Since
1.0