API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class Control

Package | org.openscales.component.control
Class | public class Control
Inheritance | Control mx.containers.Canvas
Implements | org.openscales.core.control.IControl
Subclasses | Capabilities, FeatureDrawing, FeatureInfo, LayerSwitcher, MousePosition, OverviewMap, Pan, TraceInfo, YahooSearch, Zoom, ZoomBox

Public Properties

| Property | Defined by
--- | --- | ---
|  | active : Boolean | Control
|  | fxmap : FxMap | Control
|  | map : Map | Control
|  | position : Pixel | Control

Protected Properties

| Property | Defined by
--- | --- | ---
|  | _active : Boolean = false | Control
|  | _fxmap : FxMap = null | Control
|  | _isInitialized : Boolean = false Store if this control have been initialized (Event.COMPLETE has been thrown) | Control
|  | _map : Map = null | Control

Public Methods

| Method | Defined by
--- | --- | ---
|  | Control() | Control
|  | draw():void | Control

Protected Methods

| Method | Defined by
--- | --- | ---
|  | onCreationComplete(event:Event):void The Flex side of the control has been created, so activate the control if needed and if the map has been set | Control
|  | onFxMapCreationComplete(event:Event):void Flex Map wrapper initialization | Control

Property detail

_active | property

`protected var _active:Boolean = false`

active | property |

`active:Boolean` [read-write]Implementation
`public function get active():Boolean`
`public function set active(value:Boolean):void`

_fxmap | property |

`protected var _fxmap:FxMap = null`

fxmap | property |

`fxmap:FxMap` [read-write]Implementation
`public function get fxmap():FxMap`
`public function set fxmap(value:FxMap):void`

_isInitialized | property |

`protected var _isInitialized:Boolean = false`

Store if this control have been initialized (Event.COMPLETE has been thrown)

_map | property |

`protected var _map:Map = null`

map | property |

`map:Map` [read-write]

This property can be used as the source for data binding.

Implementation
`public function get map():Map`
`public function set map(value:Map):void`

position | property |

`position:Pixel` [read-write]Implementation
`public function get position():Pixel`
`public function set position(value:Pixel):void`
Constructor detail

Control | () | constructor

`public function Control()`
Method detail

draw | () | method

`public function draw():void`

onCreationComplete | () | method |

`protected function onCreationComplete(event:Event):void`

The Flex side of the control has been created, so activate the control if needed and if the map has been set

Parameters

| `event:Event`

onFxMapCreationComplete | () | method |

`protected function onFxMapCreationComplete(event:Event):void`

Flex Map wrapper initialization

Parameters

| `event:Event`