1 | package charts.series.bars {
|
---|
2 |
|
---|
3 | import flash.display.Sprite;
|
---|
4 | import charts.series.bars.Base;
|
---|
5 |
|
---|
6 | public class Outline extends Base {
|
---|
7 | private var outline:Number;
|
---|
8 |
|
---|
9 | public function Outline( index:Number, props:Properties, group:Number ) {
|
---|
10 |
|
---|
11 | super(index, props, group);
|
---|
12 | //super(index, {'top':props.get('top')}, props.get_colour('colour'), props.get('tip'), props.get('alpha'), group);
|
---|
13 | this.outline = props.get_colour('outline-colour');
|
---|
14 | }
|
---|
15 |
|
---|
16 | public override function resize( sc:ScreenCoordsBase ):void {
|
---|
17 |
|
---|
18 | var h:Object = this.resize_helper( sc as ScreenCoords );
|
---|
19 |
|
---|
20 | this.graphics.clear();
|
---|
21 | this.graphics.lineStyle(1, this.outline, 1);
|
---|
22 | this.graphics.beginFill( this.colour, 1.0 );
|
---|
23 | this.graphics.moveTo( 0, 0 );
|
---|
24 | this.graphics.lineTo( h.width, 0 );
|
---|
25 | this.graphics.lineTo( h.width, h.height );
|
---|
26 | this.graphics.lineTo( 0, h.height );
|
---|
27 | this.graphics.lineTo( 0, 0 );
|
---|
28 | this.graphics.endFill();
|
---|
29 |
|
---|
30 | }
|
---|
31 | }
|
---|
32 | }
|
---|