AGSSimpleLineSymbol Class Reference
Description
Instances of this class represent simple line symbols. Symbols describe how graphics look on the map. Different symbols are used for graphics with different geometry types. Line symbols are used to display those graphics which are based on a polyline geometry. Simple line symbols display graphics using predefined line style patterns such as solid, dash, dot, etc.
- Defined in:
- AGSLineSymbol.h ( ArcGIS library)
- Since:
- 1.0
List of all members.
Member Function Documentation
- (void) applySymbolToContext: |
|
(CGContextRef) |
context |
atResolution: |
|
(double) |
resolution | |
|
|
| | |
Used when a simple line symbol is also part of another symbol for drawing optimization.
- Since:
- 1.8
- (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 *) |
color |
|
|
- (id) initWithColor: |
|
(UIColor *) |
color |
width: |
|
(CGFloat) |
width | |
|
|
| | |
- (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
Initialize autoreleased symbol with defaults.
- Returns:
- A new, autoreleased, simple line symbol object.
- Since:
- 1.0
Initialize autoreleased symbol with specified properties.
- Parameters:
-
| color | A color for the line |
- Returns:
- A new, autoreleased, simple line symbol object.
- Since:
- 1.8
Initialize autoreleased symbol with specified properties.
- Parameters:
-
| color | A color for the line |
| width | The width of the line |
- Returns:
- A new, autoreleased, simple line symbol object.
- 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] |
The line style. Possible values include
AGSSimpleLineSymbolStyleDash
AGSSimpleLineSymbolStyleDot
AGSSimpleLineSymbolStyleDashDot
AGSSimpleLineSymbolStyleDashDotDot
AGSSimpleLineSymbolStyleInsideFrame
AGSSimpleLineSymbolStyleNull
AGSSimpleLineSymbolStyleSolid
Default is AGSSimpleLineSymbolStyleSolid.
- Since:
- 1.0
- (CGFloat) width [read, write, assign] |
Width of line symbol in pixels. Default is 1.0.
- Since:
- 1.0