Packagecom.afcomponents.umap.gui
Classpublic class MapTypeControl
InheritanceMapTypeControl Inheritance UIMapControl Inheritance fl.core.UIComponent

MapTypeControl



Public Properties
 PropertyDefined by
  align : Align
Gets or sets the control's alignment.
MapTypeControl
 InheritedasDisplayObject : DisplayObject
Returns reference to the object as a DisplayObject instance.
UIMapControl
  buttons : Array
[read-only]
MapTypeControl
 Inheritedcore : UMap
Returns reference to the core UMap object.
UIMapControl
 Inheriteddisplay : String
UIMapControl
 InheritedDISPLAY_COMPACT : String = "compact"
[static]
UIMapControl
 InheritedDISPLAY_EXPANDED : String = "expanded"
[static]
UIMapControl
  displayProvider : String
Gets or sets display option for the provider button
MapTypeControl
 Inheritedid : uint
Gets or sets the ID of the object.
UIMapControl
 InheritedminSize : Size
Gets or sets control's minimum size.
UIMapControl
 Inheritedname : String
UIMapControl
 Inheritedoffset : Offset
Gets or sets the control's offset position.
UIMapControl
 Inheritedowner : IMapObjectContainer
Returns reference to the owner container object.
UIMapControl
 Inheritedpadding : Point
Gets or sets the control's padding value.
UIMapControl
  providerButton : DropdownButton
[read-only] Returns reference to the provider button.
MapTypeControl
  PROVIDERS : Array
[static] Array of Objects which define the list of avaiable providers.
MapTypeControl
 InheritedstackAlignment : String
Gets or sets control's stack alignment.
UIMapControl
 InheritedSTACK_HORIZONTAL : String = "horizontal"
[static]
UIMapControl
  stackPadding : Point
Gets or sets control's stack padding value.
MapTypeControl
 InheritedSTACK_VERTICAL : String = "vertical"
[static]
UIMapControl
Public Methods
 MethodDefined by
  
MapTypeControl(param:Object = null)
MapTypeControl
  
addButton(button:GuiButton, before:uint = 0):GuiButton
MapTypeControl
  
MapTypeControl
 Inherited
cancelDoubleClick(event:MouseEvent = null):void
UIMapControl
 Inherited
cancelDragging(event:MouseEvent = null):void
UIMapControl
  
dispose():void
Releases all the resources accuired by the object.
MapTypeControl
 Inherited
UIMapControl
 Inherited
init():void
Invoked when control has been attached to GuiManager, or when UMap has been initialized.
UIMapControl
  
ready():void
Invoked when UMap enters ready() state.
MapTypeControl
  
refresh():void
Refreshes the control.
MapTypeControl
 Inherited
remove():void
Removes the object from the owner container object.
UIMapControl
  
Removes and destroys all buttons.
MapTypeControl
  
removeButton(button:GuiButton):void
MapTypeControl
 Inherited
Invoked by GuiManager to report the available space this control can occupy.
UIMapControl
 Inherited
Adds the object to the specified IMapObjectContainer.
UIMapControl
 Inherited
setRefreshCallback(refresh:Function):void
Sets the callback function which should be called by the control after it's size has been updated.
UIMapControl
  
updateMapType(mapType:IMapType):void
Invoked when map type has been updated.
MapTypeControl
 Inherited
updatePosition(latlng:LatLng):void
Invoked when map center has been updated.
UIMapControl
 Inherited
updateSize(width:Number, height:Number):void
Invoked when the UMap Component size has been updated.
UIMapControl
 Inherited
updateZoom(zoom:Number):void
Invoked when map zoom level has been updated.
UIMapControl
Protected Methods
 MethodDefined by
  
buttonResized(event:Event):void
MapTypeControl
  
MapTypeControl
 Inherited
UIMapControl
Public Constants
 ConstantDefined by
  DISPLAY_FIRST : String = "first"
[static] Defines first display position.
MapTypeControl
  DISPLAY_LAST : String = "last"
[static] Defines last display position.
MapTypeControl
  DISPLAY_NONE : String = "none"
[static] Defines no display.
MapTypeControl
Property detail
alignproperty
align:Align  [read-write]

Gets or sets the control's alignment. Use Align constants.

Implementation
    public function get align():Align
    public function set align(value:Align):void
buttonsproperty 
buttons:Array  [read-only]

Implementation
    public function get buttons():Array
displayProviderproperty 
displayProvider:String  [read-write]

Gets or sets display option for the provider button

The default value is first.

Implementation
    public function get displayProvider():String
    public function set displayProvider(value:String):void
providerButtonproperty 
providerButton:DropdownButton  [read-only]

Returns reference to the provider button.

Implementation
    public function get providerButton():DropdownButton
PROVIDERSproperty 
public static var PROVIDERS:Array

Array of Objects which define the list of avaiable providers.

Each Object has label and data properties. Label defines the text that will be shown in the list and the data property defines the qualified class name of the provider object.

  MapTypeControl.PROVIDERS.push({label:"My Provider", data:getQualifiedClassName(MyProvider)});
  
stackPaddingproperty 
stackPadding:Point  [read-write]

Gets or sets control's stack padding value.

Implementation
    public function get stackPadding():Point
    public function set stackPadding(value:Point):void
Constructor detail
MapTypeControl()constructor
public function MapTypeControl(param:Object = null)

Parameters
param:Object (default = null)
Method detail
addButton()method
public function addButton(button:GuiButton, before:uint = 0):GuiButton

Parameters
button:GuiButton
 
before:uint (default = 0)

Returns
GuiButton
arrangeButtons()method 
public function arrangeButtons():void

buttonResized()method 
protected function buttonResized(event:Event):voidParameters
event:Event
changeProvider()method 
protected function changeProvider(event:ButtonEvent):voidParameters
event:ButtonEvent
dispose()method 
public override function dispose():void

Releases all the resources accuired by the object.

ready()method 
public override function ready():void

Invoked when UMap enters ready() state.

refresh()method 
public override function refresh():void

Refreshes the control.

removeAllButtons()method 
public function removeAllButtons():void

Removes and destroys all buttons.

removeButton()method 
public function removeButton(button:GuiButton):void

Parameters
button:GuiButton
updateMapType()method 
public override function updateMapType(mapType:IMapType):void

Invoked when map type has been updated.

Parameters
mapType:IMapType — Reference to the new map type.
Constant detail
DISPLAY_FIRSTconstant
public static const DISPLAY_FIRST:String = "first"

Defines first display position.

DISPLAY_LASTconstant 
public static const DISPLAY_LAST:String = "last"

Defines last display position.

DISPLAY_NONEconstant 
public static const DISPLAY_NONE:String = "none"

Defines no display.