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
 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
 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:Button, before:uint = 0):Button
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
  
MapTypeControl
  
removeButton(button:Button):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
 Inherited
UIMapControl
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
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:Button, before:uint = 0):Button

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

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

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

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

Parameters
button:Button
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.