Packagecom.afcomponents.umap.interfaces
Interfacepublic interface IMapObject extends flash.events.IEventDispatcher
SubinterfacesIGridSegment, IManager, IMapControl, IMapObjectContainer, IOverlay
ImplementorsControl, Display, ImageLoader, Layer, MapObject, MapObjectContainer, MouseHandler, Overlay, UIMapControl

IMapObject is the base interface for the display objects used in the UMap.



Public Properties
 PropertyDefined by
  asDisplayObject : DisplayObject
[read-only] Returns reference to the object as a DisplayObject instance.
IMapObject
  core : UMap
[read-only] Returns reference to the core UMap object.
IMapObject
  id : uint
Gets or sets the ID of the object.
IMapObject
  name : String
Gets or sets the name of the object.
IMapObject
  owner : IMapObjectContainer
[read-only] Returns reference to the owner container object.
IMapObject
Public Methods
 MethodDefined by
  
dispose():void
Releases all the resources accuired by the object.
IMapObject
  
remove():void
Removes the object from the owner container object.
IMapObject
  
Adds the object to the specified IMapObjectContainer.
IMapObject
  
toString():String
Returns a textual representation of the object.
IMapObject
Property detail
asDisplayObjectproperty
asDisplayObject:DisplayObject  [read-only]

Returns reference to the object as a DisplayObject instance.

Implementation
    public function get asDisplayObject():DisplayObject
coreproperty 
core:UMap  [read-only]

Returns reference to the core UMap object.

Implementation
    public function get core():UMap
idproperty 
id:uint  [read-write]

Gets or sets the ID of the object.

Implementation
    public function get id():uint
    public function set id(value:uint):void
nameproperty 
name:String  [read-write]

Gets or sets the name of the object.

Implementation
    public function get name():String
    public function set name(value:String):void
ownerproperty 
owner:IMapObjectContainer  [read-only]

Returns reference to the owner container object.

Implementation
    public function get owner():IMapObjectContainer
Method detail
dispose()method
public function dispose():void

Releases all the resources accuired by the object.

remove()method 
public function remove():void

Removes the object from the owner container object.

setOwner()method 
public function setOwner(owner:IMapObjectContainer):void

Adds the object to the specified IMapObjectContainer.

If the object was previosly attached to a container, object will be removed from it. If you specify null instead of the owner, IllegalOperationError will be thrown.

Parameters
owner:IMapObjectContainer — New owner of the object.

Throws
— If the owner parameter has the value of null.
toString()method 
public function toString():String

Returns a textual representation of the object. Template: (name:classname)

Returns
String