void ShowChart() { Chart.ChartPerformer performer = userControlChart.Performer; performer.RemoveAll(); ISeriesPainter sp = painterInreface.Painter; if (sp != null) { DataPerformer.Series series = nc as DataPerformer.Series; SeriesGraph ser = new SeriesGraph(series); performer.AddSeries(ser, sp); } performer.RefreshAll(); }
/// <summary> /// Adds a performer /// </summary> /// <param name="performer">Performer to add</param> public void Add(ChartPerformer performer) { if (performer == this) { throw new Exception(); } if (performer.parent != null) { throw new Exception(); } children.Add(performer); performer.parent = this; foreach (ISeries s in painters.Keys) { performer.AddSeries(s, painters[s]); } }
/// <summary> /// Default constructor /// </summary> /// <param name="performer">Chart performer</param> public LogarithmCoordinator(ChartPerformer performer) : base(performer) { }
/// <summary> /// Constructor /// </summary> /// <param name="nx">X - division</param> /// <param name="ny">Y - division</param> /// <param name="performer">Performer of chart drawing</param> public SimpleCoordinator(int nx, int ny, ChartPerformer performer) : base(nx, ny, performer) { }
internal StandardChartResizer(ChartPerformer performer) { this.performer = performer; }
/// <summary> /// Removes a performer /// </summary> /// <param name="performer">Performer to remove</param> public void Remove(ChartPerformer performer) { children.Remove(performer); }
/// <summary> /// Sets mouse indicator to control /// </summary> /// <param name="performer">Chart performer</param> /// <param name="control">Control</param> public static void SetMouseIndicator(this ChartPerformer performer, object control) { MouseChartObjectIndicator ind = new MouseChartObjectIndicator(control); performer.Add(ind); }