AGSPictureFillSymbol Class Reference


Description

Instances of this class represent picture fill symbols. Symbols describe how graphics look on the map. Different symbols are used for graphics with different geometry types. Fill symbols are used to display those graphics which are based on a polygon geometry. The symbol can fill the interior of a polygon graphic by repeating a given picture. In addition, the symbol can have an optional outline which is defined by a line symbol.

Defined in:
AGSPictureFillSymbol.h ( ArcGIS library)
Since:
1.8
Inheritance diagram for AGSPictureFillSymbol:
AGSSymbol <AGSCoding>

List of all members.

Public Member Functions

(void) - decodeWithJSON:
(NSDictionary *) - encodeToJSON
(id) - initWithImage:
(id) - initWithImageNamed:
(id) - initWithJSON:
(UIImage *) - swatchForGeometryType:size:

Static Public Member Functions

(id) + pictureFillSymbolWithImage:
(id) + pictureFillSymbolWithImageNamed:

Properties

float angle
UIColor * color
UIImage * image
NSString * imageName
AGSSimpleLineSymboloutline
CGSize size
float xoffset
float xscale
float yoffset
float yscale

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) initWithImage: (UIImage *)  image  

Initialize symbol with image.

Parameters:
image The image for the fill.
Since:
1.8
- (id) initWithImageNamed: (NSString *)  imageName  

Initialize symbol with name of image to draw in the fill.

Parameters:
imageName The name of the image to draw in the fill.
Since:
1.8
- (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) pictureFillSymbolWithImage: (UIImage *)  image  

Initialize autoreleased symbol with image.

Parameters:
image The image for the fill.
Since:
1.8
+ (id) pictureFillSymbolWithImageNamed: (NSString *)  imageName  

Initialize autoreleased symbol with name of image to draw.

Parameters:
imageName The name of the image to draw in the fill.
Since:
1.8
- (UIImage *) swatchForGeometryType: (AGSGeometryType geometryType
size: (CGSize)  size 

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

Parameters:
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.

Property Documentation

- (float) angle [read, write, assign]

The rotation angle (in degrees) of the picture. The picture is rotated in a counter-clockwise direction by the amount specified.

Since:
1.8
- (UIColor*) color [read, write, retain, inherited]

Symbol color.

Since:
1.0
- (UIImage*) image [read, retain]

Image used as the fill.

Since:
1.8
- (NSString*) imageName [read, copy]

Name of the image to be used as the fill.

Since:
1.8
- (AGSSimpleLineSymbol*) outline [read, write, retain]

Outline for the symbol.

Since:
1.8
- (CGSize) size [read, write, assign]

Size in pixels. Default is 12x12.

Since:
1.8
- (float) xoffset [read, write, assign]

The offset on the x-axis in points, relative to the center of the image. Default is 0.0. For example, a value of -5 will shift the image left by 5 points.

Since:
1.8
- (float) xscale [read, write, assign]

Amount to scale the image along x-axis

Since:
1.8
- (float) yoffset [read, write, assign]

The offset on the y-axis in points, relative to the center of the image. Default is 0.0. For example, a value of -5 will shift the image down by 5 points.

Since:
1.8
- (float) yscale [read, write, assign]

Amount to scale the image along y-axis

Since:
1.8