| Line | |
|---|
| 1 | package charts.series.dots {
|
|---|
| 2 | import charts.series.dots.PointDotBase;
|
|---|
| 3 | import flash.display.Sprite;
|
|---|
| 4 | import flash.display.BlendMode;
|
|---|
| 5 | import string.Utils;
|
|---|
| 6 |
|
|---|
| 7 | public class Point extends PointDotBase {
|
|---|
| 8 |
|
|---|
| 9 | public function Point( index:Number, style:Properties )
|
|---|
| 10 | {
|
|---|
| 11 | super( index, style );
|
|---|
| 12 |
|
|---|
| 13 | var colour:Number = string.Utils.get_colour( style.get('colour') );
|
|---|
| 14 |
|
|---|
| 15 | this.graphics.lineStyle( 0, 0, 0 );
|
|---|
| 16 | this.graphics.beginFill( colour, 1 );
|
|---|
| 17 | this.graphics.drawCircle( 0, 0, style.get('dot-size') );
|
|---|
| 18 | this.visible = false;
|
|---|
| 19 | this.attach_events();
|
|---|
| 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 | s.visible = false;
|
|---|
| 27 |
|
|---|
| 28 | this.line_mask = s;
|
|---|
| 29 | }
|
|---|
| 30 |
|
|---|
| 31 | public override function set_tip( b:Boolean ):void {
|
|---|
| 32 |
|
|---|
| 33 | this.visible = b;
|
|---|
| 34 | this.line_mask.visible = b;
|
|---|
| 35 | }
|
|---|
| 36 | }
|
|---|
| 37 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.