コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JapaneseCandleStick"/> class. 
        /// The Copy Constructor
        /// </summary>
        /// <param name="rhs">
        /// The <see cref="JapaneseCandleStick"/> object from which to copy
        /// </param>
        public JapaneseCandleStick(JapaneseCandleStick rhs)
            : base(rhs)
        {
            this._risingFill = rhs._risingFill.Clone();
            this._fallingFill = rhs._fallingFill.Clone();

            this._risingBorder = rhs._risingBorder.Clone();
            this._fallingBorder = rhs._fallingBorder.Clone();

            this._fallingColor = rhs._fallingColor;
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JapaneseCandleStickItem"/> class. 
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">
 /// The <see cref="JapaneseCandleStickItem"/> object from which to copy
 /// </param>
 public JapaneseCandleStickItem(JapaneseCandleStickItem rhs)
     : base(rhs)
 {
     this._stick = rhs._stick.Clone();
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JapaneseCandleStickItem"/> class. 
 /// 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 JapaneseCandleStickItem(string label)
     : base(label)
 {
     this._stick = new JapaneseCandleStick();
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JapaneseCandleStickItem"/> class. 
 /// Create a new <see cref="JapaneseCandleStickItem"/> 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>
 public JapaneseCandleStickItem(string label, IPointList points)
     : base(label, points)
 {
     this._stick = new JapaneseCandleStick();
 }
コード例 #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JapaneseCandleStickItem"/> class. 
        /// 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 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");

            this._stick = (JapaneseCandleStick)info.GetValue("stick", typeof(JapaneseCandleStick));
        }