SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
GraphDefinition.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using System.Xml.Serialization;
5 
6 namespace Seci.Definitions
7 {
11  public class GraphDefinition
12  {
13  private String _title = "";
14  private String _yLabel = "";
15  private String _y2Label = "";
16  private SerialisableList<PlotDefinition> _plots = new SerialisableList<PlotDefinition>();
17  private String _owningComponent;
18  private Double _updateRate = 30.0;
19  private Boolean _showZeroY1 = true;
20  private Boolean _showZeroY2 = true;
21 
22  public String Title { get { return _title; } set { _title = value; } }
23  public String YLabel { get { return _yLabel; } set { _yLabel = value; } }
24  public String Y2Label { get { return _y2Label; } set { _y2Label = value; } }
25  public Double UpdateRate { get { return _updateRate; } set { _updateRate = value; } }
26  public Boolean ShowZeroY1 { get { return _showZeroY1; } set { _showZeroY1 = value; } }
27  public Boolean ShowZeroY2 { get { return _showZeroY2; } set { _showZeroY2 = value; } }
28  public SerialisableList<PlotDefinition> Plots { get { return _plots; } set { _plots = value; } }
29  [XmlIgnore] public String OwningComponent { get { return _owningComponent; } set { _owningComponent = value; } }
30  }
31 
35  public class PlotDefinition
36  {
37  public String BlockName { get; set; }
38  public Boolean UseY2 { get; set; }
39 
44  public PlotDefinition()
45  {
46  BlockName = "";
47  }
48 
54  public PlotDefinition(String blockname, Boolean useY2)
55  {
56  BlockName = blockname;
57  UseY2 = useY2;
58  }
59  }
60 }
Lightweight plot definition class.
This class is used for serializing the graphs for saving in the configuration.
PlotDefinition()
Standard constructor. User for XML serialisation
PlotDefinition(String blockname, Boolean useY2)
The constructor to use in code.
String _owningComponent
The component to which this graph belongs.