public PlotLayoutBlockGroup() { this.m_ListLeft = new PlotLayoutBlockItemCollection(); this.m_ListRight = new PlotLayoutBlockItemCollection(); this.m_ListTop = new PlotLayoutBlockItemCollection(); this.m_ListBottom = new PlotLayoutBlockItemCollection(); }
public PlotLayoutManager(Plot plot) { this.m_LayoutObjects = new PlotLayoutBaseCollection(); this.m_BlockItems = new PlotLayoutBlockItemCollection(); this.m_StackingGroups = new PlotLayoutStackingGroupCollection(); this.m_DataViewGroups = new PlotLayoutBlockGroupCollection(); this.m_ListDataViews = new PlotLayoutBaseCollection(); this.m_PlotDockGroup = new PlotLayoutBlockGroup(); this.m_LayoutGroupOrphan = new PlotLayoutBlockGroup(); this.m_BlockObjects = new PlotLayoutBlockBaseCollection(); plot.PlotObjectAdded += this.plot_PlotObjectAdded; plot.PlotObjectRemoved += this.plot_PlotObjectRemoved; this.AutoInsertEnabled = true; this.Plot = plot; }
public void FixupStacking(PlotLayoutBlockItemCollection list, int targetIndex) { PlotLayoutBlockItemCollection plotLayoutBlockItemCollection = new PlotLayoutBlockItemCollection(); foreach (PlotLayoutBlockItem item in list) { if (item.Object.DockOrder == targetIndex) { plotLayoutBlockItemCollection.Add(item); } } plotLayoutBlockItemCollection.SortDockPercentStart(); for (int i = 0; i < plotLayoutBlockItemCollection.Count; i++) { PlotLayoutBlockItem plotLayoutBlockItem2 = plotLayoutBlockItemCollection[i]; PlotLayoutDockableDataView plotLayoutDockableDataView = plotLayoutBlockItem2.Object as PlotLayoutDockableDataView; if (plotLayoutDockableDataView != null) { plotLayoutDockableDataView.DockPercentStart = (double)i * 1.0 / (double)plotLayoutBlockItemCollection.Count; plotLayoutDockableDataView.DockPercentStop = plotLayoutDockableDataView.DockPercentStart + 1.0 / (double)plotLayoutBlockItemCollection.Count; } } }
public PlotLayoutUniqueDockOrder() { this.m_Items = new PlotLayoutBlockItemCollection(); }