Beispiel #1
0
 private void Draw(PaintArgs p, Plot plot, PlotAxis axis, bool drawMajors)
 {
     if (this.Visible && plot != null)
     {
         string       dockDataViewName = axis.DockDataViewName;
         PlotDataView plotDataView     = plot.DataViews[dockDataViewName];
         if (plotDataView != null)
         {
             p.Graphics.SetClip(plotDataView.BoundsClip);
             this.DrawToDataView(p, axis, plotDataView.BoundsClip, drawMajors);
             foreach (PlotDataView dataView in plot.DataViews)
             {
                 if (dataView != plotDataView)
                 {
                     if (axis.DockVertical)
                     {
                         if (PlotBase.GetNamesMatch(dataView.GridLinesMirrorVertical, dockDataViewName))
                         {
                             this.DrawToDataView(p, axis, dataView.BoundsClip, drawMajors);
                         }
                     }
                     else if (PlotBase.GetNamesMatch(dataView.GridLinesMirrorHorizontal, dockDataViewName))
                     {
                         this.DrawToDataView(p, axis, dataView.BoundsClip, drawMajors);
                     }
                 }
             }
         }
     }
 }
Beispiel #2
0
 private void UpdateChannelList(Plot plot)
 {
     this.m_ChannelList.Clear();
     foreach (PlotChannelBase channel in plot.Channels)
     {
         if (this.Axis is PlotXAxis)
         {
             if (PlotBase.GetNamesMatch(this.Axis.Name, channel.XAxisName))
             {
                 this.m_ChannelList.Add(channel);
             }
         }
         else if (this.Axis is PlotYAxis && PlotBase.GetNamesMatch(this.Axis.Name, channel.YAxisName))
         {
             this.m_ChannelList.Add(channel);
         }
     }
 }