示例#1
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see c_ref="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 c_ref="SerializationInfo"/> instance that defines the serialized data
        /// </param>
        /// <param name="context">A <see c_ref="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 c_ref="ErrorBarItem"/> object from which to copy</param>
 public ErrorBarItem(ErrorBarItem rhs) : base(rhs)
 {
     _bar = new ErrorBar(rhs.Bar);
 }
示例#4
0
 /// <summary>
 /// Create a new <see c_ref="ErrorBarItem"/> using the specified properties.
 /// </summary>
 /// <param name="label">The label that will appear in the legend.</param>
 /// <param name="points">A <see c_ref="IPointList"/> of double precision values that define
 /// the X, Y and lower dependent values for this curve</param>
 /// <param name="color">A <see c_ref="Color"/> value that will be applied to
 /// the <see c_ref="Line"/> properties.
 /// </param>
 public ErrorBarItem(string label, IPointList points, Color color)
     : base(label, points)
 {
     _bar = new ErrorBar(color);
 }
示例#5
0
 /// <summary>
 /// Create a new <see c_ref="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();
 }
示例#6
0
		/// <summary>
		/// Constructor for deserializing objects
		/// </summary>
		/// <param name="info">A <see c_ref="SerializationInfo"/> instance that defines the serialized data
		/// </param>
		/// <param name="context">A <see c_ref="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) );
		}
示例#7
0
		/// <summary>
		/// The Copy Constructor
		/// </summary>
		/// <param name="rhs">The <see c_ref="ErrorBarItem"/> object from which to copy</param>
		public ErrorBarItem( ErrorBarItem rhs ) : base( rhs )
		{
			_bar = new ErrorBar( rhs.Bar );
		}
示例#8
0
		/// <summary>
		/// Create a new <see c_ref="ErrorBarItem"/> using the specified properties.
		/// </summary>
		/// <param name="label">The label that will appear in the legend.</param>
		/// <param name="points">A <see c_ref="IPointList"/> of double precision values that define
		/// the X, Y and lower dependent values for this curve</param>
		/// <param name="color">A <see c_ref="Color"/> value that will be applied to
		/// the <see c_ref="Line"/> properties.
		/// </param>
		public ErrorBarItem( string label, IPointList points, Color color )
			: base( label, points )
		{
			_bar = new ErrorBar( color );
		}
示例#9
0
		/// <summary>
		/// Create a new <see c_ref="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();
		}
示例#10
0
文件: ErrorBar.cs 项目: CareyGit/jx
		/// <summary>
		/// The Copy Constructor
		/// </summary>
		/// <param name="rhs">The <see c_ref="ErrorBar"/> object from which to copy</param>
		public ErrorBar( ErrorBar rhs )
		{
			_color = rhs.Color;
			_isVisible = rhs.IsVisible;
			_penWidth = rhs.PenWidth;
			_symbol = rhs.Symbol.Clone();
		}