Example #1
0
 internal void Init()
 {
     _paneLayout        = MasterPane.Default.PaneLayout;
     _countList         = null;
     _isColumnSpecified = false;
     _prop = null;
 }
Example #2
0
 internal PaneLayoutMgr(PaneLayoutMgr rhs)
 {
     _paneLayout        = rhs._paneLayout;
     _countList         = rhs._countList;
     _isColumnSpecified = rhs._isColumnSpecified;
     _prop = rhs._prop;
 }
Example #3
0
		internal void Init()
		{
			_paneLayout = MasterPane.Default.PaneLayout;
			_countList = null;
			_isColumnSpecified = false;
			_prop = null;
		}
Example #4
0
 private void InitLayout()
 {
     _paneLayout        = Default.PaneLayout;
     _countList         = null;
     _isColumnSpecified = false;
     _prop = null;
 }
 public ZedGraphITraqProtein(ZedGraphControl zgcGraph, Graphics g, string title, PaneLayout pl = PaneLayout.SquareRowPreferred)
 {
     this.zgcGraph = zgcGraph;
     this.g        = g;
     this.title    = title;
     this.pl       = pl;
 }
Example #6
0
        /// <overloads>The SetLayout() methods setup the desired layout of the
        /// <see cref="GraphPane" /> objects within a <see cref="MasterPane" />.  These functions
        /// do not make any changes, they merely set the parameters so that future calls
        /// to <see cref="PaneBase.ReSize" /> or <see cref="DoLayout(Graphics)" />
        /// will use the desired layout.<br /><br />
        /// The layout options include a set of "canned" layouts provided by the
        /// <see cref="ZedGraph.PaneLayout" /> enumeration, options to just set a specific
        /// number of rows and columns of panes (and all pane sizes are the same), and more
        /// customized options of specifying the number or rows in each column or the number of
        /// columns in each row, along with proportional values that determine the size of each
        /// individual column or row.
        /// </overloads>
        /// <summary>
        /// Automatically set all of the <see cref="GraphPane"/> <see cref="PaneBase.Rect"/>'s in
        /// the list to a pre-defined layout configuration from a <see cref="PaneLayout" />
        /// enumeration.
        /// </summary>
        /// <remarks>This method uses a <see cref="PaneLayout"/> enumeration to describe the type of layout
        /// to be used.  Overloads are available that provide other layout options</remarks>
        /// <param name="paneLayout">A <see cref="PaneLayout"/> enumeration that describes how
        /// the panes should be laid out within the <see cref="PaneBase.Rect"/>.</param>
        /// <param name="g">
        /// A graphic device object to be drawn into.  This is normally created with a call to
        /// the CreateGraphics() method of the Control or Form.
        /// </param>
        /// <seealso cref="SetLayout(Graphics,int,int)" />
        /// <seealso cref="SetLayout(Graphics,bool,int[])" />
        /// <seealso cref="SetLayout(Graphics,bool,int[],float[])" />
        public void SetLayout(Graphics g, PaneLayout paneLayout)
        {
            InitLayout();

            _paneLayout = paneLayout;

            DoLayout(g);
        }
Example #7
0
        /// <summary>
        /// Constructor for deserializing objects
        /// </summary>
        /// <param name="info">A <see cref="SerializationInfo"/> instance that defines the serialized data
        /// </param>
        /// <param name="context">A <see cref="StreamingContext"/> instance that contains the serialized data
        /// </param>
        public PaneLayoutMgr(SerializationInfo info, StreamingContext context)
        {
            // The schema value is just a file version parameter.  You can use it to make future versions
            // backwards compatible as new member variables are added to classes
            int sch = info.GetInt32("schema");

            _paneLayout = (PaneLayout)info.GetValue("paneLayout", typeof(PaneLayout));
            _countList  = (int[])info.GetValue("countList", typeof(int[]));

            _isColumnSpecified = info.GetBoolean("isColumnSpecified");
            _prop = (float[])info.GetValue("prop", typeof(float[]));
        }
Example #8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PaneLayoutMgr"/> class. 
        /// Constructor for deserializing objects
        /// </summary>
        /// <param name="info">
        /// A <see cref="SerializationInfo"/> instance that defines the serialized data
        /// </param>
        /// <param name="context">
        /// A <see cref="StreamingContext"/> instance that contains the serialized data
        /// </param>
        public PaneLayoutMgr(SerializationInfo info, StreamingContext context)
        {
            // The schema value is just a file version parameter.  You can use it to make future versions
            // backwards compatible as new member variables are added to classes
            int sch = info.GetInt32("schema");

            this._paneLayout = (PaneLayout)info.GetValue("paneLayout", typeof(PaneLayout));
            this._countList = (int[])info.GetValue("countList", typeof(int[]));

            this._isColumnSpecified = info.GetBoolean("isColumnSpecified");
            this._prop = (float[])info.GetValue("prop", typeof(float[]));
        }
        /// <summary>
        /// The Copy Constructor
        /// </summary>
        /// <param name="rhs">The <see cref="MasterPane"/> object from which to copy</param>
        public MasterPane(MasterPane rhs) : base(rhs)
        {
            this.paneLayout              = rhs.paneLayout;
            this.innerPaneGap            = rhs.innerPaneGap;
            this.rows                    = rhs.rows;
            this.columns                 = rhs.rows;
            this.isColumnSpecified       = rhs.isColumnSpecified;
            this.countList               = rhs.countList;
            this.hasUniformLegendEntries = rhs.hasUniformLegendEntries;

            this.paneList = (PaneList)rhs.paneList.Clone();
        }
        /// <summary>
        /// Default constructor for the class.  Specifies the <see cref="PaneBase.Title"/> of
        /// the <see cref="MasterPane"/>, and the size of the <see cref="PaneBase.PaneRect"/>.
        /// </summary>
        public MasterPane(string title, RectangleF paneRect) : base(title, paneRect)
        {
            this.paneLayout              = Default.PaneLayout;
            this.innerPaneGap            = Default.InnerPaneGap;
            this.rows                    = -1;
            this.columns                 = -1;
            this.isColumnSpecified       = false;
            this.countList               = null;
            this.hasUniformLegendEntries = Default.hasUniformLegendEntries;

            this.paneList = new PaneList();

            this.legend.IsVisible = Default.IsShowLegend;
        }
        /// <summary>
        /// Constructor for deserializing objects
        /// </summary>
        /// <param name="info">A <see cref="SerializationInfo"/> instance that defines the serialized data
        /// </param>
        /// <param name="context">A <see cref="StreamingContext"/> instance that contains the serialized data
        /// </param>
        protected MasterPane(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            // The schema value is just a file version parameter.  You can use it to make future versions
            // backwards compatible as new member variables are added to classes
            int sch = info.GetInt32("schema2");

            this.paneList     = (PaneList)info.GetValue("paneList", typeof(PaneList));
            this.paneLayout   = (PaneLayout)info.GetValue("paneLayout", typeof(PaneLayout));
            this.innerPaneGap = info.GetSingle("innerPaneGap");

            this.rows                    = info.GetInt32("rows");
            this.columns                 = info.GetInt32("columns");
            this.isColumnSpecified       = info.GetBoolean("isColumnSpecified");
            this.countList               = (int[])info.GetValue("countList", typeof(int[]));
            this.hasUniformLegendEntries = info.GetBoolean("hasUniformLegendEntries");
        }
Example #12
0
        /// <summary>
        /// The Copy Constructor - Make a deep-copy clone of this class instance.
        /// </summary>
        /// <param name="rhs">The <see cref="MasterPane"/> object from which to copy</param>
        public MasterPane(MasterPane rhs) : base(rhs)
        {
            // copy all the value types
            //_paneLayoutMgr = rhs._paneLayoutMgr.Clone();
            _innerPaneGap           = rhs._innerPaneGap;
            _isUniformLegendEntries = rhs._isUniformLegendEntries;
            _isCommonScaleFactor    = rhs._isCommonScaleFactor;

            // Then, fill in all the reference types with deep copies
            _paneList = rhs._paneList.Clone();

            _paneLayout        = rhs._paneLayout;
            _countList         = rhs._countList;
            _isColumnSpecified = rhs._isColumnSpecified;
            _prop = rhs._prop;
        }
Example #13
0
        public void ConfigGraphPane(ZedGraphControl zgc, Form f, PaneLayout pl, List<ChartInfo> chInfo)
        {
            MasterPane master = zgc.MasterPane;

            master.PaneList.Clear();
            master.Title.IsVisible = true;
            foreach (ChartInfo ci in chInfo)
            {
                var pane = new GraphPane();
                master.PaneList.Add(pane);
                ConfigGraphPane(pane, ci.Title, ci.XAxisTitle, ci.YAxisTitle);
            }
            using (Graphics g = zgc.CreateGraphics())
            {
                master.SetLayout(g, pl);
                master.AxisChange(g);
            }
            zgc.AxisChange();
        }
Example #14
0
        /// <summary>
        /// Constructor for deserializing objects
        /// </summary>
        /// <param name="info">A <see cref="SerializationInfo"/> instance that defines the serialized data
        /// </param>
        /// <param name="context">A <see cref="StreamingContext"/> instance that contains the serialized data
        /// </param>
        protected MasterPane(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            // The schema value is just a file version parameter.  You can use it to make future versions
            // backwards compatible as new member variables are added to classes
            int sch = info.GetInt32("schema2");

            _paneList = (PaneList)info.GetValue("paneList", typeof(PaneList));
            //_paneLayoutMgr = (PaneLayoutMgr) info.GetValue( "paneLayoutMgr", typeof(PaneLayoutMgr) );
            _innerPaneGap = info.GetSingle("innerPaneGap");

            _isUniformLegendEntries = info.GetBoolean("isUniformLegendEntries");
            _isCommonScaleFactor    = info.GetBoolean("isCommonScaleFactor");

            _paneLayout = (PaneLayout)info.GetValue("paneLayout", typeof(PaneLayout));
            _countList  = (int[])info.GetValue("countList", typeof(int[]));

            _isColumnSpecified = info.GetBoolean("isColumnSpecified");
            _prop = (float[])info.GetValue("prop", typeof(float[]));
        }
Example #15
0
        public void ConfigGraphPane(ZedGraphControl zgc, Form f, PaneLayout pl, List <ChartInfo> chInfo)
        {
            MasterPane master = zgc.MasterPane;

            master.PaneList.Clear();
            master.Title.IsVisible = true;
            foreach (ChartInfo ci in chInfo)
            {
                var pane = new GraphPane();
                master.PaneList.Add(pane);
                ConfigGraphPane(pane, ci.Title, ci.XAxisTitle, ci.YAxisTitle);
            }
            using (Graphics g = zgc.CreateGraphics())
            {
                master.SetLayout(g, pl);
                master.AxisChange(g);
            }
            zgc.AxisChange();
        }
Example #16
0
    public static MasterPane InitMasterPanel(this ZedGraphControl zgcGraph, Graphics g, int graphCount, string title, PaneLayout pl = PaneLayout.SingleColumn)
    {
      MasterPane myMaster = zgcGraph.MasterPane;
      myMaster.PaneList.Clear();

      myMaster.Margin.All = 10;
      myMaster.InnerPaneGap = 10;

      // Set the master pane title
      myMaster.Title.Text = title;
      myMaster.Title.IsVisible = true;
      myMaster.Legend.IsVisible = false;

      for (int i = 0; i < graphCount; i++)
      {
        myMaster.Add(new GraphPane());
      }
      myMaster.SetLayout(g, pl);
      zgcGraph.AxisChange();
      return myMaster;
    }
Example #17
0
 public PaneBase(PaneLayout mode) : base()
 {
     renderer = new PaneRenderer(this);
     InitCols();
 }
Example #18
0
//.
        /// <summary/>
        public GraphicContainer() : base()
        {
            LayoutMode = defaultLayout; InitializeComponent(); CPaint += DoPaint;
        }
Example #19
0
 private void InitLayout()
 {
     PaneLayout = Default.PaneLayout;
     CountList = null;
     IsColumnSpecified = false;
     Prop = null;
 }
        /// <summary>
        /// Automatically set all of the <see cref="GraphPane"/> <see cref="PaneBase.PaneRect"/>'s in
        /// the list to a reasonable configuration.
        /// </summary>
        /// <remarks>This method uses a <see cref="PaneLayout"/> enumeration to describe the type of layout
        /// to be used.  An explicit (row,column) overload is also available.</remarks>
        /// <param name="g">
        /// A graphic device object to be drawn into.  This is normally e.Graphics from the
        /// PaintEventArgs argument to the Paint() method.
        /// </param>
        /// <param name="paneLayout">A <see cref="PaneLayout"/> enumeration that describes how
        /// the panes should be laid out within the <see cref="PaneBase.PaneRect"/>.</param>
        public void AutoPaneLayout(Graphics g, PaneLayout paneLayout)
        {
            int count = this.PaneList.Count;

            if (count == 0)
            {
                return;
            }

            int rows,
                cols,
                root = (int)(Math.Sqrt((double)count) + 0.9999999);

            float[] widthList = new float[5];

            switch (paneLayout)
            {
            case PaneLayout.ForceSquare:
                rows = root;
                cols = root;
                AutoPaneLayout(g, rows, cols);
                break;

            case PaneLayout.SingleColumn:
                rows = count;
                cols = 1;
                AutoPaneLayout(g, rows, cols);
                break;

            case PaneLayout.SingleRow:
                rows = 1;
                cols = count;
                AutoPaneLayout(g, rows, cols);
                break;

            default:
            case PaneLayout.SquareColPreferred:
                rows = root;
                cols = root;
                if (count <= root * (root - 1))
                {
                    rows--;
                }
                AutoPaneLayout(g, rows, cols);
                break;

            case PaneLayout.SquareRowPreferred:
                rows = root;
                cols = root;
                if (count <= root * (root - 1))
                {
                    cols--;
                }
                AutoPaneLayout(g, rows, cols);
                break;

            case PaneLayout.ExplicitCol12:
                AutoPaneLayout(g, true, new int[2] {
                    1, 2
                });
                break;

            case PaneLayout.ExplicitCol21:
                AutoPaneLayout(g, true, new int[2] {
                    2, 1
                });
                break;

            case PaneLayout.ExplicitCol23:
                AutoPaneLayout(g, true, new int[2] {
                    2, 3
                });
                break;

            case PaneLayout.ExplicitCol32:
                AutoPaneLayout(g, true, new int[2] {
                    3, 2
                });
                break;

            case PaneLayout.ExplicitRow12:
                AutoPaneLayout(g, false, new int[2] {
                    1, 2
                });
                break;

            case PaneLayout.ExplicitRow21:
                AutoPaneLayout(g, false, new int[2] {
                    2, 1
                });
                break;

            case PaneLayout.ExplicitRow23:
                AutoPaneLayout(g, false, new int[2] {
                    2, 3
                });
                break;

            case PaneLayout.ExplicitRow32:
                AutoPaneLayout(g, false, new int[2] {
                    3, 2
                });
                break;
            }

            // save the layout settings for future reference
            this.paneLayout = paneLayout;
            this.countList  = null;
            this.rows       = -1;
            this.columns    = -1;
        }
Example #21
0
        /// <overloads>
        /// The SetLayout() methods setup the desired layout of the
        /// <see cref="GraphPane"/> objects within a <see cref="MasterPane"/>.  These functions do not make any changes, they merely set the parameters so that
        /// future calls to <see cref="PaneBase.ReSize"/> or <see cref="DoLayout(Graphics)"/>
        /// will use the desired layout.<br/><br/>
        /// The layout options include a set of "canned" layouts provided by the
        /// <see cref="PaneLayout"/> enumeration, options to just set a specific number of rows and columns of panes (and all pane sizes are the same), and more
        /// customized options of specifying the number or rows in each column or the number of columns in each row, along with proportional values that
        /// determine the size of each individual column or row.
        /// </overloads>
        /// <summary>
        /// Automatically set all of the <see cref="GraphPane"/> <see cref="PaneBase.Rect"/>'s in the list to a pre-defined layout configuration from a
        /// <see cref="PaneLayout"/>
        /// enumeration.
        /// </summary>
        /// <remarks>
        /// This method uses a <see cref="PaneLayout"/> enumeration to describe the type of layout to be used.  Overloads are available that provide other
        /// layout options
        /// </remarks>
        /// <param name="g">
        /// A graphic device object to be drawn into.  This is normally created with a call to the CreateGraphics() method of the Control or
        /// Form.
        /// </param>
        /// <param name="paneLayout">
        /// A <see cref="PaneLayout"/> enumeration that describes how the panes should be laid out within the
        /// <see cref="PaneBase.Rect"/>.
        /// </param>
        /// <seealso cref="SetLayout(Graphics,int,int)"/>
        /// <seealso cref="SetLayout(Graphics,bool,int[])"/>
        /// <seealso cref="SetLayout(Graphics,bool,int[],float[])"/>
        public void SetLayout(Graphics g, PaneLayout paneLayout)
        {
            this.InitLayout();

            this._paneLayout = paneLayout;

            this.DoLayout(g);
        }
Example #22
0
 /// <summary>
 /// The init layout.
 /// </summary>
 private void InitLayout()
 {
     this._paneLayout = Default.PaneLayout;
     this._countList = null;
     this._isColumnSpecified = false;
     this._prop = null;
 }
Example #23
0
 internal PaneLayoutMgr( PaneLayoutMgr rhs )
 {
     _paneLayout = rhs._paneLayout;
     _countList = rhs._countList;
     _isColumnSpecified = rhs._isColumnSpecified;
     _prop = rhs._prop;
 }
Example #24
0
 public ListBoxPane(PaneLayout mode) : base()
 {
 }
Example #25
0
        public static MasterPane InitMasterPanel(this ZedGraphControl zgcGraph, Graphics g, int graphCount, string title, PaneLayout pl = PaneLayout.SingleColumn)
        {
            MasterPane myMaster = zgcGraph.MasterPane;

            myMaster.PaneList.Clear();

            myMaster.Margin.All   = 10;
            myMaster.InnerPaneGap = 10;

            // Set the master pane title
            myMaster.Title.Text       = title;
            myMaster.Title.IsVisible  = true;
            myMaster.Legend.IsVisible = false;

            for (int i = 0; i < graphCount; i++)
            {
                myMaster.Add(new GraphPane());
            }
            myMaster.SetLayout(g, pl);
            zgcGraph.AxisChange();
            return(myMaster);
        }
 private void InitLayout()
 {
     _paneLayout = Default.PaneLayout;
     _countList = null;
     _isColumnSpecified = false;
     _prop = null;
 }
Example #27
0
 public Pane(PaneLayout mode) : base()
 {
 }
Example #28
0
        /// <overloads>The SetLayout() methods setup the desired layout of the
        /// <see cref="GraphPane" /> objects within a <see cref="MasterPane" />.  These functions
        /// do not make any changes, they merely set the parameters so that future calls
        /// to <see cref="PaneBase.ReSize" /> or <see cref="DoLayout(Graphics,MasterPane)" />
        /// will use the desired layout.<br /><br />
        /// The layout options include a set of "canned" layouts provided by the
        /// <see cref="ZedGraph.PaneLayout" /> enumeration, options to just set a specific
        /// number of rows and columns of panes (and all pane sizes are the same), and more
        /// customized options of specifying the number or rows in each column or the number of
        /// columns in each row, along with proportional values that determine the size of each
        /// individual column or row.
        /// </overloads>
        /// <summary>
        /// Automatically set all of the <see cref="GraphPane"/> <see cref="PaneBase.Rect"/>'s in
        /// the list to a pre-defined layout configuration from a <see cref="PaneLayout" />
        /// enumeration.
        /// </summary>
        /// <remarks>This method uses a <see cref="PaneLayout"/> enumeration to describe the type of layout
        /// to be used.  Overloads are available that provide other layout options</remarks>
        /// <param name="paneLayout">A <see cref="PaneLayout"/> enumeration that describes how
        /// the panes should be laid out within the <see cref="PaneBase.Rect"/>.</param>
        /// <seealso cref="SetLayout(int,int)" />
        /// <seealso cref="SetLayout(bool,int[])" />
        /// <seealso cref="SetLayout(bool,int[],float[])" />
        public void SetLayout( PaneLayout paneLayout )
        {
            Init();

            _paneLayout = paneLayout;
        }
Example #29
0
        /// <overloads>The SetLayout() methods setup the desired layout of the
        /// <see cref="GraphPane" /> objects within a <see cref="MasterPane" />.  These functions
        /// do not make any changes, they merely set the parameters so that future calls
        /// to <see cref="PaneBase.ReSize" /> or <see cref="DoLayout(Graphics,MasterPane)" />
        /// will use the desired layout.<br /><br />
        /// The layout options include a set of "canned" layouts provided by the
        /// <see cref="ZedGraph.PaneLayout" /> enumeration, options to just set a specific
        /// number of rows and columns of panes (and all pane sizes are the same), and more
        /// customized options of specifying the number or rows in each column or the number of
        /// columns in each row, along with proportional values that determine the size of each
        /// individual column or row.
        /// </overloads>
        /// <summary>
        /// Automatically set all of the <see cref="GraphPane"/> <see cref="PaneBase.Rect"/>'s in
        /// the list to a pre-defined layout configuration from a <see cref="PaneLayout" />
        /// enumeration.
        /// </summary>
        /// <remarks>This method uses a <see cref="PaneLayout"/> enumeration to describe the type of layout
        /// to be used.  Overloads are available that provide other layout options</remarks>
        /// <param name="paneLayout">A <see cref="PaneLayout"/> enumeration that describes how
        /// the panes should be laid out within the <see cref="PaneBase.Rect"/>.</param>
        /// <seealso cref="SetLayout(int,int)" />
        /// <seealso cref="SetLayout(bool,int[])" />
        /// <seealso cref="SetLayout(bool,int[],float[])" />
        public void SetLayout(PaneLayout paneLayout)
        {
            Init();

            _paneLayout = paneLayout;
        }
Example #30
0
 public void SetLayout(PaneLayout layout)
 {
     paneLayout = layout;
 }
        /// <summary>
        /// Constructor for deserializing objects
        /// </summary>
        /// <param name="info">A <see cref="SerializationInfo"/> instance that defines the serialized data
        /// </param>
        /// <param name="context">A <see cref="StreamingContext"/> instance that contains the serialized data
        /// </param>
        protected MasterPane( SerializationInfo info, StreamingContext context )
            : base(info, context)
        {
            // The schema value is just a file version parameter.  You can use it to make future versions
            // backwards compatible as new member variables are added to classes
            int sch = info.GetInt32( "schema2" );

            _paneList = (PaneList) info.GetValue( "paneList", typeof(PaneList) );
            //_paneLayoutMgr = (PaneLayoutMgr) info.GetValue( "paneLayoutMgr", typeof(PaneLayoutMgr) );
            _innerPaneGap = info.GetSingle( "innerPaneGap" );

            _isUniformLegendEntries = info.GetBoolean( "isUniformLegendEntries" );
            _isCommonScaleFactor = info.GetBoolean( "isCommonScaleFactor" );

            _paneLayout = (PaneLayout)info.GetValue( "paneLayout", typeof( PaneLayout ) );
            _countList = (int[])info.GetValue( "countList", typeof( int[] ) );

            _isColumnSpecified = info.GetBoolean( "isColumnSpecified" );
            _prop = (float[])info.GetValue( "prop", typeof( float[] ) );
        }
        /// <summary>
        /// The Copy Constructor - Make a deep-copy clone of this class instance.
        /// </summary>
        /// <param name="rhs">The <see cref="MasterPane"/> object from which to copy</param>
        public MasterPane( MasterPane rhs )
            : base(rhs)
        {
            // copy all the value types
            //_paneLayoutMgr = rhs._paneLayoutMgr.Clone();
            _innerPaneGap = rhs._innerPaneGap;
            _isUniformLegendEntries = rhs._isUniformLegendEntries;
            _isCommonScaleFactor = rhs._isCommonScaleFactor;

            // Then, fill in all the reference types with deep copies
            _paneList = rhs._paneList.Clone();

            _paneLayout = rhs._paneLayout;
            _countList = rhs._countList;
            _isColumnSpecified = rhs._isColumnSpecified;
            _prop = rhs._prop;
        }
Example #33
0
 public virtual void Call(PaneLayout api, params object[] data)
 {
 }
        /// <overloads>The SetLayout() methods setup the desired layout of the
        /// <see cref="GraphPane" /> objects within a <see cref="MasterPane" />.  These functions
        /// do not make any changes, they merely set the parameters so that future calls
        /// to <see cref="PaneBase.ReSize" /> or <see cref="DoLayout(Graphics)" />
        /// will use the desired layout.<br /><br />
        /// The layout options include a set of "canned" layouts provided by the
        /// <see cref="ZedGraph.PaneLayout" /> enumeration, options to just set a specific
        /// number of rows and columns of panes (and all pane sizes are the same), and more
        /// customized options of specifying the number or rows in each column or the number of
        /// columns in each row, along with proportional values that determine the size of each
        /// individual column or row.
        /// </overloads>
        /// <summary>
        /// Automatically set all of the <see cref="GraphPane"/> <see cref="PaneBase.Rect"/>'s in
        /// the list to a pre-defined layout configuration from a <see cref="PaneLayout" />
        /// enumeration.
        /// </summary>
        /// <remarks>This method uses a <see cref="PaneLayout"/> enumeration to describe the type of layout
        /// to be used.  Overloads are available that provide other layout options</remarks>
        /// <param name="paneLayout">A <see cref="PaneLayout"/> enumeration that describes how
        /// the panes should be laid out within the <see cref="PaneBase.Rect"/>.</param>
        /// <param name="g">
        /// A graphic device object to be drawn into.  This is normally created with a call to
        /// the CreateGraphics() method of the Control or Form.
        /// </param>
        /// <seealso cref="SetLayout(Graphics,int,int)" />
        /// <seealso cref="SetLayout(Graphics,bool,int[])" />
        /// <seealso cref="SetLayout(Graphics,bool,int[],float[])" />
        public void SetLayout( Graphics g, PaneLayout paneLayout )
        {
            InitLayout();

            _paneLayout = paneLayout;

            DoLayout( g );
        }
Example #35
0
        /// <overloads>
        /// The SetLayout() methods setup the desired layout of the
        /// <see cref="GraphPane"/> objects within a <see cref="MasterPane"/>.  These functions do not make any changes, they merely set the parameters so that
        /// future calls to <see cref="PaneBase.ReSize"/> or <see cref="DoLayout(Graphics,MasterPane)"/>
        /// will use the desired layout.<br/><br/>
        /// The layout options include a set of "canned" layouts provided by the
        /// <see cref="PaneLayout"/> enumeration, options to just set a specific number of rows and columns of panes (and all pane sizes are the same), and more
        /// customized options of specifying the number or rows in each column or the number of columns in each row, along with proportional values that
        /// determine the size of each individual column or row.
        /// </overloads>
        /// <summary>
        /// Automatically set all of the <see cref="GraphPane"/> <see cref="PaneBase.Rect"/>'s in the list to a pre-defined layout configuration from a
        /// <see cref="PaneLayout"/>
        /// enumeration.
        /// </summary>
        /// <remarks>
        /// This method uses a <see cref="PaneLayout"/> enumeration to describe the type of layout to be used.  Overloads are available that provide other
        /// layout options
        /// </remarks>
        /// <param name="paneLayout">
        /// A <see cref="PaneLayout"/> enumeration that describes how the panes should be laid out within the
        /// <see cref="PaneBase.Rect"/>.
        /// </param>
        /// <seealso cref="SetLayout(int,int)"/>
        /// <seealso cref="SetLayout(bool,int[])"/>
        /// <seealso cref="SetLayout(bool,int[],float[])"/>
        public void SetLayout(PaneLayout paneLayout)
        {
            this.Init();

            this._paneLayout = paneLayout;
        }