Пример #1
0
     internal PlotPane(Chart chart, string paneName, int paneOrder ) : base()
     {              
       m_Chart = chart;
       base.Name = paneName;
       this.m_Order = paneOrder;

       //for(var x=0; x<1600; x+= 48)
       //  for(var y=0; y<1800; y+= 16)
       //  {
       //  var elm =  new CheckBoxElement(this);// new TextLabelElement(this);
       //  elm.Region = new Rectangle(x,y, 46, 14);
       // // elm.Text = "Cell " + x+"x"+y;
       //  elm.Visible = true;
       //  }
     }
Пример #2
0
 /// <summary>
 /// Override to build elements that render the data by adding drawable elements to the chart 
 /// </summary>
 public abstract void BuildElements(Chart chart, PlotPane pane, Series series);
Пример #3
0
    internal void BuildViews(Chart chart)
    {
      foreach(var view in m_Views.OrderedValues.Where( v => v.Visible))
      {
        var pane = chart.Panes[view.PaneName];
        if (pane==null)
         throw new WFormsException("Pane '{0}' not found in chart".Args(view.PaneName));

        view.BuildElements(chart, pane, this);
      }
    }