コード例 #1
0
 /// <summary>
 /// Adds the range.
 /// </summary>
 /// <param name="value">The value.</param>
 public void AddRange(XAxisTextCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         Add(value[i]);
     }
 }
コード例 #2
0
ファイル: LineGraph.cs プロジェクト: dayrl/Utility
 /// <summary>
 /// Initializes a new instance of the <see cref="LineGraph"/> class.
 /// </summary>
 /// <param name="width">The width.</param>
 /// <param name="height">The height.</param>
 public LineGraph(int width, int height)
     : base(width, height)
 {
     lineCollection      = new LineCollection();
     xAxisTextCollection = new XAxisTextCollection();
     phaseLines          = new XAxisTextCollection();
     trendLine           = new Line();
     trendLine.Width     = 2.0F;
     MarginForTextOnAxis = 10;
 }
コード例 #3
0
ファイル: LineGraph.cs プロジェクト: dayrl/Utility
 /// <summary>
 /// Initializes a new instance of the <see cref="LineGraph"/> class.
 /// </summary>
 /// <param name="size">The size.</param>
 public LineGraph(Size size)
     : base(size)
 {
     lineCollection      = new LineCollection();
     xAxisTextCollection = new XAxisTextCollection();
     phaseLines          = new XAxisTextCollection();
     trendLine           = new Line();
     trendLine.Width     = 2.0F;
     MarginForTextOnAxis = 10;
 }
コード例 #4
0
ファイル: LineGraph.cs プロジェクト: dayrl/Utility
 /// <summary>
 /// Adds the X axis text.
 /// </summary>
 /// <param name="xValueStart">The x value start.</param>
 /// <param name="xValueEnd">The x value end.</param>
 /// <param name="text">The text.</param>
 public void AddXAxisText(double xValueStart, double xValueEnd, string text)
 {
     XAxisTextCollection.Add(new XAxisText(xValueStart, xValueEnd, text));
 }
コード例 #5
0
ファイル: LineGraph.cs プロジェクト: dayrl/Utility
 /// <summary>
 /// Adds the X axis text.
 /// </summary>
 /// <param name="xValue">The x value.</param>
 /// <param name="text">The text.</param>
 public void AddXAxisText(double xValue, string text)
 {
     XAxisTextCollection.Add(new XAxisText(xValue, text));
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XAxisTextCollection"/> class.
 /// </summary>
 /// <param name="value">The value.</param>
 public XAxisTextCollection(XAxisTextCollection value)
 {
     AddRange(value);
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XAxisTextEnumerator"/> class.
 /// </summary>
 /// <param name="mappings">The mappings.</param>
 public XAxisTextEnumerator(XAxisTextCollection mappings)
 {
     temp           = ((IEnumerable)(mappings));
     baseEnumerator = temp.GetEnumerator();
 }