Packagecom.afcomponents.umap.display
Classpublic class GridSegment
InheritanceGridSegment Inheritance MapObject Inheritance flash.display.Sprite
ImplementsIGridSegment

GridSegment



Public Properties
 PropertyDefined by
 InheritedasDisplayObject : DisplayObject
Returns reference to the object as a DisplayObject instance.
MapObject
 Inheritedcore : UMap
Returns reference to the core UMap object.
MapObject
 Inheritedid : uint
Gets or sets the ID of the object.
MapObject
  job : ImageLoaderJob
GridSegment
 Inheritedname : String
Gets or sets the name of the object.
MapObject
 Inheritedowner : IMapObjectContainer
Returns reference to the owner container object.
MapObject
  point : Point
[read-only] Returns segment's point.
GridSegment
  priority : uint
[read-only] Returns segment's priority.
GridSegment
  zoom : uint
[read-only] Returns segment's zoom level.
GridSegment
Public Methods
 MethodDefined by
  
GridSegment(param:Object = null)
GridSegment
  
addLayer(layer:ITileLayer):void
GridSegment
  
dispose():void
Releases all the resources accuired by the object.
GridSegment
  
equals(other:IGridSegment):Boolean
Compares the position of this segment to the other.
GridSegment
  
init(point:Point, zoom:uint, priority:uint = 0):void
Sets segements options, and starts loading the image(s) for this segment.
GridSegment
 Inherited
remove():void
Removes the object from the owner container object.
MapObject
  
Attaches an error symbol to the segment and sets it's caption.
GridSegment
 Inherited
Adds the object to the specified IMapObjectContainer.
MapObject
 Inherited
toString():String
Returns a textual representation of the object.
MapObject
Property detail
jobproperty
job:ImageLoaderJob  [read-write]

Implementation
    public function get job():ImageLoaderJob
    public function set job(value:ImageLoaderJob):void
pointproperty 
point:Point  [read-only]

Returns segment's point.

Implementation
    public function get point():Point
priorityproperty 
priority:uint  [read-only]

Returns segment's priority.

Implementation
    public function get priority():uint
zoomproperty 
zoom:uint  [read-only]

Returns segment's zoom level.

Implementation
    public function get zoom():uint
Constructor detail
GridSegment()constructor
public function GridSegment(param:Object = null)

Parameters
param:Object (default = null)
Method detail
addLayer()method
public function addLayer(layer:ITileLayer):void

Parameters
layer:ITileLayer
dispose()method 
public override function dispose():void

Releases all the resources accuired by the object.

equals()method 
public function equals(other:IGridSegment):Boolean

Compares the position of this segment to the other.

Parameters
other:IGridSegment

Returns
Boolean — A value of true if point and zoom level of the segments are equal; false if they are not.
init()method 
public function init(point:Point, zoom:uint, priority:uint = 0):void

Sets segements options, and starts loading the image(s) for this segment.

Parameters
point:Point — Object wich specifies the position of the segement in tile coordinates.
 
zoom:uint — Zoom level of segment.
 
priority:uint (default = 0) — Loading priority of the segement.
setErrorImage()method 
public function setErrorImage():void

Attaches an error symbol to the segment and sets it's caption.