Packagecom.google.maps.styles
Classpublic class ButtonFaceStyle
InheritanceButtonFaceStyle Inheritance BevelStyle Inheritance RectangleStyle

Class ButtonFaceStyle specifies a set of parameters for drawing a button face in a specific state (up/over/down).



Public Properties
 PropertyDefined by
 InheritedbevelAlpha : Object
A number that specifies the bevel's alpha.
BevelStyle
 InheritedbevelStyle : Object
Bevel type (one of BevelStyle.NONE, BevelStyle.RAISED or BevelStyle.LOWERED).
BevelStyle
 InheritedbevelThickness : Object
A number that specifies the bevel's thickness.
BevelStyle
 InheritedfillStyle : FillStyle
Rectangle's fill style.
RectangleStyle
 InheritedhighlightColor : Object
A number that specifies the bevel's highlight color.
BevelStyle
  labelFormat : TextFormat
Button's label format.
ButtonFaceStyle
 InheritedshadowColor : Object
A number that specifies the bevel's shadow color.
BevelStyle
 InheritedstrokeStyle : StrokeStyle
Rectangle's stroke style.
RectangleStyle
Public Methods
 MethodDefined by
  
ButtonFaceStyle(params:Object = null)
Constructs a ButtonFaceStyle instance, optionally initializing it from an object.
ButtonFaceStyle
  
[static] Merges two or more ButtonFaceStyle objects.
ButtonFaceStyle
  
toString():String
Returns a String representation of this object.
ButtonFaceStyle
Public Constants
 ConstantDefined by
 InheritedBEVEL_LOWERED : Number = 2
[static] Lowered bevel.
BevelStyle
 InheritedBEVEL_NONE : Number = 0
[static] No bevel.
BevelStyle
 InheritedBEVEL_RAISED : Number = 1
[static] Raised bevel.
BevelStyle
Property detail
labelFormatproperty
labelFormat:TextFormat  [read-write]

Button's label format.

Implementation
    public function get labelFormat():TextFormat
    public function set labelFormat(value:TextFormat):void
Constructor detail
ButtonFaceStyle()constructor
public function ButtonFaceStyle(params:Object = null)

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

Example
   var style:ButtonFaceStyle = new ButtonFaceStyle({
     bevelStyle: BevelStyle.BEVEL_RAISED,
     bevelThickness: 1,
     bevelAlpha: 0.5,
     highlightColor: 0xff0040,
     shadowColor: 0x000000,
     fillStyle: {
       color: 0xa0a0a0,
       alpha: 1
     },
     strokeStyle: {
       color: 0x000000,
       alpha: 2
     },
     labelFormat: {
       font: "_sans",
       size: 12,
     }
   });
   

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

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

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

Returns a String representation of this object.

Returns
String — String representation of the style.