NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Render.Host.DefaultHostGraphRender Class Reference
Inheritance diagram for Ntp.Analyzer.Render.Host.DefaultHostGraphRender:
Collaboration diagram for Ntp.Analyzer.Render.Host.DefaultHostGraphRender:

Public Member Functions

 DefaultHostGraphRender (Uri webPath, IEnumerable< GraphSetConfiguration > graphs)
 
override string Render ()
 
override string RenderFooter ()
 
override string RenderHead ()
 
- Public Member Functions inherited from Ntp.Analyzer.Render.HtmlObjectRender
void Add (IHtmlObject child)
 

Private Attributes

readonly List< GraphSetConfigurationgraphs
 

Additional Inherited Members

- Public Attributes inherited from Ntp.Analyzer.Render.HtmlObjectRender
IEnumerable< IHtmlObjectChildren => children.ToArray()
 
- Protected Member Functions inherited from Ntp.Analyzer.Render.HtmlObjectRender
 HtmlObjectRender (Uri webPath)
 
- Properties inherited from Ntp.Analyzer.Render.HtmlObjectRender
Uri WebPath [get]
 
- Properties inherited from Ntp.Analyzer.Render.IHtmlObject
IEnumerable< IHtmlObjectChildren [get]
 
Uri WebPath [get]
 

Detailed Description

Definition at line 30 of file DefaultHostGraphRender.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Render.Host.DefaultHostGraphRender.DefaultHostGraphRender ( Uri  webPath,
IEnumerable< GraphSetConfiguration graphs 
)
inline

Definition at line 32 of file DefaultHostGraphRender.cs.

33  : base(webPath)
34  {
35  this.graphs = new List<GraphSetConfiguration>(graphs);
36  }
readonly List< GraphSetConfiguration > graphs

Member Function Documentation

override string Ntp.Analyzer.Render.Host.DefaultHostGraphRender.Render ( )
inline

Implements Ntp.Analyzer.Render.IHtmlObject.

Definition at line 40 of file DefaultHostGraphRender.cs.

41  {
42  var builder = new StringBuilder();
43 
44  foreach (var graphSet in graphs)
45  {
46  foreach (var graph in graphSet.Graphs)
47  {
48  builder.Append(@"<br><img src=""");
49  builder.Append(graph.GetLink(graphSet).ToHtmlString());
50  builder.Append(@""" alt=""");
51  builder.Append(graph.GetAltName(graphSet));
52  builder.AppendLine(@"""><br>");
53  }
54  }
55 
56  return builder.ToString();
57  }
readonly List< GraphSetConfiguration > graphs
override string Ntp.Analyzer.Render.Host.DefaultHostGraphRender.RenderFooter ( )
inlinevirtual

Implements Ntp.Analyzer.Render.HtmlObjectRender.

Definition at line 59 of file DefaultHostGraphRender.cs.

60  {
61  return string.Empty;
62  }
override string Ntp.Analyzer.Render.Host.DefaultHostGraphRender.RenderHead ( )
inlinevirtual

Implements Ntp.Analyzer.Render.HtmlObjectRender.

Definition at line 64 of file DefaultHostGraphRender.cs.

65  {
66  return string.Empty;
67  }

Member Data Documentation

readonly List<GraphSetConfiguration> Ntp.Analyzer.Render.Host.DefaultHostGraphRender.graphs
private

Definition at line 38 of file DefaultHostGraphRender.cs.


The documentation for this class was generated from the following file: