示例#1
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="ErrorBar"/> object from which to copy</param>
 public ErrorBar(ErrorBar rhs)
 {
     _color     = rhs.Color;
     _isVisible = rhs.IsVisible;
     _penWidth  = rhs.PenWidth;
     _symbol    = rhs.Symbol.Clone();
 }
示例#2
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 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");

            _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));
        }
示例#3
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="ErrorBar"/> object from which to copy</param>
 public ErrorBar( ErrorBar rhs )
 {
     _color = rhs.Color;
     _isVisible = rhs.IsVisible;
     _penWidth = rhs.PenWidth;
     _symbol = rhs.Symbol.Clone();
 }
示例#4
0
 /// <summary>
 /// 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)
 {
     _bar = new ErrorBar();
 }
示例#5
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 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" );

            _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) );
        }
示例#6
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="ErrorBarItem"/> object from which to copy</param>
 public ErrorBarItem( ErrorBarItem rhs )
     : base(rhs)
 {
     _bar = new ErrorBar( rhs.Bar );
 }
示例#7
0
 /// <summary>
 /// 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)
 {
     _bar = new ErrorBar( color );
 }
示例#8
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="ErrorBarItem"/> object from which to copy</param>
 public ErrorBarItem(ErrorBarItem rhs) : base(rhs)
 {
     _bar = new ErrorBar(rhs.Bar);
 }
示例#9
0
 /// <summary>
 /// 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)
 {
     _bar = new ErrorBar(color);
 }
示例#10
0
 /// <summary>
 /// 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)
 {
     _bar = new ErrorBar();
 }