Packagecom.google.maps.extras.gradients
Classpublic class GradientControl
InheritanceGradientControl Inheritance ValueColorGradient Inheritance Range

GradientControl contains a list of gradient-calcaluting rules applied to a specific numerical range.



Public Properties
 PropertyDefined by
 InheritedmaxColor : Number = NaN
Range
 InheritedmaxPercent : Number
ValueColorGradient
 InheritedmaxValue : Number = NaN
Range
 InheritedminColor : Number = NaN
Range
 InheritedminPercent : Number
ValueColorGradient
 InheritedminValue : Number = NaN
Range
Protected Properties
 PropertyDefined by
 Inherited_maxPercent : Number = NaN
Backing for minPercent.
Range
 InheritedMAX_PERCENT : Number = 100
[static]
Range
 Inherited_minPercent : Number = NaN
Range
 InheritedMIN_PERCENT : Number = 0
[static]
Range
Public Methods
 MethodDefined by
  
GradientControl(flatGradientList:Array)
Class constructor
GradientControl
  
colorForValue(value:Number):Number
Find the gradient into whose range the specified value falls and use it to calculate the color.
GradientControl
 Inherited
containsValue(someValue:Number):Boolean
ValueColorGradient
 Inherited
getRgbColorDict():Object
Range
 Inherited
getValueDict():Object
Range
 Inherited
String representation of the color ranges of this object
Range
  
toString():String
Class constructor
GradientControl
Protected Methods
 MethodDefined by
  
GradientControl
  
GradientControl
Constructor detail
GradientControl()constructor
public function GradientControl(flatGradientList:Array)

Class constructor

Parameters
flatGradientList:Array — The list of gradients to use
Method detail
colorForValue()method
public override function colorForValue(value:Number):Number

Find the gradient into whose range the specified value falls and use it to calculate the color.

Parameters
value:Number — A number to translate into a color.

Returns
Number
flatGradientAt()method 
protected override function flatGradientAt(i:int):ValueColorGradientParameters
i:int

Returns
ValueColorGradient
numFlatGradients()method 
protected override function numFlatGradients():int

Returns
int
toString()method 
public override function toString():String

Class constructor

Returns
String