Ejemplo n.º 1
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="HiLowBarItem"/> object from which to copy</param>
 public HiLowBarItem( HiLowBarItem rhs )
     : base(rhs)
 {
     _bar = rhs._bar.Clone(); // new HiLowBar( rhs.Bar );
 }
        /// <summary>
        /// Add a hi-low bar type curve (<see cref="CurveItem"/> object) to the plot with
        /// the given data points (<see cref="IPointList"/>) and properties.
        /// This is simplified way to add curves without knowledge of the
        /// <see cref="CurveList"/> class.  An alternative is to use
        /// the <see cref="ZedGraph.CurveList" /> Add() method.
        /// </summary>
        /// <param name="label">The text label (string) for the curve that will be
        /// used as a <see cref="Legend"/> entry.</param>
        /// <param name="points">A <see cref="IPointList"/> of double precision value Trio's that define
        /// the X, Y, and lower dependent values for this curve</param>
        /// <param name="color">The color to used to fill the bars</param>
        /// <returns>A <see cref="HiLowBarItem"/> class for the newly created bar curve.
        /// This can then be used to access all of the curve properties that
        /// are not defined as arguments to the
        /// <see cref="AddHiLowBar(string,IPointList,Color)"/> method.</returns>
        public HiLowBarItem AddHiLowBar( string label, IPointList points, Color color )
        {
            HiLowBarItem curve = new HiLowBarItem( label, points, color );
            _curveList.Add( curve );

            return curve;
        }
        /// <summary>
        /// Add a "High-Low" bar type curve (<see cref="HiLowBarItem"/> object) to the plot with
        /// the given data points (double arrays) and properties.
        /// This is simplified way to add curves without knowledge of the
        /// <see cref="CurveList"/> class.  An alternative is to use
        /// the <see cref="ZedGraph.CurveList" /> Add() method.
        /// </summary>
        /// <param name="label">The text label (string) for the curve that will be
        /// used as a <see cref="Legend"/> entry.</param>
        /// <param name="x">An array of double precision X values (the
        /// independent values) that define the curve.</param>
        /// <param name="y">An array of double precision Y values (the
        /// dependent values) that define the curve.</param>
        /// <param name="baseVal">An array of double precision values that define the
        /// base value (the bottom) of the bars for this curve.
        /// </param>
        /// <param name="color">The color to used for the bars</param>
        /// <returns>A <see cref="HiLowBarItem"/> class for the newly created bar curve.
        /// This can then be used to access all of the curve properties that
        /// are not defined as arguments to the
        /// <see cref="AddHiLowBar(string,double[],double[],double[],Color)"/> method.</returns>
        public HiLowBarItem AddHiLowBar( string label, double[] x, double[] y,
			double[] baseVal, Color color )
        {
            HiLowBarItem curve = new HiLowBarItem( label, x, y, baseVal, color );
            _curveList.Add( curve );

            return curve;
        }
Ejemplo n.º 4
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="HiLowBarItem"/> object from which to copy</param>
 public HiLowBarItem(HiLowBarItem rhs) : base(rhs)
 {
     _bar = rhs._bar.Clone(); // new HiLowBar( rhs.Bar );
 }
Ejemplo n.º 5
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="HiLowBarItem"/> object from which to copy</param>
 public HiLowBarItem( HiLowBarItem rhs )
     : base(rhs)
 {
 }
Ejemplo n.º 6
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="HiLowBarItem"/> object from which to copy</param>
 public HiLowBarItem(HiLowBarItem rhs) : base(rhs)
 {
 }