Esempio n. 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]);
     }
 }
Esempio n. 2
0
 /// <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;
 }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 4
0
 /// <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));
 }
Esempio n. 5
0
 /// <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));
 }
Esempio n. 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);
 }
Esempio n. 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();
 }