Class: TimeRampAger

Description

Class added v2.0.

Time ramp agers display aging using a gradual change in symbology. A range of colors and symbol sizes can be specified.

Samples

Search for samples that use this class.  

Class hierarchy

esri.Renderer.SymbolAger
  |_ esri.renderer.TimeRampAger

Constructor

Constructor Description
esri.renderer.TimeRampAger(colorRange?, sizeRange?) Creates a new TimeRampAger object with the specified color and size ranges.

Methods

Method Return Value Description
getAgedSymbol(symbol, graphic) Symbol Calculates aging and returns the appropriate symbol. See the SymbolAger class for details.
Constructor Detail

esri.renderer.TimeRampAger(colorRange?, sizeRange?)

Creates a new TimeRampAger object with the specified color and size ranges.
Parameters:
<dojo.Color> colorRange Optional An array containing the minimum and maximum color values the default is:
[ new dojo.Color([0,0,0,0.1]), new dojo.Color([0,0,255,1]) ]
New features will be close to the max value and older ones will be closer to the minimum value.
<Number[]> sizeRange Optional An array containing the minimum and maximum size in pixels. The default value is
[2,10]
Newer features will be close to the max value and older ones will be close to the min value.
Code snippets:
var ager = new esri.renderer.TimeRampAger(
  [new dojo.Color([0, 1, 1, 0.1]), new dojo.Color([0, 255, 255, 1])], 
  [4, 12]
);
Methods Detail

getAgedSymbol(symbol, graphic)

Calculates aging and returns the appropriate symbol. See the SymbolAger class for details.
Return value: Symbol
Input Parameters:
<Symbol> symbol Required The symbol to age.
<Graphic> graphic Required Feature being rendered.