Ejemplo n.º 1
0
 public PlotLayoutBlockGroup()
 {
     this.m_ListLeft   = new PlotLayoutBlockItemCollection();
     this.m_ListRight  = new PlotLayoutBlockItemCollection();
     this.m_ListTop    = new PlotLayoutBlockItemCollection();
     this.m_ListBottom = new PlotLayoutBlockItemCollection();
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
        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;
                }
            }
        }
Ejemplo n.º 4
0
 public PlotLayoutUniqueDockOrder()
 {
     this.m_Items = new PlotLayoutBlockItemCollection();
 }