Packageorg.omoa.layer
Classpublic class AbstractLayer
InheritanceAbstractLayer Inheritance flash.events.EventDispatcher
Implements ILayer
Subclasses ImageLayer, SymbolLayer

This is an abstract implementation of the ILayer interface.



Public Properties
 PropertyDefined By
  description : String
[read-only]
AbstractLayer
  id : String
[read-only]
AbstractLayer
  legend : ILegend
[read-only]
AbstractLayer
  spaceModel : ISpaceModel
[read-only]
AbstractLayer
  title : String
[read-only]
AbstractLayer
  type : String
[read-only]
AbstractLayer
Protected Properties
 PropertyDefined By
  _description : String
AbstractLayer
  _id : String
AbstractLayer
  _legend : ILegend
AbstractLayer
  _spaceModel : ISpaceModel
AbstractLayer
  _title : String
AbstractLayer
  _type : String = AbstractLayer
AbstractLayer
Public Methods
 MethodDefined By
  
AbstractLayer(id:String, spaceModel:ISpaceModel)
AbstractLayer
  
cleanup(sprite:Sprite):void
AbstractLayer
  
create(className:String, name:String, spacemodel:ISpaceModel):ILayer
[static] Creates an ILayer instance.
AbstractLayer
  
isSetup(sprite:Sprite):Boolean
AbstractLayer
  
recenter(sprite:Sprite, displayExtent:Rectangle, viewportBounds:BoundingBox, transformation:Matrix):void
AbstractLayer
  
render(sprite:Sprite, displayExtent:Rectangle, viewportBounds:BoundingBox, transformation:Matrix):void
AbstractLayer
  
rescale(sprite:Sprite, displayExtent:Rectangle, viewportBounds:BoundingBox, transformation:Matrix):void
AbstractLayer
  
setSpaceModel(spacemodel:ISpaceModel):void
AbstractLayer
  
setup(sprite:Sprite):void
AbstractLayer
Property Detail
_descriptionproperty
protected var _description:String

_idproperty 
protected var _id:String

_legendproperty 
protected var _legend:ILegend

_spaceModelproperty 
protected var _spaceModel:ISpaceModel

_titleproperty 
protected var _title:String

_typeproperty 
protected var _type:String = AbstractLayer

descriptionproperty 
description:String  [read-only]


Implementation
    public function get description():String
idproperty 
id:String  [read-only]


Implementation
    public function get id():String
legendproperty 
legend:ILegend  [read-only]


Implementation
    public function get legend():ILegend
spaceModelproperty 
spaceModel:ISpaceModel  [read-only]


Implementation
    public function get spaceModel():ISpaceModel
titleproperty 
title:String  [read-only]


Implementation
    public function get title():String
typeproperty 
type:String  [read-only]


Implementation
    public function get type():String
Constructor Detail
AbstractLayer()Constructor
public function AbstractLayer(id:String, spaceModel:ISpaceModel)



Parameters
id:String
 
spaceModel:ISpaceModel
Method Detail
cleanup()method
public function cleanup(sprite:Sprite):void

Parameters

sprite:Sprite

create()method 
public static function create(className:String, name:String, spacemodel:ISpaceModel):ILayer

Creates an ILayer instance.

Parameters

className:String — The name of the loader class, for example "SymbolLayer". If you want to create an instance of your own loader subclass you need to include the package.
 
name:String — This will set the name/id property of the layer.
 
spacemodel:ISpaceModel

Returns
ILayer — Returns the ISpaceModelLoader instance or throws an ReferenceError.

Throws
ReferenceError
isSetup()method 
public function isSetup(sprite:Sprite):Boolean

Parameters

sprite:Sprite

Returns
Boolean
recenter()method 
public function recenter(sprite:Sprite, displayExtent:Rectangle, viewportBounds:BoundingBox, transformation:Matrix):void

Parameters

sprite:Sprite
 
displayExtent:Rectangle
 
viewportBounds:BoundingBox
 
transformation:Matrix

render()method 
public function render(sprite:Sprite, displayExtent:Rectangle, viewportBounds:BoundingBox, transformation:Matrix):void

Parameters

sprite:Sprite
 
displayExtent:Rectangle
 
viewportBounds:BoundingBox
 
transformation:Matrix

rescale()method 
public function rescale(sprite:Sprite, displayExtent:Rectangle, viewportBounds:BoundingBox, transformation:Matrix):void

Parameters

sprite:Sprite
 
displayExtent:Rectangle
 
viewportBounds:BoundingBox
 
transformation:Matrix

setSpaceModel()method 
public function setSpaceModel(spacemodel:ISpaceModel):void

Parameters

spacemodel:ISpaceModel

setup()method 
public function setup(sprite:Sprite):void

Parameters

sprite:Sprite