Example #1
0
 public PathView(DrawingPath path, Pad pad)
 {
     this.path = path;
     Pad = pad;
     this.toolTipEnabled = true;
     this.toolTipFormat = "{0} {1} {2} - {3:F6}";
 }
Example #2
0
 public RectangleView(DrawingRectangle rect, Pad pad)
 {
     this.rect = rect;
     Pad = pad;
     this.toolTipEnabled = true;
     this.toolTipFormat = "{0} {1} {2} - {3:F6}";
 }
Example #3
0
 public ImageView(DrawingImage image, Pad pad)
 {
     this.image = image;
     Pad = pad;
     ToolTipEnabled = true;
     ToolTipFormat = "{0} {1} {2} - {3:F6}";
 }
Example #4
0
 public EllipseView(DrawingEllipse rect, Pad pad)
 {
     this.rect = rect;
     Pad = pad;
     ToolTipEnabled = true;
     ToolTipFormat = "{0} {1} {2} - {3:F6}";
 }
Example #5
0
 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());
 }
Example #6
0
 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());
 }
Example #7
0
 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));
 }
Example #8
0
 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}";
 }
Example #9
0
 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;
 }
Example #10
0
 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);
 }
Example #11
0
 public int Add(Pad pad)
 {
     return this.list.Add(pad);
 }
Example #12
0
 public void Remove(Pad pad)
 {
     this.list.Remove(pad);
 }
Example #13
0
 public void Insert(int index, Pad pad)
 {
     this.list.Insert(index, pad);
 }
Example #14
0
 public int IndexOf(Pad pad)
 {
     return this.list.IndexOf(pad);
 }
Example #15
0
 public virtual void ShowProperties(DSView view, Pad pad, bool forceShowProperties)
 {
 }
Example #16
0
 public DSView(Pad pad, TimeSeries series, Color color)
     : this(pad, series, color, SearchOption.ExactFirst, SmoothingMode.AntiAlias)
 {
 }
Example #17
0
 public void Insert(int index, Pad pad)
 {
     this.list.Insert(index, pad);
 }
Example #18
0
 public PadRange GetPadRangeY(Pad pad) => new PadRange(this.ray.Y * 0.999, this.ray.Y * 1.001);
Example #19
0
 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);
 }
Example #20
0
 public abstract PadRange GetPadRangeY(Pad Pad);
Example #21
0
 public int IndexOf(Pad pad)
 {
     return(this.list.IndexOf(pad));
 }
Example #22
0
 public virtual void ShowProperties(DSView view, Pad pad, bool forceShowProperties)
 {
 }
Example #23
0
 public int Add(Pad pad) => this.list.Add(pad);
Example #24
0
 public BSView(Pad pad) : base(pad)
 {
 }
Example #25
0
 public void Remove(Pad pad)
 {
     this.list.Remove(pad);
 }
Example #26
0
 public DSView(Pad pad, TimeSeries series)
     : this(pad, series, SearchOption.ExactFirst)
 {
 }
Example #27
0
 public int Add(Pad pad)
 {
     return(this.list.Add(pad));
 }
Example #28
0
 public DSView(Pad pad, TimeSeries series, SearchOption option)
     : this(pad, series, Color.White, option, SmoothingMode.AntiAlias)
 {
 }
Example #29
0
 public int IndexOf(Pad pad) => this.list.IndexOf(pad);
Example #30
0
 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;
 }
Example #31
0
 public SeriesView(Pad pad)
 {
     this.pad = pad;
 }
Example #32
0
 public SeriesView(Pad pad)
 {
     this.pad = pad;
 }
Example #33
0
 public abstract PadRange GetPadRangeY(Pad pad);
Example #34
0
 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);
 }
Example #35
0
 public BSView(Pad pad) : base(pad)
 {
 }
Example #36
0
 public DSView(Pad pad, TimeSeries series)
     : this(pad, series, SearchOption.ExactFirst)
 {
 }
Example #37
0
 public DSView(Pad pad, TimeSeries series, Color color)
     : this(pad, series, color, SearchOption.ExactFirst, SmoothingMode.AntiAlias)
 {
 }
Example #38
0
 public PadRange GetPadRangeY(Pad pad)
 {
     return new PadRange(0, 0);
 }
Example #39
0
 public DSView(Pad pad, TimeSeries series, SearchOption option)
     : this(pad, series, Color.White, option, SmoothingMode.AntiAlias)
 {
 }
Example #40
0
 public PadRange GetPadRangeY(Pad pad) => new PadRange(0, 0);
Example #41
0
 public PadRange GetPadRangeY(Pad pad)
 {
     return new PadRange(this.ray.Y * 0.999, this.ray.Y * 1.001);
 }