source: code/Website/open-flash-chart/charts/Candle.as@ 7849

Last change on this file since 7849 was 7849, checked in by dennisw, 15 years ago
File size: 839 bytes
Line 
1package charts {
2 import charts.series.Element;
3 import charts.series.bars.ECandle;
4 import string.Utils;
5
6
7 public class Candle extends BarBase {
8 private var negative_colour:Number;
9
10 public function Candle( json:Object, group:Number ) {
11
12 super( json, group );
13
14 tr.aces('---');
15 tr.ace_json(json);
16 tr.aces( 'neg', props.has('negative-colour'), props.get_colour('negative-colour'));
17
18 }
19
20 //
21 // called from the base object
22 //
23 protected override function get_element( index:Number, value:Object ): Element {
24
25 var default_style:Properties = this.get_element_helper_prop( value );
26 if(this.props.has('negative-colour'))
27 default_style.set('negative-colour', this.props.get('negative-colour'));
28
29 return new ECandle( index, default_style, this.group );
30 }
31 }
32}
Note: See TracBrowser for help on using the repository browser.