Rev | Line | |
---|
[7849] | 1 | package charts {
|
---|
| 2 | import charts.series.Element;
|
---|
| 3 | import charts.series.bars.Outline;
|
---|
| 4 | import string.Utils;
|
---|
| 5 |
|
---|
| 6 | public class BarOutline extends BarBase {
|
---|
| 7 | private var outline_colour:Number;
|
---|
| 8 |
|
---|
| 9 | //TODO: remove
|
---|
| 10 | protected var style:Object;
|
---|
| 11 |
|
---|
| 12 |
|
---|
| 13 | public function BarOutline( json:Object, group:Number ) {
|
---|
| 14 |
|
---|
| 15 | //
|
---|
| 16 | // specific value for outline
|
---|
| 17 | //
|
---|
| 18 | this.style = {
|
---|
| 19 | 'outline-colour': "#000000"
|
---|
| 20 | };
|
---|
| 21 |
|
---|
| 22 | object_helper.merge_2( json, this.style );
|
---|
| 23 |
|
---|
| 24 | super( json, group );
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | //
|
---|
| 28 | // called from the base object
|
---|
| 29 | //
|
---|
| 30 | protected override function get_element( index:Number, value:Object ): Element {
|
---|
| 31 |
|
---|
| 32 | var root:Properties = new Properties( {
|
---|
| 33 | 'outline-colour': this.style['outline-colour']
|
---|
| 34 | } );
|
---|
| 35 |
|
---|
| 36 | var default_style:Properties = this.get_element_helper_prop( value );
|
---|
| 37 | default_style.set_parent( root );
|
---|
| 38 |
|
---|
| 39 | /*
|
---|
| 40 | if ( !default_style['outline-colour'] )
|
---|
| 41 | default_style['outline-colour'] = this.style['outline-colour'];
|
---|
| 42 |
|
---|
| 43 | if( default_style['outline-colour'] is String )
|
---|
| 44 | default_style['outline-colour'] = Utils.get_colour( default_style['outline-colour'] );
|
---|
| 45 | */
|
---|
| 46 |
|
---|
| 47 | return new Outline( index, default_style, this.group );
|
---|
| 48 | }
|
---|
| 49 | }
|
---|
| 50 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.