Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ErrorBar"/> class. 
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">
 /// The <see cref="ErrorBar"/> object from which to copy
 /// </param>
 public ErrorBar(ErrorBar rhs)
 {
     this._color = rhs.Color;
     this._isVisible = rhs.IsVisible;
     this._penWidth = rhs.PenWidth;
     this._symbol = rhs.Symbol.Clone();
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ErrorBarItem"/> class. 
 /// Create a new <see cref="ErrorBarItem"/>, specifying only the legend label.
 /// </summary>
 /// <param name="label">
 /// The label that will appear in the legend.
 /// </param>
 public ErrorBarItem(string label)
     : base(label)
 {
     this._bar = new ErrorBar();
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ErrorBarItem"/> class. 
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">
 /// The <see cref="ErrorBarItem"/> object from which to copy
 /// </param>
 public ErrorBarItem(ErrorBarItem rhs)
     : base(rhs)
 {
     this._bar = new ErrorBar(rhs.Bar);
 }
Exemple #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ErrorBarItem"/> 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>
        protected ErrorBarItem(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._bar = (ErrorBar)info.GetValue("bar", typeof(ErrorBar));

            // This is now just a dummy variable, since barBase was removed
            BarBase barBase = (BarBase)info.GetValue("barBase", typeof(BarBase));
        }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ErrorBarItem"/> class. 
 /// Create a new <see cref="ErrorBarItem"/> using the specified properties.
 /// </summary>
 /// <param name="label">
 /// The label that will appear in the legend.
 /// </param>
 /// <param name="points">
 /// A <see cref="IPointList"/> of double precision values that define the X, Y and lower dependent values for this curve
 /// </param>
 /// <param name="color">
 /// A <see cref="Color"/> value that will be applied to the <see cref="Line"/> properties.
 /// </param>
 public ErrorBarItem(string label, IPointList points, Color color)
     : base(label, points)
 {
     this._bar = new ErrorBar(color);
 }