source: code/Website/open-flash-chart/charts/LineHollow.as@ 7937

Last change on this file since 7937 was 7849, checked in by dennisw, 16 years ago
File size: 1.7 KB
Line 
1package charts {
2 //import caurina.transitions.Tweener;
3
4 import flash.display.Sprite;
5 import flash.events.Event;
6 import flash.events.MouseEvent;
7 import charts.series.Element;
8 //import charts.series.dots.PointDot;
9 import string.Utils;
10 import flash.display.BlendMode;
11 import charts.series.dots.Hollow;
12 import charts.series.dots.dot_factory;
13
14 public class LineHollow extends LineBase
15 {
16
17 public function LineHollow( json:Object )
18 {
19 //
20 // so the mask child can punch a hole through the line
21 //
22 this.blendMode = BlendMode.LAYER;
23
24 this.style = {
25 values: [],
26 width: 2,
27 colour: '#80a033',
28 text: '',
29 'font-size': 10,
30 'dot-size': 6,
31 'halo-size': 2,
32 tip: '#val#',
33 'line-style': new LineStyle( json['line-style'] ),
34 'axis': 'left'
35 };
36
37 this.style = object_helper.merge( json, this.style );
38
39 this.style.colour = string.Utils.get_colour( this.style.colour );
40 this.values = style.values;
41
42 this.key = style.text;
43 this.font_size = style['font-size'];
44
45
46// this.axis = which_axis_am_i_attached_to(data, num);
47// tr.ace( name );
48// tr.ace( 'axis : ' + this.axis );
49
50 this.add_values();
51
52 }
53
54 //
55 // called from the base object
56 /*
57 protected override function get_element( index:Number, value:Object ): charts.series.Element {
58
59 var s:Object = this.merge_us_with_value_object( value );
60 //
61 // the width of the hollow circle is the same as the width of the line
62 //
63 s.width = this.style.width;
64 if( s.type == null )
65 s.type = 'hollow-dot';
66
67 return dot_factory.make( index, s );
68 }
69 */
70 }
71}
Note: See TracBrowser for help on using the repository browser.