Пример #1
0
 /// <summary>
 /// Create a new <see cref="OHLCBarItem"/> using the specified properties.
 /// </summary>
 /// <param name="label">The _label that will appear in the legend.</param>
 /// <param name="points">An <see cref="IPointList"/> of double precision values that define
 /// the Date, Close, Open, High, and Low values for the curve.  Note that this
 /// <see cref="IPointList" /> should contain <see cref="StockPt" /> items rather
 /// than <see cref="PointPair" /> items.
 /// </param>
 /// <param name="color">
 /// The <see cref="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 );
 }
Пример #2
0
		/// <summary>
		/// The Copy Constructor
		/// </summary>
		/// <param name="rhs">The <see cref="OHLCBar"/> object from which to copy</param>
		public OHLCBar( OHLCBar rhs ) : base( rhs )
		{
			_isOpenCloseVisible = rhs._isOpenCloseVisible;
			_size = rhs._size;
			_isAutoSize = rhs._isAutoSize;
		}
Пример #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 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 ) );
        }
Пример #4
0
 /// <summary>
 /// Create a new <see cref="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();
 }
Пример #5
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="OHLCBarItem"/> object from which to copy</param>
 public OHLCBarItem( OHLCBarItem rhs )
     : base(rhs)
 {
     _bar = rhs._bar.Clone();
 }
Пример #6
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="OHLCBar"/> object from which to copy</param>
 public OHLCBar(OHLCBar rhs) : base(rhs)
 {
     _isOpenCloseVisible = rhs._isOpenCloseVisible;
     _size       = rhs._size;
     _isAutoSize = rhs._isAutoSize;
 }
Пример #7
0
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The <see cref="OHLCBarItem"/> object from which to copy</param>
 public OHLCBarItem(OHLCBarItem rhs)
     : base(rhs)
 {
     _bar = rhs._bar.Clone();
 }
Пример #8
0
 /// <summary>
 /// Create a new <see cref="OHLCBarItem"/> using the specified properties.
 /// </summary>
 /// <param name="label">The _label that will appear in the legend.</param>
 /// <param name="points">An <see cref="IPointList"/> of double precision values that define
 /// the Date, Close, Open, High, and Low values for the curve.  Note that this
 /// <see cref="IPointList" /> should contain <see cref="StockPt" /> items rather
 /// than <see cref="PointPair" /> items.
 /// </param>
 /// <param name="color">
 /// The <see cref="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);
 }
Пример #9
0
 /// <summary>
 /// Create a new <see cref="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();
 }