Packagecom.asterisq.constellation.controllers
Classpublic class ConstellationController
InheritanceConstellationController Inheritance flash.events.EventDispatcher
ImplementsIConstellationController

Base class for a constellation controller. The controller provides the interface between the graph loader and the constellation visualization component. This typically involves managing UI events, calculating the view graph from the model, and requesting graph data from the server using the graph loader.



Public Properties
 PropertyDefined by
  constellation : IConstellation
The IConstellation instance which displays the graph data.
ConstellationController
  graphLoader : IGraphLoader
The IGraphLoader instance which provides the model data.
ConstellationController
Public Methods
 MethodDefined by
  
Creates a new constellation controller.
ConstellationController
  
fromXML(controllerElem:XML):ConstellationController
[static] Creates an IConstellationController instance and initializes it with the given XML data.
ConstellationController
Protected Methods
 MethodDefined by
  
loadValuesFromXML(controllerElem:XML):void
Updates this controller with values from the given XML element.
ConstellationController
Property detail
constellationproperty
constellation:IConstellation  [read-write]

The IConstellation instance which displays the graph data.

Implementation
    public function get constellation():IConstellation
    public function set constellation(value:IConstellation):void
graphLoaderproperty 
graphLoader:IGraphLoader  [read-write]

The IGraphLoader instance which provides the model data.

Implementation
    public function get graphLoader():IGraphLoader
    public function set graphLoader(value:IGraphLoader):void
Constructor detail
ConstellationController()constructor
public function ConstellationController()

Creates a new constellation controller.

Method detail
fromXML()method
public static function fromXML(controllerElem:XML):ConstellationController

Creates an IConstellationController instance and initializes it with the given XML data. The particular IBehavior that is loaded depends on the value of the class_name attribute.

Parameters
controllerElem:XML

Returns
ConstellationController
loadValuesFromXML()method 
protected function loadValuesFromXML(controllerElem:XML):void

Updates this controller with values from the given XML element. This method should be overridden to update this IConstellationController.

Parameters
controllerElem:XML