Esempio n. 1
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 OHLCBarItem( 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 = (OHLCBar)info.GetValue( "stick", typeof( OHLCBar ) );
		}
Esempio n. 2
0
		/// <summary>
		/// The Copy Constructor
		/// </summary>
		/// <param name="rhs">The <see c_ref="OHLCBar"/> object from which to copy</param>
		public OHLCBar( OHLCBar rhs ) : base( rhs )
		{
			_isOpenCloseVisible = rhs._isOpenCloseVisible;
			_size = rhs._size;
			_isAutoSize = rhs._isAutoSize;
		}
Esempio n. 3
0
		/// <summary>
		/// Create a new <see c_ref="OHLCBarItem"/> using the specified properties.
		/// </summary>
		/// <param name="label">The _label that will appear in the legend.</param>
		/// <param name="points">An <see c_ref="IPointList"/> of double precision values that define
		/// the Date, Close, Open, High, and Low values for the curve.  Note that this
		/// <see c_ref="IPointList" /> should contain <see c_ref="StockPt" /> items rather
		/// than <see c_ref="PointPair" /> items.
		/// </param>
		/// <param name="color">
		/// The <see c_ref="System.Drawing.Color" /> to use for drawing the candlesticks.</param>
		public OHLCBarItem( string label, IPointList points, Color color )
			: base( label, points )
		{
			_bar = new OHLCBar( color );
		}
Esempio n. 4
0
		/// <summary>
		/// The Copy Constructor
		/// </summary>
		/// <param name="rhs">The <see c_ref="OHLCBarItem"/> object from which to copy</param>
		public OHLCBarItem( OHLCBarItem rhs )
			: base( rhs )
		{
			_bar = rhs._bar.Clone();
		}
Esempio n. 5
0
		/// <summary>
		/// Create a new <see c_ref="OHLCBarItem"/>, specifying only the legend label.
		/// </summary>
		/// <param name="label">The label that will appear in the legend.</param>
		public OHLCBarItem( string label )
			: base( label )
		{
			_bar = new OHLCBar();
		}
Esempio n. 6
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see c_ref="OHLCBarItem"/> object from which to copy</param>
 public OHLCBarItem(OHLCBarItem rhs)
     : base(rhs)
 {
     _bar = rhs._bar.Clone();
 }
Esempio n. 7
0
 /// <summary>
 /// Create a new <see c_ref="OHLCBarItem"/> using the specified properties.
 /// </summary>
 /// <param name="label">The _label that will appear in the legend.</param>
 /// <param name="points">An <see c_ref="IPointList"/> of double precision values that define
 /// the Date, Close, Open, High, and Low values for the curve.  Note that this
 /// <see c_ref="IPointList" /> should contain <see c_ref="StockPt" /> items rather
 /// than <see c_ref="PointPair" /> items.
 /// </param>
 /// <param name="color">
 /// The <see c_ref="System.Drawing.Color" /> to use for drawing the candlesticks.</param>
 public OHLCBarItem(string label, IPointList points, Color color)
     : base(label, points)
 {
     _bar = new OHLCBar(color);
 }
Esempio n. 8
0
 /// <summary>
 /// Create a new <see c_ref="OHLCBarItem"/>, specifying only the legend label.
 /// </summary>
 /// <param name="label">The label that will appear in the legend.</param>
 public OHLCBarItem(string label)
     : base(label)
 {
     _bar = new OHLCBar();
 }
Esempio n. 9
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see c_ref="OHLCBar"/> object from which to copy</param>
 public OHLCBar(OHLCBar rhs) : base(rhs)
 {
     _isOpenCloseVisible = rhs._isOpenCloseVisible;
     _size       = rhs._size;
     _isAutoSize = rhs._isAutoSize;
 }