Instances of this class represent interpolators that can be used to change the appearance of features.
A ramp interpolator finds a suitable size and color for a feature from a ramp (range) of sizes and colors. The ramps are specified using starting and ending values. The interpolator determines the exact size and color for a feature by comparing the feature's time information with the map's time extent. For example, if a feature's time information falls in the center of the map's time extent, a size and color from the middle of the specified range is used for the symbol. When a feature's time information contains both a start time and an end time, the start time is compared with the map's time extent to determine size and color to use.
Public Member Functions | |
(id) | - initWithStartColor:endColor: |
(id) | - initWithStartColor:endColor:startSize:endSize: |
(AGSSymbol *) | - interpolatedSymbolForGraphic:originalSymbol:start:end:val: |
Static Public Member Functions | |
(AGSRampInterpolator *) | + rampInterpolatorWithStartColor:endColor: |
(AGSRampInterpolator *) | + rampInterpolatorWithStartColor:endColor:startSize:endSize: |
Properties | |
UIColor * | endColor |
CGFloat | endSize |
UIColor * | startColor |
CGFloat | startSize |
- (id) initWithStartColor: | (UIColor *) | startColor | ||
endColor: | (UIColor *) | endColor | ||
Initializes an AGSRampInterpolator.
- (id) initWithStartColor: | (UIColor *) | startColor | ||
endColor: | (UIColor *) | endColor | ||
startSize: | (CGFloat) | startSize | ||
endSize: | (CGFloat) | endSize | ||
Initializes an AGSRampInterpolator.
- (AGSSymbol*) interpolatedSymbolForGraphic: | (AGSGraphic *) | graphic | ||
originalSymbol: | (AGSSymbol *) | origSymbol | ||
start: | (double) | start | ||
end: | (double) | end | ||
val: | (double) | val | ||
Returns an interpolated symbol for the specified feature.
+ (AGSRampInterpolator*) rampInterpolatorWithStartColor: | (UIColor *) | startColor | ||
endColor: | (UIColor *) | endColor | ||
Returns an autoreleased AGSRampInterpolator.
+ (AGSRampInterpolator*) rampInterpolatorWithStartColor: | (UIColor *) | startColor | ||
endColor: | (UIColor *) | endColor | ||
startSize: | (CGFloat) | startSize | ||
endSize: | (CGFloat) | endSize | ||
Returns an autoreleased AGSRampInterpolator.
- (UIColor*) endColor [read, write, retain] |
The end color of the ramp.
- (CGFloat) endSize [read, write, assign] |
The end size of the ramp.
- (UIColor*) startColor [read, write, retain] |
The start color of the ramp.
- (CGFloat) startSize [read, write, assign] |
The start size of the ramp.