| Package | com.afcomponents.umap.core |
| Class | public class MapObject |
| Inheritance | MapObject flash.display.Sprite |
| Implements | IMapObject |
| Subclasses | GridSegment, ImageLoader, MapControl, MapObjectContainer, MouseHandler, Overlay |
It extends the Sprite class and implements the IMapObject interface.
You should never create an instance of this class directly.
| Property | Defined by | ||
|---|---|---|---|
| asDisplayObject : DisplayObject [read-only]
Returns reference to the object as a DisplayObject instance.
| MapObject | ||
| core : UMap
[read-only]
Returns reference to the core UMap object.
| MapObject | ||
| id : uint
Gets or sets the ID of the object.
| MapObject | ||
| name : String
Gets or sets the name of the object.
| MapObject | ||
| owner : IMapObjectContainer
[read-only]
Returns reference to the owner container object.
| MapObject | ||
| Method | Defined by | ||
|---|---|---|---|
|
MapObject(param:Object = null)
MapObject constructor.
| MapObject | ||
|
dispose():void
Releases all the resources accuired by the object.
| MapObject | ||
|
remove():void
Removes the object from the owner container object.
| MapObject | ||
|
setOwner(owner:IMapObjectContainer):void
Adds the object to the specified IMapObjectContainer.
| MapObject | ||
|
toString():String
Returns a textual representation of the object.
| MapObject | ||
| asDisplayObject | property |
asDisplayObject:DisplayObject [read-only]Returns reference to the object as a DisplayObject instance.
Implementation public function get asDisplayObject():DisplayObject
| core | property |
core:UMap [read-only]Returns reference to the core UMap object.
Implementation public function get core():UMap
| id | property |
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
| name | property |
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
| owner | property |
owner:IMapObjectContainer [read-only]Returns reference to the owner container object.
Implementation public function get owner():IMapObjectContainer
| MapObject | () | constructor |
public function MapObject(param:Object = null)
MapObject constructor. You can pass MapObject's id, name
and visibility via param object.
param:Object (default = null) — that specifies additional properties.
|
| dispose | () | method |
public function dispose():voidReleases all the resources accuired by the object.
| remove | () | method |
public function remove():voidRemoves the object from the owner container object.
| setOwner | () | method |
public function setOwner(owner:IMapObjectContainer):voidAdds 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.
owner:IMapObjectContainer — New owner of the object.
|
| toString | () | method |
public override function toString():String
Returns a textual representation of the object.
Template: (name:classname)
String |