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

Public Member Functions

 DefaultPeerSummaryPageRender (Uri webPath, string name)
 
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 string name
 

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 27 of file DefaultPeerSummaryPageRender.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Render.Summary.DefaultPeerSummaryPageRender.DefaultPeerSummaryPageRender ( Uri  webPath,
string  name 
)
inline

Definition at line 29 of file DefaultPeerSummaryPageRender.cs.

30  : base(webPath)
31  {
32  this.name = name;
33  }

Member Function Documentation

override string Ntp.Analyzer.Render.Summary.DefaultPeerSummaryPageRender.Render ( )
inline

Implements Ntp.Analyzer.Render.IHtmlObject.

Definition at line 37 of file DefaultPeerSummaryPageRender.cs.

38  {
39  return "body";
40  }
override string Ntp.Analyzer.Render.Summary.DefaultPeerSummaryPageRender.RenderFooter ( )
inlinevirtual

Implements Ntp.Analyzer.Render.HtmlObjectRender.

Definition at line 42 of file DefaultPeerSummaryPageRender.cs.

43  {
44  var builder = new StringBuilder();
45 
46  builder.AppendLine("</body>");
47  builder.AppendLine("</html>");
48 
49  return builder.ToString();
50  }
override string Ntp.Analyzer.Render.Summary.DefaultPeerSummaryPageRender.RenderHead ( )
inlinevirtual

Implements Ntp.Analyzer.Render.HtmlObjectRender.

Definition at line 52 of file DefaultPeerSummaryPageRender.cs.

53  {
54  var builder = new StringBuilder();
55 
56  builder.AppendLine("<!DOCTYPE html>");
57  builder.AppendLine("<html><head>");
58  builder.AppendLine(@"<meta charset=""UTF-8"">");
59  builder.AppendLine(@"<style type=""text/css"">");
60  builder.AppendLine("body {font-family: Helvetica; font-size: 14px; line-height:100%; }");
61  builder.AppendLine("h2 { font-family: monospace; display: inline-block; }");
62  builder.AppendLine("h4 { font-family: monospace; display: inline-block; }");
63  builder.AppendLine("a:link { color:#33348e; text-decoration: none; }");
64  builder.AppendLine("a:visited { color:#33348e; text-decoration: none; }");
65  builder.AppendLine("a:hover { color:#33348e; text-decoration: underline;; }");
66  builder.AppendLine("a:active { color:#7476b4; text-decoration: underline; }");
67  builder.AppendLine(
68  "table { border-collapse:collapse; border-spacing: 0px; width: 975px; table-layout: fixed; }");
69  builder.AppendLine(
70  "td { padding: 0px; padding-right: 0px; padding-left: 0px; padding-top: 2px; padding-bottom: 3px; }");
71  builder.AppendLine("col.fst { width: 150px; }");
72  builder.AppendLine("col.sec { width: 275px; }");
73  builder.AppendLine("col.thd { width: 125px; }");
74  builder.AppendLine("col.frt { width: 425px; }");
75  builder.AppendLine("</style>");
76  builder.AppendLine("<title>");
77  builder.AppendLine("Peer graphs - " + name);
78  builder.AppendLine("</title>");
79  builder.AppendLine("</head>");
80 
81  return builder.ToString();
82  }

Member Data Documentation

readonly string Ntp.Analyzer.Render.Summary.DefaultPeerSummaryPageRender.name
private

Definition at line 35 of file DefaultPeerSummaryPageRender.cs.


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