Packagecom.asterisq.graph
Classpublic class GraphItem
InheritanceGraphItem Inheritance flash.events.EventDispatcher
SubclassesEdge, Node

An item in a graph. Superclass of node and edge classes.



Public Properties
 PropertyDefined by
  data : Object
GraphItem
  id : String
[read-only]
GraphItem
Public Methods
 MethodDefined by
  
GraphItem(id:String, data:Object = null)
Creates a new graph item.
GraphItem
  
getDataProperty(propertyName:String):*
Fetches the value of a particular property of this graph item's data.
GraphItem
  
setDataProperty(propertyName:String, value:*):void
Sets the value of a particular property of this graph item's data.
GraphItem
  
toString():String
GraphItem
Property detail
dataproperty
data:Object  [read-write]

Implementation
    public function get data():Object
    public function set data(value:Object):void
idproperty 
id:String  [read-only]

Implementation
    public function get id():String
Constructor detail
GraphItem()constructor
public function GraphItem(id:String, data:Object = null)

Creates a new graph item.

Parameters
id:String
 
data:Object (default = null)
Method detail
getDataProperty()method
public function getDataProperty(propertyName:String):*

Fetches the value of a particular property of this graph item's data.

Parameters
propertyName:String

Returns
*
setDataProperty()method 
public function setDataProperty(propertyName:String, value:*):void

Sets the value of a particular property of this graph item's data.

Parameters
propertyName:String
 
value:*
toString()method 
public override function toString():String

Returns
String