コード例 #1
0
ファイル: BarItem.cs プロジェクト: stewmc/vixen
		/// <summary>
		/// 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)
		{
			_bar = new Bar();
		}
コード例 #2
0
ファイル: Bar.cs プロジェクト: InsungChoi/dddd
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The Bar object from which to copy</param>
 public Bar( Bar rhs )
 {
     this.border = (Border) rhs.Border.Clone();
      this.fill = (Fill) rhs.Fill.Clone();
 }
コード例 #3
0
ファイル: BarItem.cs プロジェクト: stewmc/vixen
		/// <summary>
		/// 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 );
			_bar = rhs._bar.Clone();
		}
コード例 #4
0
ファイル: BarItem.cs プロジェクト: stewmc/vixen
		/// <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 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");

			_bar = (Bar) info.GetValue("bar", typeof (Bar));
		}
コード例 #5
0
ファイル: Bar.cs プロジェクト: apravdivy/MagistrSolution
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The Bar object from which to copy</param>
 public Bar(Bar rhs)
 {
     _border = rhs.Border.Clone();
     _fill = rhs.Fill.Clone();
 }
コード例 #6
0
ファイル: BarItem.cs プロジェクト: stewmc/vixen
		/// <summary>
		/// 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="ZedGraph.Bar.Fill"/> and <see cref="ZedGraph.Bar.Border"/> properties.
		/// </param>
		public BarItem(string label, IPointList points, Color color)
			: base(label, points)
		{
			_bar = new Bar(color);
		}
コード例 #7
0
ファイル: Bar.cs プロジェクト: sntree/ZedGraph
 /// <summary>
 /// The Copy Constructor
 /// </summary>
 /// <param name="rhs">The Bar object from which to copy</param>
 public Bar( Bar rhs )
 {
     _border = (Border) rhs.Border.Clone();
     _fill = (Fill) rhs.Fill.Clone();
 }
コード例 #8
0
ファイル: BarItem.cs プロジェクト: RFExplorer/rfexplorer-1
 /// <summary>
 /// Local dispose method
 /// </summary>
 /// <param name="bDisposing">if disposing is required</param>
 override protected void Dispose(bool bDisposing)
 {
     if (!m_bDisposed)
     {
         if (bDisposing)
         {
             if (_bar != null)
             {
                 _bar.Dispose();
                 _bar = null;
             }
         }
         m_bDisposed = true;
         base.Dispose(bDisposing);
     }
 }
コード例 #9
0
 /// <summary>
 /// 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)
 {
     _bar = new Bar();
 }
コード例 #10
0
 /// <summary>
 /// 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 );
     _bar = rhs._bar.Clone();
 }
コード例 #11
0
 /// <summary>
 /// 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="ZedGraph.Bar.Fill"/> and <see cref="ZedGraph.Bar.Border"/> properties.
 /// </param>
 public BarItem(string label, IPointList points, Color color)
     : base(label, points)
 {
     _bar = new Bar(color);
 }
コード例 #12
0
ファイル: BarItem.cs プロジェクト: 15835229565/ZedGraph-3
 /// <summary>
 ///   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, int zOrder = -1) : base(label, zOrder)
 {
     _bar = new Bar();
 }
コード例 #13
0
ファイル: BarItem.cs プロジェクト: 15835229565/ZedGraph-3
 /// <summary>
 ///   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="ZedGraph.Bar.Fill" /> and <see cref="ZedGraph.Bar.Border" /> properties.
 /// </param>
 public BarItem(string label, IPointList points, Color color, int zOrder = -1)
     : base(label, points, zOrder)
 {
     _bar = new Bar(color);
 }