Packagecom.google.maps.styles
Classpublic class RectangleStyle
SubclassesBevelStyle

Class RectangleStyle combines a FillStyle and a StrokeStyle to use for rendering a basic rectangle.



Public Properties
 PropertyDefined by
  fillStyle : FillStyle
Rectangle's fill style.
RectangleStyle
  strokeStyle : StrokeStyle
Rectangle's stroke style.
RectangleStyle
Public Methods
 MethodDefined by
  
RectangleStyle(params:Object = null)
Constructs a RectangleStyle instance, optionally initializing it from an object.
RectangleStyle
  
mergeStyles(styles:Array):RectangleStyle
[static] Merges two or more RectangleStyle objects.
RectangleStyle
  
toString():String
Returns a String representation of this object.
RectangleStyle
Property detail
fillStyleproperty
fillStyle:FillStyle  [read-write]

Rectangle's fill style.

Implementation
    public function get fillStyle():FillStyle
    public function set fillStyle(value:FillStyle):void
strokeStyleproperty 
strokeStyle:StrokeStyle  [read-write]

Rectangle's stroke style.

Implementation
    public function get strokeStyle():StrokeStyle
    public function set strokeStyle(value:StrokeStyle):void
Constructor detail
RectangleStyle()constructor
public function RectangleStyle(params:Object = null)

Constructs a RectangleStyle 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 RectangleStyle object.

Example
   var style:RectangleStyle = new RectangleStyle({
     fillStyle: {
       color: 0xa0a0a0,
       alpha: 1
     },
     strokeStyle: {
       color: 0x000000,
       alpha: 2
     }
   });
   

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

Merges two or more RectangleStyle 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 RectangleStyle objects to merge.

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

Returns a String representation of this object.

Returns
String — String representation of the style.