23 using System.Drawing.Imaging;
32 namespace Ntp.Analyzer.Config.Node.Graph
48 DateTimeKind? graphTime,
58 this.frequency = frequency;
59 this.initialRun = initialRun;
60 this.fixedRun = fixedRun;
61 this.timespan = timespan;
64 this.graphTime = graphTime;
65 FilterFactor = filterFactor;
68 Gfrequency = gfrequency;
69 Stability = stability;
71 Destinations = destinations;
97 public override string Title {
get; }
105 public override int Timespan => timespan ?? 60*12;
113 public override int Width => width ?? 1024;
121 public override int Height => height ?? 550;
128 public override ImageFormat Format => ImageFormat.Png;
136 public double? FilterFactor {
get; }
144 public double? Jitter {
get; }
152 public double? Offset {
get; }
160 public double? Stability {
get; }
171 public double? Gfrequency {
get; }
179 public override DateTimeKind GraphTime => graphTime ?? DateTimeKind.Utc;
183 public int Frequency => frequency ?? 5;
187 public bool InitialRun => initialRun ??
false;
191 public bool FixedRun => fixedRun ??
true;
202 string name = Links.Destinations[index - 1].Link;
205 int pos = name.LastIndexOf(
'/');
206 name = pos != -1 ? name.Remove(0, pos + 1) : name;
219 return WebPath.Append(Links.Destinations[owner.
LinkIndex - 1].Link);
readonly DateTimeKind graphTime
override string GetTitle(NamedObject namedObject)
override string GetAltName(GraphSetConfiguration owner, string postfix)
Gets the alternative name when referred to from web pages.
override Uri GetLink(GraphSetConfiguration owner, string postfix)
Gets the link to use when referred to from web pages.
HostGraphConfiguration(string name, int?frequency, bool?initialRun, bool?fixedRun, string title, int?width, int?height, int?timespan, DateTimeKind?graphTime, double?filterFactor, double?gfrequency, double?stability, double?jitter, double?offset, DestinationCollection destinations, WebLinkCollection links)
Host graph configuration used when creating Analyzer.Graph.HostGraph.
Base class for graph configurations.