Packagecom.google.maps.styles
Classpublic class ButtonStyle

Class ButtonStyle specifies a set of parameters for drawing buttons.



Public Properties
 PropertyDefined by
  downState : ButtonFaceStyle
Style of the button in the "down" state.
ButtonStyle
  overState : ButtonFaceStyle
Style of the button in the "over" state.
ButtonStyle
  upState : ButtonFaceStyle
Style of the button in the "up" state.
ButtonStyle
Public Methods
 MethodDefined by
  
ButtonStyle(params:Object = null)
Constructs a ButtonStyle instance, optionally initializing it from an object.
ButtonStyle
  
mergeStyles(styles:Array):ButtonStyle
[static] Merges two or more ButtonStyle objects.
ButtonStyle
  
Specified a set of bevel style properties for all button states.
ButtonStyle
  
toString():String
toString method.
ButtonStyle
Property detail
downStateproperty
downState:ButtonFaceStyle  [read-write]

Style of the button in the "down" state.

Implementation
    public function get downState():ButtonFaceStyle
    public function set downState(value:ButtonFaceStyle):void
overStateproperty 
overState:ButtonFaceStyle  [read-write]

Style of the button in the "over" state.

Implementation
    public function get overState():ButtonFaceStyle
    public function set overState(value:ButtonFaceStyle):void
upStateproperty 
upState:ButtonFaceStyle  [read-write]

Style of the button in the "up" state.

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

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

Example
   var style:ButtonStyle = new ButtonStyle({
     allStates: {
       fillStyle: {
         color: 0xA0A0A0,
         alpha: 1.0
       },
       strokeStyle: {
         color: 0x000000,
         thickness: 2
       },
       labelFormat: {
         size: 12,
         font: "_sans"
       },
       bevelThickness: 1.5,
       bevelAlpha: 0.5,
       highlightColor: 0xffffff,
       shadowColor: 0x000000
     },
     upState: {
       bevelStyle: BevelStyle.BEVEL_RAISED
     },
     overState: {
       bevelStyle: BevelStyle.BEVEL_RAISED
     },
     downState: {
       bevelStyle: BevelStyle.BEVEL_LOWERED,
       labelFormat: {
         bold: true
       }
     }
   });
   

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

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

Returns
ButtonStyle
setAllStates()method 
public function setAllStates(shared:ButtonFaceStyle):void

Specified a set of bevel style properties for all button states. This method supplements each of the state styles with the values from the ButtonFaceStyle passed as the parameter.

Parameters
shared:ButtonFaceStyle — Set of ButtonFaceStyle properties to share among all states of the button.
toString()method 
public function toString():String

toString method.

Returns
String — String representation of the style.