1 | package charts.Elements {
|
---|
2 |
|
---|
3 | import flash.display.Sprite;
|
---|
4 | import charts.series.bars.Base;
|
---|
5 |
|
---|
6 | public class PointBarFade extends Base
|
---|
7 | {
|
---|
8 |
|
---|
9 | public function PointBarFade( index:Number, value:Object, colour:Number, group:Number )
|
---|
10 | {
|
---|
11 | var p:Properties = new Properties(value);
|
---|
12 | super(index, p, group);
|
---|
13 | //super(index,value,colour,'',0.6,group);
|
---|
14 | }
|
---|
15 |
|
---|
16 | public override function resize( sc:ScreenCoordsBase ):void {
|
---|
17 | /*
|
---|
18 | var tmp:Object = sc.get_bar_coords(this._x,this.group);
|
---|
19 | this.screen_x = tmp.x;
|
---|
20 | this.screen_y = sc.get_y_from_val(this._y,axis==2);
|
---|
21 |
|
---|
22 | var bar_bottom:Number = sc.getYbottom( false );
|
---|
23 |
|
---|
24 | var top:Number;
|
---|
25 | var height:Number;
|
---|
26 |
|
---|
27 | if( bar_bottom < this.screen_y ) {
|
---|
28 | top = bar_bottom;
|
---|
29 | height = this.screen_y-bar_bottom;
|
---|
30 | }
|
---|
31 | else
|
---|
32 | {
|
---|
33 | top = this.screen_y
|
---|
34 | height = bar_bottom-this.screen_y;
|
---|
35 | }
|
---|
36 | */
|
---|
37 | var h:Object = this.resize_helper( sc as ScreenCoords );
|
---|
38 |
|
---|
39 | this.graphics.clear();
|
---|
40 | this.graphics.beginFill( this.colour, 1.0 );
|
---|
41 | this.graphics.moveTo( 0, 0 );
|
---|
42 | this.graphics.lineTo( h.width, 0 );
|
---|
43 | this.graphics.lineTo( h.width, h.height );
|
---|
44 | this.graphics.lineTo( 0, h.height );
|
---|
45 | this.graphics.lineTo( 0, 0 );
|
---|
46 | this.graphics.endFill();
|
---|
47 | }
|
---|
48 | }
|
---|
49 | }
|
---|