Exemplo n.º 1
0
            protected internal CandleBuySellElement(CandleBuySellView view, PlotPane host, CandleSample sample, int x, float minScale, float maxScale) : base(host)
            {
                m_View     = view;
                m_Sample   = sample;
                m_ScaleMin = minScale;
                m_ScaleMax = maxScale;

                computeCoords();
                var h = Math.Max(m_Lay_BuyHeight, m_Lay_SellHeight);

                this.Region = new Rectangle(x, (int)(host.Height / host.Zoom) - h, CandleView.BAR_WIDTH, h);
            }
Exemplo n.º 2
0
            protected internal CandleElement(PlotPane host, CandleSample candle, int x, float minScale, float maxScale) : base(host)
            {
                m_Candle = candle;

                //   m_Style = new Style(null, getBaseStyle());
                m_ScaleMin = minScale;
                m_ScaleMax = maxScale;
                m_Lay_X    = x;
                m_Lay_W    = CandleView.BAR_WIDTH;

                computeCoords();
                this.Region = new Rectangle(m_Lay_X, m_Lay_Y, m_Lay_W, m_Lay_H);
            }
Exemplo n.º 3
0
        protected override Elements.Element MakeSampleElement(TimeSeriesChart chart, PlotPane pane, CandleSample sample, int x, float minScale, float maxScale)
        {
            var elm = new CandleElement(pane, sample, x, minScale, maxScale, BlackWhite);

            if (ShowBalloons)
            {
                elm.MouseClick += elm_MouseClick;
            }

            return(elm);
        }
Exemplo n.º 4
0
 protected override Elements.Element MakeSampleElement(TimeSeriesChart chart, PlotPane pane, CandleSample sample, int x, float minScale, float maxScale)
 {
     return(new CandleBuySellElement(this, pane, sample, x, minScale, maxScale));
 }
Exemplo n.º 5
0
 protected override Elements.Element MakeSampleElement(TimeSeriesChart chart, PlotPane pane, CandleSample sample, int x, float minScale, float maxScale)
 {
     return(null);
 }