Ejemplo n.º 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();
 }
Ejemplo n.º 2
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;
     this.symbol = (Symbol)rhs.Symbol.Clone();
 }
Ejemplo n.º 3
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");

            errorBar = (ErrorBar)info.GetValue("errorBar", typeof(ErrorBar));
            barBase  = (BarBase)info.GetValue("barBase", typeof(BarBase));
        }
Ejemplo n.º 4
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);
 }
Ejemplo n.º 5
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);
 }
Ejemplo n.º 6
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();
 }
Ejemplo n.º 7
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();
		}
Ejemplo n.º 8
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) );
		}
Ejemplo n.º 9
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 );
		}
Ejemplo n.º 10
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 );
		}
Ejemplo n.º 11
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();
		}
Ejemplo n.º 12
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;
     this.symbol = (Symbol) rhs.Symbol.Clone();
 }
Ejemplo n.º 13
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="PointPairList"/> 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, PointPairList points, Color color)
     : base(label, points)
 {
     errorBar = new ErrorBar(color);
 }
Ejemplo n.º 14
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="PointPairList"/> 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, PointPairList points, Color color )
     : base(label, points)
 {
     errorBar = new ErrorBar( color );
 }
Ejemplo n.º 15
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, int zOrder = -1)
     : base(label, points, zOrder)
 {
     _bar = new ErrorBar(color);
 }
Ejemplo n.º 16
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, int zOrder = -1) : base(label, zOrder)
 {
     _bar = new ErrorBar();
 }