Packagecom.nocircleno.graffiti.managers
Classpublic class GraffitiObjectManager
InheritanceGraffitiObjectManager Inheritance flash.events.EventDispatcher

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10 - AIR 1.5

GraffitiObjectManager Class manages graffiti objects on the GraffitiCanvas. This is a singleton class, use the GraffitiObjectManager.getInstance() method to get an instance of this class.



Public Methods
 MethodDefined By
  
GraffitiObjectManager(param:SingletonEnforcer)
The GraffitiObjectManager constructor.
GraffitiObjectManager
  
The addObject method adds a GraffitObject to the assets list held by this Class.
GraffitiObjectManager
  
The areObjectsBeingEdited method checks to see if any object is being edited.
GraffitiObjectManager
  
The areObjectsSelected method checks to see if any object is currently selected.
GraffitiObjectManager
  
changeSettingsForSelectedObjects(settings:Object):void
The changeSettingsForSelectedObjects method updates the settings for all selected objects.
GraffitiObjectManager
  
The deleteSelected method deletes all selected objects.
GraffitiObjectManager
  
The deselectAll method deselects all selected objects.
GraffitiObjectManager
  
The exitEditAll method will turn off any object that is being edited.
GraffitiObjectManager
  
[static] The getInstance method returns an instance of GraffitiObjectManager.
GraffitiObjectManager
  
Method : removeObject() Purpose : This method will remove a graffiti object from the manager.
GraffitiObjectManager
  
selectAll():void
The selectAll method selects all registered objects.
GraffitiObjectManager
  
setSelection(objectList:Vector.<GraffitiObject>):void
The setSelection method selects one or more grafffiti objects.
GraffitiObjectManager
Constructor Detail
GraffitiObjectManager()Constructor
public function GraffitiObjectManager(param:SingletonEnforcer)

The GraffitiObjectManager constructor.

Parameters
param:SingletonEnforcer

Example
The following code gets an instance of the GraffitiObjectManager.
        var goManager:GraffitiObjectManager = GraffitiObjectManager.getInstance();
        
Method Detail
addObject()method
public function addObject(object:GraffitiObject):void

The addObject method adds a GraffitObject to the assets list held by this Class.

Parameters

object:GraffitiObject — GraffitObject

areObjectsBeingEdited()method 
public function areObjectsBeingEdited():Boolean

The areObjectsBeingEdited method checks to see if any object is being edited.

Returns
Boolean — true if one or more objects are edited, false if not.
areObjectsSelected()method 
public function areObjectsSelected():Boolean

The areObjectsSelected method checks to see if any object is currently selected.

Returns
Boolean — true if one or more objects are selected, false if not.
changeSettingsForSelectedObjects()method 
public function changeSettingsForSelectedObjects(settings:Object):void

The changeSettingsForSelectedObjects method updates the settings for all selected objects.

Parameters

settings:Object — Object that contains the settings for a GraffitObject.

deleteSelected()method 
public function deleteSelected():void

The deleteSelected method deletes all selected objects. This method removes the objects from the display list.

deselectAll()method 
public function deselectAll():void

The deselectAll method deselects all selected objects.

exitEditAll()method 
public function exitEditAll():void

The exitEditAll method will turn off any object that is being edited.

getInstance()method 
public static function getInstance():GraffitiObjectManager

The getInstance method returns an instance of GraffitiObjectManager.

Returns
GraffitiObjectManager — GraffitiObjectManager instance.
removeObject()method 
public function removeObject(object:GraffitiObject):void

Method : removeObject() Purpose : This method will remove a graffiti object from the manager. This method does not remove the object from the display list. Params : object - GraffitiObject

Parameters

object:GraffitiObject

selectAll()method 
public function selectAll():void

The selectAll method selects all registered objects.

setSelection()method 
public function setSelection(objectList:Vector.<GraffitiObject>):void

The setSelection method selects one or more grafffiti objects.

Parameters

objectList:Vector.<GraffitiObject> — Vector of GraffitObjects to select.