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); } } } } } }
public override void ObjectAdded(PlotObject value) { base.ObjectAdded(value); if (value is PlotDataView && value.Name == this.m_DockDataViewName) { this.m_CachedDockDataView = (value as PlotDataView); } }
public override void ObjectRemoved(PlotObject value) { base.ObjectRemoved(value); if (value == this.m_CachedDockDataView) { this.m_CachedDockDataView = null; } }
protected override void UpdateBoundsClip(PaintArgs p) { if (this.XAxis != null && this.YAxis != null) { this.m_XYSwapped = this.XAxis.DockHorizontal; int top = this.YAxis.ScaleDisplay.PixelsMin; int bottom = this.YAxis.ScaleDisplay.PixelsMax; int left = this.XAxis.ScaleDisplay.PixelsMin; int right = this.XAxis.ScaleDisplay.PixelsMax; if (this.ClippingStyle == PlotClippingStyle.DataView) { PlotDataView dockDataView = this.m_CachedYAxis.DockDataView; if (dockDataView != null) { if (!this.XYSwapped) { top = dockDataView.BoundsClip.Top; bottom = dockDataView.BoundsClip.Bottom; } else { top = dockDataView.BoundsClip.Left; bottom = dockDataView.BoundsClip.Right; } } dockDataView = this.XAxis.DockDataView; if (dockDataView != null) { if (!this.XYSwapped) { left = dockDataView.BoundsClip.Left; right = dockDataView.BoundsClip.Right; } else { left = dockDataView.BoundsClip.Top; right = dockDataView.BoundsClip.Bottom; } } } base.BoundsClip = iRectangle.FromLTRB(this.m_XYSwapped, left, top, right, bottom); base.BoundsClip = new Rectangle(base.BoundsClip.Left, base.BoundsClip.Top, base.BoundsClip.Width + 1, base.BoundsClip.Height + 1); } }
private void PerformStartStopFixup(PaintArgs p) { foreach (PlotLayoutBase layoutObject in this.LayoutObjects) { Rectangle rectangle; if (layoutObject is PlotLayoutDockableAll) { PlotLayoutDockableAll plotLayoutDockableAll = layoutObject as PlotLayoutDockableAll; if (plotLayoutDockableAll.DockStartStyle != 0) { PlotDataView dockStartDataView = plotLayoutDockableAll.DockStartDataView; if (dockStartDataView != null) { rectangle = ((plotLayoutDockableAll.DockStartStyle != PlotDockStartStopStyleDockableAll.DataViewOuter) ? dockStartDataView.BoundsClip : dockStartDataView.Bounds); if (plotLayoutDockableAll.DockVertical) { plotLayoutDockableAll.Bounds = Rectangle.FromLTRB(rectangle.Left, plotLayoutDockableAll.Bounds.Top, plotLayoutDockableAll.Bounds.Right, plotLayoutDockableAll.Bounds.Bottom); } else { plotLayoutDockableAll.Bounds = Rectangle.FromLTRB(plotLayoutDockableAll.Bounds.Left, plotLayoutDockableAll.Bounds.Top, plotLayoutDockableAll.Bounds.Right, rectangle.Bottom); } } } if (plotLayoutDockableAll.DockStopStyle != 0) { PlotDataView dockStartDataView = plotLayoutDockableAll.DockStopDataView; if (dockStartDataView != null) { rectangle = ((plotLayoutDockableAll.DockStopStyle != PlotDockStartStopStyleDockableAll.DataViewOuter) ? dockStartDataView.BoundsClip : dockStartDataView.Bounds); if (plotLayoutDockableAll.DockVertical) { plotLayoutDockableAll.Bounds = Rectangle.FromLTRB(plotLayoutDockableAll.Bounds.Left, plotLayoutDockableAll.Bounds.Top, rectangle.Right, plotLayoutDockableAll.Bounds.Bottom); } else { plotLayoutDockableAll.Bounds = Rectangle.FromLTRB(plotLayoutDockableAll.Bounds.Left, rectangle.Top, plotLayoutDockableAll.Bounds.Right, plotLayoutDockableAll.Bounds.Bottom); } } } } else if (layoutObject is PlotLayoutAxis) { PlotLayoutAxis plotLayoutAxis = layoutObject as PlotLayoutAxis; if (plotLayoutAxis.DockStartStyle != 0) { PlotLayoutAxis dockStartAxis = plotLayoutAxis.DockStartAxis; if (dockStartAxis != null) { rectangle = dockStartAxis.Bounds; if (dockStartAxis.DockVertical) { plotLayoutAxis.Bounds = Rectangle.FromLTRB(rectangle.Left, plotLayoutAxis.Bounds.Top, plotLayoutAxis.Bounds.Right, plotLayoutAxis.Bounds.Bottom); } else { plotLayoutAxis.Bounds = Rectangle.FromLTRB(plotLayoutAxis.Bounds.Left, plotLayoutAxis.Bounds.Top, plotLayoutAxis.Bounds.Right, rectangle.Bottom); } } } if (plotLayoutAxis.DockStopStyle != 0) { PlotLayoutAxis dockStartAxis = plotLayoutAxis.DockStopAxis; if (dockStartAxis != null) { rectangle = dockStartAxis.Bounds; if (dockStartAxis.DockVertical) { plotLayoutAxis.Bounds = Rectangle.FromLTRB(plotLayoutAxis.Bounds.Left, plotLayoutAxis.Bounds.Top, rectangle.Right, plotLayoutAxis.Bounds.Bottom); } else { plotLayoutAxis.Bounds = Rectangle.FromLTRB(plotLayoutAxis.Bounds.Left, rectangle.Top, plotLayoutAxis.Bounds.Right, plotLayoutAxis.Bounds.Bottom); } } } } } }
public bool Contains(PlotDataView value) { return(base.List.Contains(value)); }
public int IndexOf(PlotDataView value) { return(base.List.IndexOf(value)); }
public void Remove(PlotDataView value) { base.List.Remove(value); }
public void Insert(int index, PlotDataView value) { base.List.Insert(index, value); }
public int Add(PlotDataView value) { return(base.List.Add(value)); }
public PlotDataViewZoomBoxEventArgs(PlotDataView dataView, Rectangle r) { this.m_DataView = dataView; this.m_Rectangle = r; this.m_Cancel = false; }