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();
        }
Esempio n. 2
0
 /// <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]);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="performer">Chart performer</param>
 public LogarithmCoordinator(ChartPerformer performer)
     : base(performer)
 {
 }
Esempio n. 4
0
 /// <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)
 {
 }
Esempio n. 5
0
 internal StandardChartResizer(ChartPerformer performer)
 {
     this.performer = performer;
 }
Esempio n. 6
0
 /// <summary>
 /// Removes a performer
 /// </summary>
 /// <param name="performer">Performer to remove</param>
 public void Remove(ChartPerformer performer)
 {
     children.Remove(performer);
 }
Esempio n. 7
0
        /// <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);
        }