| Package | output |
| Class | public class DataVisualizer |
| Inheritance | DataVisualizer flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
| bars : Array [static]
The array of references to the diagram bars.
| DataVisualizer | ||
| blocks : Array [static]
The array of references to update blocks.
| DataVisualizer | ||
| dataZone : Sprite [static]
The reference to the sprite containing diagram bars.
| DataVisualizer | ||
| diagramHeight : Number [static]
The height of diagram zone.
| DataVisualizer | ||
| diagramWidth : Number [static]
The width of diagram zone.
| DataVisualizer | ||
| levelZone : Sprite [static]
The reference to the sprite containing level lines.
| DataVisualizer | ||
| parser : ResponseParser
[static]
The reference to the current ResponseParser object.
| DataVisualizer | ||
| texts : Array [static]
The array of references to the texts under the bars.
| DataVisualizer | ||
| Method | Defined by | ||
|---|---|---|---|
|
DataVisualizer($zone:Sprite, $responseParser:ResponseParser)
Creates the DataVisualizer instance.
| DataVisualizer | ||
|
drawLevels($parser:ResponseParser, useRequired:Boolean = false):void
[static]
Draws Minimum and Goal production level lines.
| DataVisualizer | ||
|
drawRequired():void
[static]
Draws Required production level lines if this is allowed by settings.
| DataVisualizer | ||
|
getColWidth($numCols:uint):Number
[static]
Calculates the column width using the number of columns.
| DataVisualizer | ||
|
makeUpdate(was:* = null):void
Runs an update mechanism.
| DataVisualizer | ||
|
setColors():void
[static]
Updates colors of the bars according to the level achieved.
| DataVisualizer | ||
|
visualizeData($dataObject:Object = null):void
[static]
Creates the set of bars and text under them.
| DataVisualizer | ||
|
visualizeUpdate($numArray:Array):void
[static]
Creates the set of bars and text under them.
| DataVisualizer | ||
| bars | property |
public static var bars:ArrayThe array of references to the diagram bars.
| blocks | property |
public static var blocks:ArrayThe array of references to update blocks.
| dataZone | property |
public static var dataZone:SpriteThe reference to the sprite containing diagram bars.
| diagramHeight | property |
public static var diagramHeight:NumberThe height of diagram zone.
| diagramWidth | property |
public static var diagramWidth:NumberThe width of diagram zone.
| levelZone | property |
public static var levelZone:SpriteThe reference to the sprite containing level lines.
| parser | property |
public static var parser:ResponseParserThe reference to the current ResponseParser object.
| texts | property |
public static var texts:ArrayThe array of references to the texts under the bars.
| DataVisualizer | () | constructor |
public function DataVisualizer($zone:Sprite, $responseParser:ResponseParser)Creates the DataVisualizer instance.
Parameters$zone:Sprite — The sprite to draw in
|
|
$responseParser:ResponseParser — The ResponseParser instance to parse data.
|
| drawLevels | () | method |
public static function drawLevels($parser:ResponseParser, useRequired:Boolean = false):voidDraws Minimum and Goal production level lines.
Parameters$parser:ResponseParser — the ResponseParser item to use
|
|
useRequired:Boolean (default = false) — [not used]
|
| drawRequired | () | method |
public static function drawRequired():voidDraws Required production level lines if this is allowed by settings.
| getColWidth | () | method |
public static function getColWidth($numCols:uint):NumberCalculates the column width using the number of columns.
Parameters$numCols:uint — The number of columns.
|
Number — Column width.
|
| makeUpdate | () | method |
public function makeUpdate(was:* = null):voidRuns an update mechanism.
Parameterswas:* (default = null) — [Added for the use of the function as an event handler]
|
| setColors | () | method |
public static function setColors():voidUpdates colors of the bars according to the level achieved.
| visualizeData | () | method |
public static function visualizeData($dataObject:Object = null):voidCreates the set of bars and text under them.
Parameters$dataObject:Object (default = null) — [currently not used]
|
| visualizeUpdate | () | method |
public static function visualizeUpdate($numArray:Array):voidCreates the set of bars and text under them.
Parameters$numArray:Array — The array of numbers specifying the growth of values for every person during the period between updates.
|