public PathView(DrawingPath path, Pad pad) { this.path = path; Pad = pad; this.toolTipEnabled = true; this.toolTipFormat = "{0} {1} {2} - {3:F6}"; }
public RectangleView(DrawingRectangle rect, Pad pad) { this.rect = rect; Pad = pad; this.toolTipEnabled = true; this.toolTipFormat = "{0} {1} {2} - {3:F6}"; }
public ImageView(DrawingImage image, Pad pad) { this.image = image; Pad = pad; ToolTipEnabled = true; ToolTipFormat = "{0} {1} {2} - {3:F6}"; }
public EllipseView(DrawingEllipse rect, Pad pad) { this.rect = rect; Pad = pad; ToolTipEnabled = true; ToolTipFormat = "{0} {1} {2} - {3:F6}"; }
public SimpleBSView(Pad pad, BarSeries series) : base(pad) { this.series = series; UpColor = Color.Black; DownColor = Color.Lime; ToolTipFormat = "{0} {2}\n\nH : {3:F*}\nL : {4:F*}\nO : {5:F*}\nC : {6:F*}\nV : {7}".Replace("*", this.pad.Chart.LabelDigitsCount.ToString()); }
public DSView(Pad pad, TimeSeries series, Color color, SearchOption option, SmoothingMode smoothing) : base(pad) { this.series = series; Option = option; Color = color; SmoothingMode = smoothing; ToolTipFormat = "{0}\n{2} - {3:F*}".Replace("*", pad.Chart.LabelDigitsCount.ToString()); }
public LineView(DrawingLine line, Pad pad) { this.line = line; this.pad = pad; this.toolTipEnabled = true; this.toolTipFormat = "{0} {1} {2} - {3:F6}"; this.chartFirstDate = new DateTime(Math.Min(line.X1.Ticks, line.X2.Ticks)); this.chartLastDate = new DateTime(Math.Max(line.X1.Ticks, line.X2.Ticks)); }
public FillView(Fill fill, Pad pad) { this.fill = fill; this.pad = pad; BuyColor = Color.Blue; SellColor = Color.Red; SellShortColor = Color.Yellow; TextEnabled = true; ToolTipEnabled = true; ToolTipFormat = "{0} {2} {1} @ {3} {4} {5}"; }
public RayView(DrawingRay ray, Pad pad) { this.ray = ray; Pad = pad; this.toolTipEnabled = true; this.toolTipFormat = "{0} {1} {2} - {3:F6}"; int index = pad.Series.GetIndex(ray.X, IndexOption.Prev); if (index == -1) return; this.chartFirstDate = pad.Series.GetDateTime(index); this.chartLastDate = DateTime.MaxValue; }
public override PadRange GetPadRangeY(Pad pad) { double max = MainSeries.GetMax(this.firstDate, this.lastDate); double min = MainSeries.GetMin(this.firstDate, this.lastDate); if (max >= min) { double num = max / 10.0; max -= num; min += num; } return new PadRange(max, min); }
public int Add(Pad pad) { return this.list.Add(pad); }
public void Remove(Pad pad) { this.list.Remove(pad); }
public void Insert(int index, Pad pad) { this.list.Insert(index, pad); }
public int IndexOf(Pad pad) { return this.list.IndexOf(pad); }
public virtual void ShowProperties(DSView view, Pad pad, bool forceShowProperties) { }
public DSView(Pad pad, TimeSeries series, Color color) : this(pad, series, color, SearchOption.ExactFirst, SmoothingMode.AntiAlias) { }
public PadRange GetPadRangeY(Pad pad) => new PadRange(this.ray.Y * 0.999, this.ray.Y * 1.001);
public override PadRange GetPadRangeY(Pad Pad) { DateTime datetime1; DateTime datetime2; if (Option == SearchOption.ExactFirst) { datetime1 = this.firstDate; datetime2 = this.lastDate; } else { int index1 = this.series.GetIndex(this.firstDate.AddTicks(1L), IndexOption.Null); int index2 = this.series.GetIndex(this.lastDate.AddTicks(1L), IndexOption.Next); if (index1 == -1 || index2 == -1) return new PadRange(0, 0); datetime1 = this.series.GetDateTime(index1); datetime2 = this.series.GetDateTime(index2); } if (this.series.Count == 0 || !(this.series.LastDateTime >= datetime1) || !(this.series.FirstDateTime <= datetime2)) return new PadRange(0, 0); int index3 = this.series.GetIndex(datetime1, IndexOption.Next); int index4 = this.series.GetIndex(datetime2, IndexOption.Prev); double min = this.series.GetMin(Math.Min(index3, index4), Math.Max(index3, index4)); double max = this.series.GetMax(Math.Min(index3, index4), Math.Max(index3, index4)); if (min >= max) { double num = Math.Abs(min) / 1000.0; min -= num; max += num; } return new PadRange(min, max); }
public abstract PadRange GetPadRangeY(Pad Pad);
public int IndexOf(Pad pad) { return(this.list.IndexOf(pad)); }
public int Add(Pad pad) => this.list.Add(pad);
public BSView(Pad pad) : base(pad) { }
public DSView(Pad pad, TimeSeries series) : this(pad, series, SearchOption.ExactFirst) { }
public int Add(Pad pad) { return(this.list.Add(pad)); }
public DSView(Pad pad, TimeSeries series, SearchOption option) : this(pad, series, Color.White, option, SmoothingMode.AntiAlias) { }
public int IndexOf(Pad pad) => this.list.IndexOf(pad);
public AxisRight(Chart chart, Pad pad, int x, int y1, int y2) { this.chart = chart; this.pad = pad; SetBounds(x, y1, y2); Enabled = true; Zoomed = false; Color = Color.LightGray; Title = ""; TitleEnabled = true; TitlePosition = EAxisTitlePosition.Centre; TitleFont = this.chart.Font; TitleColor = Color.Black; TitleOffset = 2; LabelEnabled = true; LabelFont = this.chart.Font; LabelColor = this.chart.RightAxisTextColor; LabelFormat = null; LabelOffset = 2; LabelAlignment = EAxisLabelAlignment.Centre; GridEnabled = true; GridColor = this.chart.RightAxisGridColor; GridDashStyle = DashStyle.Dash; GridWidth = 0.5f; MinorGridEnabled = false; MinorGridColor = this.chart.RightAxisMinorTicksColor; MinorGridDashStyle = DashStyle.Solid; MinorGridWidth = 0.5f; MajorTicksEnabled = true; MajorTicksColor = this.chart.RightAxisMajorTicksColor; MajorTicksWidth = 0.5f; MajorTicksLength = 4; MinorTicksEnabled = true; MinorTicksColor = Color.LightGray; MinorTicksWidth = 0.5f; MinorTicksLength = 1; Width = -1; Height = -1; }
public SeriesView(Pad pad) { this.pad = pad; }
public abstract PadRange GetPadRangeY(Pad pad);
public override PadRange GetPadRangeY(Pad pad) { double min = this.series.LowestLow(this.firstDate, this.lastDate); double max = this.series.HighestHigh(this.firstDate, this.lastDate); if (min >= max) { double num = min / 10.0; min -= num; max += num; } return new PadRange(min, max); }
public PadRange GetPadRangeY(Pad pad) { return new PadRange(0, 0); }
public PadRange GetPadRangeY(Pad pad) => new PadRange(0, 0);
public PadRange GetPadRangeY(Pad pad) { return new PadRange(this.ray.Y * 0.999, this.ray.Y * 1.001); }