Packagecom.google.maps.styles
Classpublic class FillStyle

Class FillStyle specifies a set of parameters for drawing backgrounds of graphical objects.



Public Properties
 PropertyDefined by
  alpha : Object
A Number value that specifies the fill alpha.
FillStyle
  color : Object
A Number value that specifies the fill color.
FillStyle
  gradient : GradientStyle
Gradient fill style.
FillStyle
Public Methods
 MethodDefined by
  
FillStyle(params:Object = null)
Constructs a new FillStyle instance, optionally initializing it from an object.
FillStyle
  
mergeStyles(styles:Array):FillStyle
[static] Merges two or more FillStyle objects.
FillStyle
  
toString():String
Returns a String representation of this object.
FillStyle
Property detail
alphaproperty
alpha:Object  [read-write]

A Number value that specifies the fill alpha. Setting the fill alpha clears the gradient style.

Implementation
    public function get alpha():Object
    public function set alpha(value:Object):void
colorproperty 
color:Object  [read-write]

A Number value that specifies the fill color. Setting the fill color clears the gradient style.

Implementation
    public function get color():Object
    public function set color(value:Object):void

See also

maps.google.com.Color
gradientproperty 
gradient:GradientStyle  [read-write]

Gradient fill style. If set, gradient style takes precedence over color and alpha.

Implementation
    public function get gradient():GradientStyle
    public function set gradient(value:GradientStyle):void
Constructor detail
FillStyle()constructor
public function FillStyle(params:Object = null)

Constructs a new FillStyle instance, optionally initializing it from an object.

Parameters
params:Object (default = null) — An initialization object that contains a set of initial values for the new FillStyle object.

Example
   var gradientStyle:GradientStyle = new GradientStyle({
     type: GradientType.LINEAR,
     colors: [0xFFFF00, 0x800000],
     alphas: [1, 1],
     ratios: [0, 255]
   });
   gradientStyle.matrix = new Matrix();
   gradientStyle.matrix.createGradientBox(14, 14, 0, 0, 0);
   var styleA:FillStyle = new FillStyle({
     gradient: gradientStyle
   });
   var styleB:FillStyle = new FillStyle({
     color: 0xff0040,
     alpha: 0.5,
   });

Method detail
mergeStyles()method
public static function mergeStyles(styles:Array):FillStyle

Merges two or more FillStyle objects. Styles are merged in order they come in the array, properties of styles with larger indices in the array overriding values that came earlier.

Parameters
styles:Array — An array of FillStyle objects to merge.

Returns
FillStyle
toString()method 
public function toString():String

Returns a String representation of this object.

Returns
String — String representation of the style.