source: code/Website/open-flash-chart/charts/series/dots/PointDot.as@ 7849

Last change on this file since 7849 was 7849, checked in by dennisw, 15 years ago
File size: 869 bytes
Line 
1package charts.series.dots {
2
3 import charts.series.dots.PointDotBase;
4 import flash.display.BlendMode;
5 import flash.display.Sprite;
6 import string.Utils;
7
8 public class PointDot extends PointDotBase {
9
10 public function PointDot( index:Number, style:Properties ) {
11
12 super( index, style );
13
14 var colour:Number = string.Utils.get_colour( style.get('colour') );
15
16 this.graphics.lineStyle( 0, 0, 0 );
17 this.graphics.beginFill( colour, 1 );
18 this.graphics.drawCircle( 0, 0, style.get('dot-size') );
19 this.graphics.endFill();
20
21 var s:Sprite = new Sprite();
22 s.graphics.lineStyle( 0, 0, 0 );
23 s.graphics.beginFill( 0, 1 );
24 s.graphics.drawCircle( 0, 0, style.get('dot-size')+style.get('halo-size') );
25 s.blendMode = BlendMode.ERASE;
26
27 this.line_mask = s;
28
29 this.attach_events();
30 }
31 }
32}
33
Note: See TracBrowser for help on using the repository browser.