| Package | com.afcomponents.umap.gui |
| Class | public class MapTypeControl |
| Inheritance | MapTypeControl UIMapControl fl.core.UIComponent |
| Property | Defined by | ||
|---|---|---|---|
| align : Align
Gets or sets the control's alignment.
| MapTypeControl | ||
![]() | asDisplayObject : DisplayObject
Returns reference to the object as a DisplayObject instance.
| UIMapControl | |
| buttons : Array [read-only]
| MapTypeControl | ||
![]() | core : UMap
Returns reference to the core UMap object.
| UIMapControl | |
![]() | display : String | UIMapControl | |
![]() | DISPLAY_COMPACT : String = "compact" [static]
| UIMapControl | |
![]() | DISPLAY_EXPANDED : String = "expanded" [static]
| UIMapControl | |
| displayProvider : String
Gets or sets display option for the provider button
| MapTypeControl | ||
![]() | id : uint
Gets or sets the ID of the object.
| UIMapControl | |
![]() | minSize : Size
Gets or sets control's minimum size.
| UIMapControl | |
![]() | name : String | UIMapControl | |
![]() | offset : Offset
Gets or sets the control's offset position.
| UIMapControl | |
![]() | owner : IMapObjectContainer
Returns reference to the owner container object.
| UIMapControl | |
![]() | padding : 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 | ||
![]() | stackAlignment : String
Gets or sets control's stack alignment.
| UIMapControl | |
![]() | STACK_HORIZONTAL : String = "horizontal" [static]
| UIMapControl | |
| stackPadding : Point
Gets or sets control's stack padding value.
| MapTypeControl | ||
![]() | STACK_VERTICAL : String = "vertical" [static]
| UIMapControl | |
| Method | Defined by | ||
|---|---|---|---|
|
MapTypeControl(param:Object = null)
| MapTypeControl | ||
|
| MapTypeControl | ||
|
arrangeButtons():void
| MapTypeControl | ||
![]() |
cancelDoubleClick(event:MouseEvent = null):void
| UIMapControl | |
![]() |
cancelDragging(event:MouseEvent = null):void
| UIMapControl | |
|
dispose():void
Releases all the resources accuired by the object.
| MapTypeControl | ||
![]() | UIMapControl | ||
![]() |
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 | ||
![]() |
remove():void
Removes the object from the owner container object.
| UIMapControl | |
|
removeAllButtons():void
Removes and destroys all buttons.
| MapTypeControl | ||
|
removeButton(button:GuiButton):void
| MapTypeControl | ||
![]() |
setAvailableSize(size:Size):void
Invoked by GuiManager to report the available space this control can occupy.
| UIMapControl | |
![]() |
setOwner(owner:IMapObjectContainer):void
Adds the object to the specified IMapObjectContainer.
| UIMapControl | |
![]() |
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 | ||
![]() |
updatePosition(latlng:LatLng):void
Invoked when map center has been updated.
| UIMapControl | |
![]() |
updateSize(width:Number, height:Number):void
Invoked when the UMap Component size has been updated.
| UIMapControl | |
![]() |
updateZoom(zoom:Number):void
Invoked when map zoom level has been updated.
| UIMapControl | |
| Method | Defined by | ||
|---|---|---|---|
|
buttonResized(event:Event):void
| MapTypeControl | ||
|
changeProvider(event:ButtonEvent):void
| MapTypeControl | ||
![]() |
createChildren():void
| UIMapControl | |
| Constant | Defined 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 | ||
| align | property |
align:Align [read-write]
Gets or sets the control's alignment. Use Align constants.
public function get align():Align
public function set align(value:Align):void
| buttons | property |
buttons:Array [read-only]Implementation
public function get buttons():Array
| displayProvider | property |
displayProvider:String [read-write]Gets or sets display option for the provider button
The default value is first.
public function get displayProvider():String
public function set displayProvider(value:String):void
| providerButton | property |
providerButton:DropdownButton [read-only]Returns reference to the provider button.
Implementation public function get providerButton():DropdownButton
| PROVIDERS | property |
public static var PROVIDERS:ArrayArray 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)});
| stackPadding | property |
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
| MapTypeControl | () | constructor |
public function MapTypeControl(param:Object = null)Parameters
param:Object (default = null) |
| addButton | () | method |
public function addButton(button:GuiButton, before:uint = 0):GuiButtonParameters
button:GuiButton |
|
before:uint (default = 0) |
GuiButton |
| arrangeButtons | () | method |
public function arrangeButtons():void
| buttonResized | () | method |
protected function buttonResized(event:Event):voidParameters
event:Event |
| changeProvider | () | method |
| dispose | () | method |
public override function dispose():voidReleases all the resources accuired by the object.
| ready | () | method |
public override function ready():voidInvoked when UMap enters ready() state.
| refresh | () | method |
public override function refresh():voidRefreshes the control.
| removeAllButtons | () | method |
public function removeAllButtons():voidRemoves and destroys all buttons.
| removeButton | () | method |
| updateMapType | () | method |
public override function updateMapType(mapType:IMapType):voidInvoked when map type has been updated.
ParametersmapType:IMapType — Reference to the new map type.
|
| DISPLAY_FIRST | constant |
public static const DISPLAY_FIRST:String = "first"Defines first display position.
| DISPLAY_LAST | constant |
public static const DISPLAY_LAST:String = "last"Defines last display position.
| DISPLAY_NONE | constant |
public static const DISPLAY_NONE:String = "none"Defines no display.