public CandlestickElement(ChartCanvas canvas, int x, double o, double h, double l, double c) { _canvas = canvas; X = x; O = o; H = h; L = l; C = c; Stroke = Brushes.Black; //Stroke = Brushes.White; StrokeThickness = 1.0; if (O == C) Fill = Brushes.Black; else if (O < C) Fill = Brushes.Green; else Fill = Brushes.Red; //Stroke = Fill; SetValue(RenderOptions.EdgeModeProperty, EdgeMode.Aliased); System.Windows.Controls.Canvas.SetZIndex(this, 1); }
public MovingAverageElement(ChartCanvas canvas, int[] x, double[] y) { _canvas = canvas; _x = x; _y = y; Stroke = Brushes.Magenta; StrokeThickness = 1; SetValue(RenderOptions.EdgeModeProperty, EdgeMode.Aliased); System.Windows.Controls.Canvas.SetZIndex(this, 1); }
public TrendlineElement(ChartCanvas canvas, int x1, double y1, int x2, double y2) { _canvas = canvas; _x1 = x1; _y1 = y1; _x2 = x2; _y2 = y2; //Stroke = Brushes.White; Stroke = Brushes.Blue; StrokeThickness = 1; SetValue(RenderOptions.EdgeModeProperty, EdgeMode.Aliased); System.Windows.Controls.Canvas.SetZIndex(this, 2); }
public PatternRectangleElement(ChartCanvas canvas, int left, double top, int right, double bottom) { _canvas = canvas; Left = left; Top = top; Right = right; Bottom = bottom; Fill = Brushes.Plum; Stroke = Brushes.Black; StrokeThickness = 1; Opacity = 0.7; SetValue(RenderOptions.EdgeModeProperty, EdgeMode.Aliased); System.Windows.Controls.Canvas.SetZIndex(this, 0); }
public GapElement(ChartCanvas canvas, int x, double top, double bottom, bool isFull) { _canvas = canvas; _x = x; _top = top; _bottom = bottom; _isFull = isFull; Stroke = Brushes.White; StrokeThickness = 1; Fill = Brushes.Plum; Opacity = 0.7; SetValue(RenderOptions.EdgeModeProperty, EdgeMode.Aliased); System.Windows.Controls.Canvas.SetZIndex(this, 1); }
public CandlestickElement(ChartCanvas canvas, int x, decimal o, decimal h, decimal l, decimal c) : this(canvas, x, (double)o, (double)h, (double)l, (double)c) { }
public CandlestickElement(ChartCanvas canvas, Candlestick candlestick) : this(canvas, candlestick.X, candlestick.O, candlestick.H, candlestick.L, candlestick.C) { }
public MovingAverageElement(ChartCanvas canvas, MovingAverage ma) : this(canvas, ma.X, ma.Y) { }
public TrendlineElement(ChartCanvas canvas, int x1, decimal y1, int x2, decimal y2) : this(canvas, x1, (double)y1, x2, (double)y2) { }
public TrendlineElement(ChartCanvas canvas, Trendline trendline) : this(canvas, trendline.X1, trendline.Y1, trendline.X2, trendline.Y2) { }
public GapElement(ChartCanvas canvas, Gap gap) : this(canvas, gap.X, gap.Top, gap.Bottom, gap.IsFullGap) { }