Beispiel #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]);
     }
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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);
 }
Beispiel #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();
 }