Package | com.google.maps.styles |
Class | public class FillStyle |
Property | Defined 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 |
Method | Defined 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 |
alpha | property |
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
color | property |
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
gradient | property |
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
FillStyle | () | constructor |
public function FillStyle(params:Object = null)
Constructs a new FillStyle instance, optionally initializing it from an object.
Parametersparams:Object (default = null ) — An initialization object that contains a set of initial
values for the new FillStyle object.
|
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, });
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.
Parametersstyles:Array — An array of FillStyle objects to merge.
|
FillStyle |
toString | () | method |
public function toString():String
Returns a String representation of this object.
ReturnsString — String representation of the style.
|