Packagesrc
Classpublic class StationGraph



Public Properties
 PropertyDefined by
  focusID : uint
The station to center metric calculations around
StationGraph
  gridVals : Dictionary
StationGraph
  nodes : DataTable
List of all nodes -- all nodes involved in triangluation, including interpolated/edge padding nodes
StationGraph
  routeLines : Dictionary
Indices for points on a line, in line order
StationGraph
  stns : DataTable
List of all station (mutable) nodes
StationGraph
Protected Properties
 PropertyDefined by
  _coords : Dictionary
StationGraph
  _focusID : uint = 0
StationGraph
  _logicalsize : uint = 1000
StationGraph
  _scaleFactor : Dictionary
StationGraph
Public Methods
 MethodDefined by
  
StationGraph(data:XML, logicalsize:uint)
StationGraph
  
coords(geom:String):PointArray
StationGraph
Protected Methods
 MethodDefined by
  
buildLines():void
Gather up all the stations on a given line, in the order they occur on that line.
StationGraph
  
buildMetricCoords(geom:String):void
Push each point away from its current position to lie a distance "metric" away from the focus point.
StationGraph
  
buildStaticCoords(geom:String):void
Gather up all the coordinate attributes for this geometry into a pointarray
StationGraph
  
routesFromXML(data:XMLList):DataTable
Reads in route information from XML NOTE: routes DataTable indexes WILL NOT match their IDs.
StationGraph
  
stationsFromXML(data:XML):void
Memoize and return a PointArrayScaler object for the given set of coordinates
StationGraph
  
stationsFromXML(data:XML):void
Read station information from XML
StationGraph
Public Constants
 ConstantDefined by
  RLINECOLORS : Object
[static]
StationGraph
  RLINENAMES : Array
[static]
StationGraph
Property detail
_coordsproperty
protected var _coords:Dictionary
_focusIDproperty 
protected var _focusID:uint = 0
focusIDproperty 
focusID:uint  [read-write]

The station to center metric calculations around

This property can be used as the source for data binding.

Implementation
    public function get focusID():uint
    public function set focusID(value:uint):void
gridValsproperty 
public var gridVals:Dictionary
_logicalsizeproperty 
protected var _logicalsize:uint = 1000
nodesproperty 
public var nodes:DataTable

List of all nodes -- all nodes involved in triangluation, including interpolated/edge padding nodes

routeLinesproperty 
public var routeLines:Dictionary

Indices for points on a line, in line order

_scaleFactorproperty 
protected var _scaleFactor:Dictionary
stnsproperty 
public var stns:DataTable

List of all station (mutable) nodes

Constructor detail
StationGraph()constructor
public function StationGraph(data:XML, logicalsize:uint)Parameters
data:XML
 
logicalsize:uint
Method detail
buildLines()method
protected function buildLines():void

Gather up all the stations on a given line, in the order they occur on that line.

buildMetricCoords()method 
protected function buildMetricCoords(geom:String):void

Push each point away from its current position to lie a distance "metric" away from the focus point.

Parameters
geom:String
buildStaticCoords()method 
protected function buildStaticCoords(geom:String):void

Gather up all the coordinate attributes for this geometry into a pointarray

Parameters
geom:String
coords()method 
public function coords(geom:String):PointArrayParameters
geom:String

Returns
PointArray
routesFromXML()method 
protected function routesFromXML(data:XMLList):DataTable

Reads in route information from XML NOTE: routes DataTable indexes WILL NOT match their IDs. (there are one fewer routes than stations).

Parameters
data:XMLList — The subway node to interpret

Returns
DataTable
stationsFromXML()method 
protected function stationsFromXML(data:XML):void

Memoize and return a PointArrayScaler object for the given set of coordinates

Parameters
data:XML
stationsFromXML()method 
protected function stationsFromXML(data:XML):void

Read station information from XML

Parameters
data:XML — The subway node to interpret
Constant detail
RLINECOLORSconstant
public static const RLINECOLORS:Object
RLINENAMESconstant 
public static const RLINENAMES:Array