Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Bar"/> class. 
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">
 /// The Bar object from which to copy
 /// </param>
 public Bar(Bar rhs)
 {
     this._border = rhs.Border.Clone();
     this._fill = rhs.Fill.Clone();
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BarItem"/> class. 
 /// Create a new <see cref="BarItem"/> using the specified properties.
 /// </summary>
 /// <param name="label">
 /// The label that will appear in the legend.
 /// </param>
 /// <param name="points">
 /// A <see cref="IPointList"/> of double precision value pairs that define the X and Y values for this curve
 /// </param>
 /// <param name="color">
 /// A <see cref="Color"/> value that will be applied to the <see cref="Graph.Bar.Fill"/> and <see cref="Graph.Bar.Border"/>
 /// properties.
 /// </param>
 public BarItem(string label, IPointList points, Color color)
     : base(label, points)
 {
     this._bar = new Bar(color);
 }
Exemple #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BarItem"/> 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 BarItem(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._bar = (Bar)info.GetValue("bar", typeof(Bar));
        }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BarItem"/> class. 
 /// Create a new <see cref="BarItem"/>, specifying only the legend label for the bar.
 /// </summary>
 /// <param name="label">
 /// The label that will appear in the legend.
 /// </param>
 public BarItem(string label)
     : base(label)
 {
     this._bar = new Bar();
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BarItem"/> class. 
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">
 /// The <see cref="BarItem"/> object from which to copy
 /// </param>
 public BarItem(BarItem rhs)
     : base(rhs)
 {
     // bar = new Bar( rhs.Bar );
     this._bar = rhs._bar.Clone();
 }