Packagesrc
Classpublic class ImageDeformer
InheritanceImageDeformer Inheritance mx.containers.Canvas



Public Properties
 PropertyDefined by
  drawElements : Object
A dictionary telling whether to draw certain elements
ImageDeformer
  mainmap : BitmapData
The main map, used for deformations.
ImageDeformer
  routesDataProvider : ArrayCollection
ImageDeformer
  scrollbarSize : Point
[read-only]
ImageDeformer
  stationDataProvider : ArrayCollection
Make charting classes happy: memoize info into an ArrayCollection.
ImageDeformer
  stations : StationGraph
Stations is an undirected graph of stations and line connections.
ImageDeformer
  stnTopology : StationTopology
Holds the topological structures built around the station/route network
ImageDeformer
  viewCenter : Point
ImageDeformer
  viewExtent : Rectangle
[read-only]
ImageDeformer
Protected Properties
 PropertyDefined by
  infoBox : TextArea
Some info
ImageDeformer
  infoMsgs : Dictionary
ImageDeformer
  _stationGeometry : String = "Clarified"
ImageDeformer
  _topologyData : XML = null
ImageDeformer
  zoomfactor : Number = 0.8
ImageDeformer
Public Methods
 MethodDefined by
  
Constructor.
ImageDeformer
  
feedFaultHandler(event:FaultEvent):void
ImageDeformer
  
metroFeedResultHandler(event:Object):void
ImageDeformer
  
setCurrBitmap(bitmapData:BitmapData):void
Sets a new drawing Bitmap
ImageDeformer
  
setDrawElement(drawElt:String, newstate:Boolean):void
ImageDeformer
  
setGeometry(geom:String):void
Change the geometry of the route map
ImageDeformer
  
setStationOfInterest(id:uint):void
Changes the center of the graph
ImageDeformer
  
setZoomFactor(newzf:Number):void
ImageDeformer
  
topologyFeedResultHandler(event:Object):void
ImageDeformer
Protected Methods
 MethodDefined by
  
drawNetwork():void
drawLines():void Draw the network of stations and lines
ImageDeformer
  
ImageDeformer
  
ImageDeformer
  
ImageDeformer
  
renderGrids(g:Graphics):void
renderGrids():void Draw each line in its corresponding color
ImageDeformer
  
renderLines(g:Graphics):void
drawLines():void Draw each line in its corresponding color
ImageDeformer
  
renderStations(g:Graphics):void
Show some helpful(?) info
ImageDeformer
  
renderStations(g:Graphics):void
Draw dots for each station
ImageDeformer
  
renderTriangulation(g:Graphics):void
Draw the background map
ImageDeformer
Public Constants
 ConstantDefined by
  bitmapsize : uint = 3000
ImageDeformer
  logicalsize : uint = 1000
ImageDeformer
Property detail
drawElementsproperty
public var drawElements:Object

A dictionary telling whether to draw certain elements

infoBoxproperty 
protected var infoBox:TextArea

Some info

infoMsgsproperty 
protected var infoMsgs:Dictionary
mainmapproperty 
public var mainmap:BitmapData

The main map, used for deformations.

routesDataProviderproperty 
public var routesDataProvider:ArrayCollection
scrollbarSizeproperty 
scrollbarSize:Point  [read-only]

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

Implementation
    public function get scrollbarSize():Point
stationDataProviderproperty 
public var stationDataProvider:ArrayCollection

Make charting classes happy: memoize info into an ArrayCollection.

_stationGeometryproperty 
protected var _stationGeometry:String = "Clarified"
stationsproperty 
public var stations:StationGraph

Stations is an undirected graph of stations and line connections. it also contains global informations relating each station (node) to each other node in the graph, like the time or cost to go from that station to any other.

stnTopologyproperty 
public var stnTopology:StationTopology

Holds the topological structures built around the station/route network

_topologyDataproperty 
protected var _topologyData:XML = null
viewCenterproperty 
viewCenter:Point  [read-write]

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

Implementation
    public function get viewCenter():Point
    public function set viewCenter(value:Point):void
viewExtentproperty 
viewExtent:Rectangle  [read-only]

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

Implementation
    public function get viewExtent():Rectangle
zoomfactorproperty 
protected var zoomfactor:Number = 0.8
Constructor detail
ImageDeformer()constructor
public function ImageDeformer()

Constructor. Registers event listeners

Method detail
drawNetwork()method
protected function drawNetwork():void

drawLines():void Draw the network of stations and lines

feedFaultHandler()method 
public function feedFaultHandler(event:FaultEvent):voidParameters
event:FaultEvent
metroFeedResultHandler()method 
public function metroFeedResultHandler(event:Object):voidParameters
event:Object
rebuildRoutesDataProvider()method 
protected function rebuildRoutesDataProvider():void
rebuildStationDataProvider()method 
protected function rebuildStationDataProvider():void
rebuildTopology()method 
protected function rebuildTopology():void
renderGrids()method 
protected function renderGrids(g:Graphics):void

renderGrids():void Draw each line in its corresponding color

Parameters
g:Graphics
renderLines()method 
protected function renderLines(g:Graphics):void

drawLines():void Draw each line in its corresponding color

Parameters
g:Graphics
renderStations()method 
protected function renderStations(g:Graphics):void

Show some helpful(?) info

Parameters
g:Graphics
renderStations()method 
protected function renderStations(g:Graphics):void

Draw dots for each station

Parameters
g:Graphics
renderTriangulation()method 
protected function renderTriangulation(g:Graphics):void

Draw the background map

Parameters
g:Graphics
setCurrBitmap()method 
public function setCurrBitmap(bitmapData:BitmapData):void

Sets a new drawing Bitmap

Parameters
bitmapData:BitmapData — new BitmapAsset to use
setDrawElement()method 
public function setDrawElement(drawElt:String, newstate:Boolean):voidParameters
drawElt:String
 
newstate:Boolean
setGeometry()method 
public function setGeometry(geom:String):void

Change the geometry of the route map

Parameters
geom:String
setStationOfInterest()method 
public function setStationOfInterest(id:uint):void

Changes the center of the graph

Parameters
id:uint
setZoomFactor()method 
public function setZoomFactor(newzf:Number):voidParameters
newzf:Number
topologyFeedResultHandler()method 
public function topologyFeedResultHandler(event:Object):voidParameters
event:Object
Constant detail
bitmapsizeconstant
public const bitmapsize:uint = 3000
logicalsizeconstant 
public const logicalsize:uint = 1000