Exemplo n.º 1
0
        private static PriceShape_Line GetLine()
        {
            PriceShape_Line line = new PriceShape_Line();

            line.StartPoint = new PricePoint(33, 12);
            line.EndPoint   = new PricePoint(213, 243);
            line.Width      = 3;
            line.Color      = Color.Blue;
            return(line);
        }
Exemplo n.º 2
0
        public void Paint(Graphics g, PriceGraphicMapping priceGraphic, IPriceShape shape)
        {
            PriceShape_Line line = (PriceShape_Line)shape;
            float           x1   = priceGraphic.CalcX(line.StartPoint.X);
            float           y1   = priceGraphic.CalcY(line.StartPoint.Y);

            float x2 = priceGraphic.CalcX(line.EndPoint.X);
            float y2 = priceGraphic.CalcY(line.EndPoint.Y);

            g.DrawLine(new Pen(line.Color, line.Width), x1, y1, x2, y2);
        }
Exemplo n.º 3
0
 public void DrawLine(PriceShape_Line line)
 {
     RecordShape(line);
 }
Exemplo n.º 4
0
 public void DrawLine(PriceShape_Line line)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// 画线
 /// </summary>
 /// <param name="line"></param>
 public void DrawLine(PriceShape_Line line)
 {
     this.strategyGraphic.Shapes.AddPriceShape(line);
 }