AGSSimpleFillSymbol Class Reference


Description

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

Defined in:
AGSFillSymbol.h ( ArcGIS library)
Since:
1.0
Inheritance diagram for AGSSimpleFillSymbol:
AGSSymbol <AGSCoding>

List of all members.

Public Member Functions

(void) - decodeWithJSON:
(NSDictionary *) - encodeToJSON
(id) - initWithColor:outlineColor:
(id) - initWithJSON:
(UIImage *) - swatchForGeometryType:size:

Static Public Member Functions

(id) + simpleFillSymbol
(AGSSimpleFillSymbol *) + simpleFillSymbolWithColor:outlineColor:

Properties

UIColor * color
AGSSimpleLineSymboloutline
AGSSimpleFillSymbolStyle style

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) initWithColor: (UIColor *)  fillColor
outlineColor: (UIColor *)  outlineColor 

Initialize a symbol with a fill color and an outline color

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) simpleFillSymbol  

Initialize an autoreleased symbol.

Returns:
A new, autoreleased, simple fill symbol object.
Since:
1.0
+ (AGSSimpleFillSymbol*) simpleFillSymbolWithColor: (UIColor *)  fillColor
outlineColor: (UIColor *)  outlineColor 

Initialize an autoreleased symbol with a fill color and an outline color

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

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

Symbol color.

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

This outline of the symbol.

Since:
1.0
- (AGSSimpleFillSymbolStyle) style [read, write, assign]

The fill style. Possible values include

  • AGSSimpleFillSymbolStyleBackwardDiagonal
  • AGSSimpleFillSymbolStyleCross
  • AGSSimpleFillSymbolStyleDiagonalCross
  • AGSSimpleFillSymbolStyleForwardDiagonal
  • AGSSimpleFillSymbolStyleHorizontal
  • AGSSimpleFillSymbolStyleNull
  • AGSSimpleFillSymbolStyleSolid
  • AGSSimpleFillSymbolStyleVertical

Default is AGSSimpleFillSymbolStyleSolid.

Since:
1.0