| Package | com.afcomponents.umap.interfaces |
| Interface | public interface IMapControl extends IMapObject, flash.events.IEventDispatcher |
| Implementors | MapControl, UIMapControl |
| Property | Defined by | ||
|---|---|---|---|
| align : Align
Gets or sets the control's alignment.
| IMapControl | ||
![]() | asDisplayObject : DisplayObject
Returns reference to the object as a DisplayObject instance.
| IMapObject | |
![]() | core : UMap
Returns reference to the core UMap object.
| IMapObject | |
![]() | id : uint
Gets or sets the ID of the object.
| IMapObject | |
| minSize : Size
Gets or sets control's minimum size.
| IMapControl | ||
![]() | name : String
Gets or sets the name of the object.
| IMapObject | |
| offset : Offset
Gets or sets the control's offset position.
| IMapControl | ||
![]() | owner : IMapObjectContainer
Returns reference to the owner container object.
| IMapObject | |
| padding : Point
Gets or sets the control's padding value.
| IMapControl | ||
| stackAlignment : String
Gets or sets control's stack alignment.
| IMapControl | ||
| stackPadding : Point
Gets or sets control's stack padding value.
| IMapControl | ||
| visible : Boolean | IMapControl | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
dispose():void
Releases all the resources accuired by the object.
| IMapObject | |
| IMapControl | |||
|
init():void
Invoked when control has been attached to GuiManager, or when UMap has been initialized.
| IMapControl | ||
|
ready():void
Invoked when UMap enters ready() state.
| IMapControl | ||
|
refresh():void
Refreshes the control.
| IMapControl | ||
![]() |
remove():void
Removes the object from the owner container object.
| IMapObject | |
|
setAvailableSize(size:Size):void
Invoked by GuiManager to report the available space this control can occupy.
| IMapControl | ||
![]() |
setOwner(owner:IMapObjectContainer):void
Adds the object to the specified IMapObjectContainer.
| IMapObject | |
|
setRefreshCallback(refresh:Function):void
Sets the callback function which should be called by the control after it's size has been updated.
| IMapControl | ||
![]() |
toString():String
Returns a textual representation of the object.
| IMapObject | |
|
updateMapType(mapType:IMapType):void
Invoked when map type has been updated.
| IMapControl | ||
|
updatePosition(latlng:LatLng):void
Invoked when map center has been updated.
| IMapControl | ||
|
updateSize(width:Number, height:Number):void
Invoked when the UMap Component size has been updated.
| IMapControl | ||
|
updateZoom(zoom:Number):void
Invoked when map zoom level has been updated.
| IMapControl | ||
| 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
| minSize | property |
minSize:Size [read-write]Gets or sets control's minimum size.
Implementation public function get minSize():Size
public function set minSize(value:Size):void
| offset | property |
offset:Offset [read-write]Gets or sets the control's offset position.
Implementation public function get offset():Offset
public function set offset(value:Offset):void
| padding | property |
padding:Point [read-write]Gets or sets the control's padding value.
Implementation public function get padding():Point
public function set padding(value:Point):void
| stackAlignment | property |
stackAlignment:String [read-write]
Gets or sets control's stack alignment.
Can be either MapControl.STACK_VERTICAL or MapControl.STACK_HORIZONTAL.
public function get stackAlignment():String
public function set stackAlignment(value:String):void
| 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
| visible | property |
visible:Boolean [read-write]Implementation
public function get visible():Boolean
public function set visible(value:Boolean):void
| getBoundsXY | () | method |
| init | () | method |
public function init():voidInvoked when control has been attached to GuiManager, or when UMap has been initialized.
| ready | () | method |
public function ready():voidInvoked when UMap enters ready() state.
| refresh | () | method |
public function refresh():voidRefreshes the control.
| setAvailableSize | () | method |
public function setAvailableSize(size:Size):voidInvoked by GuiManager to report the available space this control can occupy.
Parameterssize:Size — Dimensions of the available space.
|
| setRefreshCallback | () | method |
public function setRefreshCallback(refresh:Function):voidSets the callback function which should be called by the control after it's size has been updated. GuiManager uses this function to re-align the control.
Parametersrefresh:Function |
| updateMapType | () | method |
public function updateMapType(mapType:IMapType):voidInvoked when map type has been updated.
ParametersmapType:IMapType — Reference to the new map type.
|
| updatePosition | () | method |
public function updatePosition(latlng:LatLng):voidInvoked when map center has been updated.
Parameterslatlng:LatLng — Geographical coordinates of the new map center.
|
| updateSize | () | method |
public function updateSize(width:Number, height:Number):voidInvoked when the UMap Component size has been updated.
Parameterswidth:Number — New width of the component.
|
|
height:Number — New height of the component.
|
| updateZoom | () | method |
public function updateZoom(zoom:Number):voidInvoked when map zoom level has been updated.
Parameterszoom:Number — New zoom level.
|