Public Member Functions | |
| (void) | - applySymbolToContext:withGraphic:envelope:resolution: |
| (void) | - decodeWithJSON: |
| (void) | - drawGraphic:inContext:forEnvelope:atResolution: |
| (NSDictionary *) | - encodeToJSON |
| (BOOL) | - hitTestGraphic:withEnvelope:atResolution: |
| (id) | - initWithJSON: |
| (BOOL) | - shouldDrawGraphic:forEnvelope:atResolution: |
| (UIImage *) | - swatchForGeometryType:size: |
Static Public Member Functions | |
| (CGPoint) | + toScreenPointWithX:y:envelope:resolution: |
Properties | |
| UIColor * | color |
| AGSSimpleLineSymbol * | outline |
| BOOL | readyToDraw |
| - (void) applySymbolToContext: | (CGContextRef) | context | ||
| withGraphic: | (AGSGraphic *) | graphic | ||
| envelope: | (AGSEnvelope *) | env | ||
| resolution: | (double) | res | ||
This must be implemented by derived classes, don't implement drawGraphic:inContext:forEnvelope:withResolution, implement this instead.
| - (void) decodeWithJSON: | (NSDictionary *) | json | [optional, inherited] |
Decode object from JSON representation.
| json | The JSON representation of the object to be decoded. |
| - (void) drawGraphic: | (AGSGraphic *) | graphic | ||
| inContext: | (CGContextRef) | context | ||
| forEnvelope: | (AGSEnvelope *) | env | ||
| atResolution: | (double) | resolution | ||
Method called by AGSGraphicsLayer to draw geometry onto context.
| - (NSDictionary *) encodeToJSON | [optional, inherited] |
Encode and return JSON representation for object.
| - (BOOL) hitTestGraphic: | (AGSGraphic *) | graphic | ||
| withEnvelope: | (AGSEnvelope *) | envelope | ||
| atResolution: | (double) | resolution | ||
Called to see if the geometry passes a hit test for this symbol.
| - (id) initWithJSON: | (NSDictionary *) | json | [optional, inherited] |
Initialize and return object from JSON representation.
| json | The JSON representation of the object to be created. |
Reimplemented in AGSWebMapFeatureCollection.
| - (BOOL) shouldDrawGraphic: | (AGSGraphic *) | graphic | ||
| forEnvelope: | (AGSEnvelope *) | envelope | ||
| atResolution: | (double) | resolution | ||
Called to see if the symbol should draw for a specific envelope.
| - (UIImage *) swatchForGeometryType: | (AGSGeometryType) | geometryType | ||
| size: | (CGSize) | size | ||
Returns an image that represents a swatch for a particular geometry type.
| geometryType | The type of the geometry determines what kind of swatch is drawn. | |
| size | Size of the output swatch. |
| + (CGPoint) toScreenPointWithX: | (double) | x | ||
| y: | (double) | y | ||
| envelope: | (AGSEnvelope *) | env | ||
| resolution: | (double) | res | ||
A method that derived classes can call to help during drawing.
- (UIColor*) color [read, write, retain, inherited] |
Symbol color.
- (AGSSimpleLineSymbol*) outline [read, write, retain] |
This outline of the symbol.
- (BOOL) readyToDraw [read, write, assign, inherited] |
Property called by the framework. Most symbols should have this set to YES as soon as the symbol is init'ed. If a symbol needs to access a resource asynchronously before it's ready to draw then it should be set to NO initially then YES once it is ready. This is not as efficient as if a symbol is readyToDraw to begin with, however, so custom symbols should only set this to NO initially if absolutely necessary.