/// <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 JapaneseCandleStickItem(string label) : base(label) { _stick = new JapaneseCandleStick(); }
/// <summary> /// The Copy Constructor /// </summary> /// <param name="rhs">The <see c_ref="JapaneseCandleStick"/> object from which to copy</param> public JapaneseCandleStick( JapaneseCandleStick rhs ) : base( rhs ) { _risingFill = rhs._risingFill.Clone(); _fallingFill = rhs._fallingFill.Clone(); _risingBorder = rhs._risingBorder.Clone(); _fallingBorder = rhs._fallingBorder.Clone(); _fallingColor = rhs._fallingColor; }
/// <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 JapaneseCandleStickItem( 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" ); _stick = (JapaneseCandleStick) info.GetValue( "stick", typeof( JapaneseCandleStick ) ); }
/// <summary> /// The Copy Constructor /// </summary> /// <param name="rhs">The <see c_ref="JapaneseCandleStickItem"/> object from which to copy</param> public JapaneseCandleStickItem( JapaneseCandleStickItem rhs ) : base( rhs ) { _stick = rhs._stick.Clone(); }
/// <summary> /// Create a new <see c_ref="JapaneseCandleStickItem"/> 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> public JapaneseCandleStickItem( string label, IPointList points ) : base( label, points ) { _stick = new JapaneseCandleStick(); }
/// <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 JapaneseCandleStickItem( string label ) : base( label ) { _stick = new JapaneseCandleStick(); }