| 1 | package {
|
|---|
| 2 | public class PointHLC// extends Point
|
|---|
| 3 | {
|
|---|
| 4 | // private var numDecimals:Number =5;
|
|---|
| 5 | // private var isFixedNumDecimalsForced:Boolean =true;
|
|---|
| 6 | // private var isDecimalSeparatorComma:Boolean =true;
|
|---|
| 7 |
|
|---|
| 8 | public var width:Number;
|
|---|
| 9 | public var bar_bottom:Number;
|
|---|
| 10 | public var high:Number;
|
|---|
| 11 | public var close:Number;
|
|---|
| 12 | public var low:Number;
|
|---|
| 13 |
|
|---|
| 14 | public function PointHLC( x:Number, high:Number, close:Number, low:Number, tooltip:Number, width:Number ):void{
|
|---|
| 15 | //super( x, high );
|
|---|
| 16 |
|
|---|
| 17 | this.width = width;
|
|---|
| 18 | this.high = high;
|
|---|
| 19 | this.close = close;
|
|---|
| 20 | this.low = low;
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | public function make_tooltip(
|
|---|
| 24 | tip:String, key:String, val:Number, x_legend:String,
|
|---|
| 25 | x_axis_label:String, tip_set:String ):void {
|
|---|
| 26 |
|
|---|
| 27 | super.make_tooltip( tip, key, val, x_legend, x_axis_label, tip_set );
|
|---|
| 28 | // super.make_tooltip( tip, key, val.close, x_legend, x_axis_label, tip_set );
|
|---|
| 29 | //
|
|---|
| 30 | // var tmp:String = this.tooltip;
|
|---|
| 31 | // tmp = tmp.replace('#high#',NumberUtils.formatNumber(val.high));
|
|---|
| 32 | // tmp = tmp.replace('#close#',NumberUtils.formatNumber(val.close));
|
|---|
| 33 | // tmp = tmp.replace('#low#',NumberUtils.formatNumber(val.low));
|
|---|
| 34 |
|
|---|
| 35 | // this.tooltip = tmp;
|
|---|
| 36 | }
|
|---|
| 37 |
|
|---|
| 38 | public function get_tip_pos():Object {
|
|---|
| 39 | //return {x:this.x+(this.width/2), y:this.y};
|
|---|
| 40 | return null;
|
|---|
| 41 | }
|
|---|
| 42 | }
|
|---|
| 43 | }
|
|---|