[NF] Neue Graph Engine
[NF] Nun möglich mehrere Sensoren in einem Graph darzustellen
This commit is contained in:
parent
51fe24b235
commit
a6b0c80e5b
@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Dashboard.Connector {
|
namespace Dashboard.Connector {
|
||||||
abstract class AMqtt {
|
abstract class ADataBackend {
|
||||||
|
|
||||||
public abstract event MqttMessage MessageIncomming;
|
public abstract event MqttMessage MessageIncomming;
|
||||||
public abstract event MqttMessage MessageSending;
|
public abstract event MqttMessage MessageSending;
|
||||||
@ -16,14 +16,14 @@ namespace Dashboard.Connector {
|
|||||||
} catch (TypeLoadException) {
|
} catch (TypeLoadException) {
|
||||||
throw new ArgumentException("settings.ini: " + dictionary["type"] + " is not a Connector");
|
throw new ArgumentException("settings.ini: " + dictionary["type"] + " is not a Connector");
|
||||||
}
|
}
|
||||||
Instance = (AMqtt)t.GetConstructor(new Type[] { typeof(Dictionary<String, String>) }).Invoke(new Object[] { dictionary });
|
Instance = (ADataBackend)t.GetConstructor(new Type[] { typeof(Dictionary<String, String>) }).Invoke(new Object[] { dictionary });
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract void Send(String topic, String data);
|
public abstract void Send(String topic, String data);
|
||||||
|
|
||||||
public abstract void Dispose();
|
public abstract void Dispose();
|
||||||
|
|
||||||
public static AMqtt Instance { get; private set; }
|
public static ADataBackend Instance { get; private set; }
|
||||||
}
|
}
|
||||||
public class MqttEventArgs : EventArgs {
|
public class MqttEventArgs : EventArgs {
|
||||||
public MqttEventArgs() : base() { }
|
public MqttEventArgs() : base() { }
|
@ -4,7 +4,7 @@ using System.Diagnostics;
|
|||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace Dashboard.Connector {
|
namespace Dashboard.Connector {
|
||||||
class Mosquitto : AMqtt, IDisposable {
|
class Mosquitto : ADataBackend, IDisposable {
|
||||||
private Process p;
|
private Process p;
|
||||||
private String message;
|
private String message;
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ using uPLibrary.Networking.M2Mqtt;
|
|||||||
using uPLibrary.Networking.M2Mqtt.Messages;
|
using uPLibrary.Networking.M2Mqtt.Messages;
|
||||||
|
|
||||||
namespace Dashboard.Connector {
|
namespace Dashboard.Connector {
|
||||||
class Mqtt : AMqtt, IDisposable {
|
class Mqtt : ADataBackend, IDisposable {
|
||||||
private MqttClient client;
|
private MqttClient client;
|
||||||
|
|
||||||
public override event MqttMessage MessageIncomming;
|
public override event MqttMessage MessageIncomming;
|
||||||
|
@ -25,12 +25,15 @@
|
|||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<StartupObject />
|
||||||
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="LitJson, Version=0.9.0.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="LitJson, Version=0.9.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\LitJson.0.9.0\lib\LitJson.dll</HintPath>
|
<HintPath>..\packages\LitJson.0.9.0\lib\LitJson.dll</HintPath>
|
||||||
@ -38,6 +41,12 @@
|
|||||||
<Reference Include="M2Mqtt.Net, Version=4.3.0.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="M2Mqtt.Net, Version=4.3.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\M2Mqtt.4.3.0.0\lib\net45\M2Mqtt.Net.dll</HintPath>
|
<HintPath>..\packages\M2Mqtt.4.3.0.0\lib\net45\M2Mqtt.Net.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="OxyPlot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=638079a8f0bd61e9, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\OxyPlot.Core.1.0.0\lib\net45\OxyPlot.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="OxyPlot.WindowsForms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=245eacd6b5d2d338, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\OxyPlot.WindowsForms.1.0.0\lib\net45\OxyPlot.WindowsForms.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Windows.Forms.DataVisualization" />
|
<Reference Include="System.Windows.Forms.DataVisualization" />
|
||||||
@ -52,7 +61,7 @@
|
|||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Connector\AMqtt.cs" />
|
<Compile Include="Connector\ADataBackend.cs" />
|
||||||
<Compile Include="Connector\Mosquitto.cs" />
|
<Compile Include="Connector\Mosquitto.cs" />
|
||||||
<Compile Include="Connector\Mqtt.cs" />
|
<Compile Include="Connector\Mqtt.cs" />
|
||||||
<Compile Include="Form1.cs">
|
<Compile Include="Form1.cs">
|
||||||
|
@ -12,7 +12,7 @@ namespace Dashboard {
|
|||||||
|
|
||||||
public Dashboard() {
|
public Dashboard() {
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
AMqtt.SetInstance(InIReader.GetInstance("settings.ini").GetSection("mqtt"));
|
ADataBackend.SetInstance(InIReader.GetInstance("settings.ini").GetSection("mqtt"));
|
||||||
|
|
||||||
this.GenerateSensors();
|
this.GenerateSensors();
|
||||||
this.GenerateForms();
|
this.GenerateForms();
|
||||||
@ -20,8 +20,8 @@ namespace Dashboard {
|
|||||||
this.FormClosed += this.Dashboard_FormClosed;
|
this.FormClosed += this.Dashboard_FormClosed;
|
||||||
this.SizeChanged += this.Dashboard_SizeChanged;
|
this.SizeChanged += this.Dashboard_SizeChanged;
|
||||||
|
|
||||||
AMqtt.Instance.MessageIncomming += this.Instance_MessageIncomming;
|
ADataBackend.Instance.MessageIncomming += this.Instance_MessageIncomming;
|
||||||
AMqtt.Instance.MessageSending += this.Instance_MessageSending;
|
ADataBackend.Instance.MessageSending += this.Instance_MessageSending;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Dashboard_SizeChanged(Object sender, EventArgs e) {
|
private void Dashboard_SizeChanged(Object sender, EventArgs e) {
|
||||||
@ -32,7 +32,7 @@ namespace Dashboard {
|
|||||||
InIReader ini = InIReader.GetInstance("sensor.ini");
|
InIReader ini = InIReader.GetInstance("sensor.ini");
|
||||||
List<String> sensorini = ini.GetSections();
|
List<String> sensorini = ini.GetSections();
|
||||||
foreach(String sensor in sensorini) {
|
foreach(String sensor in sensorini) {
|
||||||
this.sensors.Add(sensor.ToLower().Substring(1, sensor.Length - 2), ASensor.GetInstance(ini.GetValue(sensor, "type").ToLower(), ini.GetSection(sensor)));
|
this.sensors.Add(sensor.ToLower().Substring(1, sensor.Length - 2), ASensor.GetInstance(ini.GetValue(sensor, "type").ToLower(), ini.GetSection(sensor), sensor.Substring(1, sensor.Length - 2)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ namespace Dashboard {
|
|||||||
InIReader ini = InIReader.GetInstance("tracings.ini");
|
InIReader ini = InIReader.GetInstance("tracings.ini");
|
||||||
List<String> tracingini = ini.GetSections();
|
List<String> tracingini = ini.GetSections();
|
||||||
foreach(String tracing in tracingini) {
|
foreach(String tracing in tracingini) {
|
||||||
this.flowLayoutPanel2.Controls.Add(ATracings.GetInstance(ini.GetValue(tracing, "type").ToLower(), this.sensors[ini.GetValue(tracing, "sensor").ToLower()], ini.GetSection(tracing)).GetPanel());
|
this.flowLayoutPanel2.Controls.Add(ATracings.GetInstance(ini.GetValue(tracing, "type").ToLower(), this.sensors, ini.GetSection(tracing)).GetPanel());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,8 +52,8 @@ namespace Dashboard {
|
|||||||
item.Value.Dispose();
|
item.Value.Dispose();
|
||||||
}
|
}
|
||||||
this.sensors.Clear();
|
this.sensors.Clear();
|
||||||
AMqtt.Instance.MessageIncomming -= this.Instance_MessageIncomming;
|
ADataBackend.Instance.MessageIncomming -= this.Instance_MessageIncomming;
|
||||||
AMqtt.Instance.Dispose();
|
ADataBackend.Instance.Dispose();
|
||||||
this.Dispose(true);
|
this.Dispose(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,13 +13,15 @@ namespace Dashboard.Sensor {
|
|||||||
private Thread updateThread;
|
private Thread updateThread;
|
||||||
private Boolean pollEnabled = false;
|
private Boolean pollEnabled = false;
|
||||||
|
|
||||||
public ASensor(Dictionary<String, String> settings) {
|
public ASensor(Dictionary<String, String> settings, String name) {
|
||||||
this.GetBool = true;
|
this.GetBool = true;
|
||||||
this.GetFloat = 0.0f;
|
this.GetFloat = 0.0f;
|
||||||
this.GetInt = 0;
|
this.GetInt = 0;
|
||||||
this.topic = (settings.Keys.Contains("topic")) ? settings["topic"] : "";
|
this.topic = (settings.Keys.Contains("topic")) ? settings["topic"] : "";
|
||||||
this.settings = settings;
|
this.settings = settings;
|
||||||
AMqtt.Instance.MessageIncomming += this.IncommingMqttMessage;
|
this.Title = (settings.Keys.Contains("title")) ? settings["title"] : "";
|
||||||
|
this.Name = name;
|
||||||
|
ADataBackend.Instance.MessageIncomming += this.IncommingMqttMessage;
|
||||||
if (settings.Keys.Contains("polling")) {
|
if (settings.Keys.Contains("polling")) {
|
||||||
this.pollEnabled = true;
|
this.pollEnabled = true;
|
||||||
this.Polling = Int32.Parse(settings["polling"]);
|
this.Polling = Int32.Parse(settings["polling"]);
|
||||||
@ -45,7 +47,7 @@ namespace Dashboard.Sensor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static ASensor GetInstance(String v, Dictionary<String, String> dictionary) {
|
internal static ASensor GetInstance(String v, Dictionary<String, String> dictionary, String name) {
|
||||||
String object_sensor = "Dashboard.Sensor." + Char.ToUpper(v[0]) + v.Substring(1);
|
String object_sensor = "Dashboard.Sensor." + Char.ToUpper(v[0]) + v.Substring(1);
|
||||||
Type t = null;
|
Type t = null;
|
||||||
try {
|
try {
|
||||||
@ -53,18 +55,18 @@ namespace Dashboard.Sensor {
|
|||||||
} catch(TypeLoadException) {
|
} catch(TypeLoadException) {
|
||||||
throw new ArgumentException("sensor.ini: " + v + " is not a Sensor");
|
throw new ArgumentException("sensor.ini: " + v + " is not a Sensor");
|
||||||
}
|
}
|
||||||
return (ASensor)t.GetConstructor(new Type[] { typeof(Dictionary<String, String>) }).Invoke(new Object[] { dictionary });
|
return (ASensor)t.GetConstructor(new Type[] { typeof(Dictionary<String, String>), typeof(String) }).Invoke(new Object[] { dictionary, name });
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void Poll() {
|
protected virtual void Poll() {
|
||||||
if(this.pollcount++ >= this.Polling) {
|
if(this.pollcount++ >= this.Polling) {
|
||||||
this.pollcount = 1;
|
this.pollcount = 1;
|
||||||
AMqtt.Instance.Send(this.topic + "/status","");
|
ADataBackend.Instance.Send(this.topic + "/status","");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal virtual void SetBool(Boolean v) {
|
internal virtual void SetBool(Boolean v) {
|
||||||
AMqtt.Instance.Send(this.topic + "/set", v ? "on" : "off");
|
ADataBackend.Instance.Send(this.topic + "/set", v ? "on" : "off");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract Boolean UpdateValue(MqttEventArgs e);
|
protected abstract Boolean UpdateValue(MqttEventArgs e);
|
||||||
@ -75,12 +77,15 @@ namespace Dashboard.Sensor {
|
|||||||
public Types Datatypes { get; protected set; }
|
public Types Datatypes { get; protected set; }
|
||||||
public DateTime Timestamp { get; protected set; }
|
public DateTime Timestamp { get; protected set; }
|
||||||
public Int32 Polling { get; private set; }
|
public Int32 Polling { get; private set; }
|
||||||
|
public String Title { get; protected set; }
|
||||||
|
public String Name { get; internal set; }
|
||||||
|
|
||||||
public enum Types {
|
public enum Types {
|
||||||
Bool,
|
Bool,
|
||||||
Int,
|
Int,
|
||||||
Float
|
Float
|
||||||
}
|
}
|
||||||
public delegate void UpdatedValue(Object sender, EventArgs e);
|
public delegate void UpdatedValue(ASensor sender, EventArgs e);
|
||||||
public event UpdatedValue Update;
|
public event UpdatedValue Update;
|
||||||
|
|
||||||
#region IDisposable Support
|
#region IDisposable Support
|
||||||
@ -95,7 +100,7 @@ namespace Dashboard.Sensor {
|
|||||||
this.updateThread.Abort();
|
this.updateThread.Abort();
|
||||||
while (this.updateThread.ThreadState != ThreadState.Aborted) { }
|
while (this.updateThread.ThreadState != ThreadState.Aborted) { }
|
||||||
}
|
}
|
||||||
AMqtt.Instance.MessageIncomming -= this.IncommingMqttMessage;
|
ADataBackend.Instance.MessageIncomming -= this.IncommingMqttMessage;
|
||||||
}
|
}
|
||||||
this.settings = null;
|
this.settings = null;
|
||||||
this.updateThread = null;
|
this.updateThread = null;
|
||||||
|
@ -9,7 +9,7 @@ namespace Dashboard.Sensor {
|
|||||||
class Flex4gridswitch : ASensor {
|
class Flex4gridswitch : ASensor {
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
public Flex4gridswitch(Dictionary<String, String> settings) : base(settings) {
|
public Flex4gridswitch(Dictionary<String, String> settings, String name) : base(settings, name) {
|
||||||
this.Datatypes = Types.Bool;
|
this.Datatypes = Types.Bool;
|
||||||
this.id = settings["id"];
|
this.id = settings["id"];
|
||||||
}
|
}
|
||||||
@ -40,13 +40,13 @@ namespace Dashboard.Sensor {
|
|||||||
if (this.pollcount++ >= this.Polling) {
|
if (this.pollcount++ >= this.Polling) {
|
||||||
this.pollcount = 1;
|
this.pollcount = 1;
|
||||||
String hid = Regex.Match(this.topic, "/flex4grid/v1/households/([^/]*)/device/state").Groups[1].Value;
|
String hid = Regex.Match(this.topic, "/flex4grid/v1/households/([^/]*)/device/state").Groups[1].Value;
|
||||||
AMqtt.Instance.Send("/flex4grid/v1/households/" + hid + "/devices/state/request", "{\"timestamp\": \"" + DateTime.Now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'ffffff'Z'") + "\"}");
|
ADataBackend.Instance.Send("/flex4grid/v1/households/" + hid + "/devices/state/request", "{\"timestamp\": \"" + DateTime.Now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'ffffff'Z'") + "\"}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal override void SetBool(Boolean v) {
|
internal override void SetBool(Boolean v) {
|
||||||
String hid = Regex.Match(this.topic, "/flex4grid/v1/households/([^/]*)/device/state").Groups[1].Value;
|
String hid = Regex.Match(this.topic, "/flex4grid/v1/households/([^/]*)/device/state").Groups[1].Value;
|
||||||
AMqtt.Instance.Send("/flex4grid/v1/households/" + hid + "/device/actuate", "{\"command\":\""+(v ? "ON" : "OFF") + "\",\"deviceId\":\""+ this.id + "\",\"timestamp\":\"" + DateTime.Now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'ffffff'Z'") + "\"}");
|
ADataBackend.Instance.Send("/flex4grid/v1/households/" + hid + "/device/actuate", "{\"command\":\""+(v ? "ON" : "OFF") + "\",\"deviceId\":\""+ this.id + "\",\"timestamp\":\"" + DateTime.Now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'ffffff'Z'") + "\"}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -8,7 +8,7 @@ namespace Dashboard.Sensor {
|
|||||||
class Flex4gridpower : ASensor {
|
class Flex4gridpower : ASensor {
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
public Flex4gridpower(Dictionary<String, String> settings) : base(settings) {
|
public Flex4gridpower(Dictionary<String, String> settings, String name) : base(settings, name) {
|
||||||
this.Datatypes = Types.Float;
|
this.Datatypes = Types.Float;
|
||||||
this.id = settings["id"];
|
this.id = settings["id"];
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ using Dashboard.Connector;
|
|||||||
|
|
||||||
namespace Dashboard.Sensor {
|
namespace Dashboard.Sensor {
|
||||||
class Power : ASensor {
|
class Power : ASensor {
|
||||||
public Power(Dictionary<String, String> settings) : base(settings) {
|
public Power(Dictionary<String, String> settings, String name) : base(settings, name) {
|
||||||
this.GetBool = true;
|
this.GetBool = true;
|
||||||
this.GetFloat = 0.0f;
|
this.GetFloat = 0.0f;
|
||||||
this.GetInt = 0;
|
this.GetInt = 0;
|
||||||
|
@ -4,7 +4,7 @@ using Dashboard.Connector;
|
|||||||
|
|
||||||
namespace Dashboard.Sensor {
|
namespace Dashboard.Sensor {
|
||||||
class Switch : ASensor {
|
class Switch : ASensor {
|
||||||
public Switch(Dictionary<System.String, System.String> settings) : base(settings) {
|
public Switch(Dictionary<System.String, System.String> settings, String name) : base(settings, name) {
|
||||||
this.Datatypes = Types.Bool;
|
this.Datatypes = Types.Bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,23 +7,42 @@ namespace Dashboard.Tracings {
|
|||||||
public abstract class ATracings {
|
public abstract class ATracings {
|
||||||
protected ASensor sensor;
|
protected ASensor sensor;
|
||||||
protected Dictionary<String, String> settings;
|
protected Dictionary<String, String> settings;
|
||||||
|
protected Dictionary<String, ASensor> sensors;
|
||||||
|
|
||||||
public ATracings(ASensor sensor, Dictionary<String, String> settings) {
|
public ATracings(ASensor sensor, Dictionary<String, String> settings) {
|
||||||
this.sensor = sensor;
|
this.sensor = sensor;
|
||||||
this.sensor.Update += this.SensorUpdate;
|
this.sensor.Update += this.SensorUpdate;
|
||||||
this.settings = settings;
|
this.settings = settings;
|
||||||
}
|
}
|
||||||
protected abstract void SensorUpdate(Object sender, EventArgs e);
|
public ATracings(Dictionary<String, ASensor> sensors, Dictionary<String, String> settings) {
|
||||||
|
this.sensors = sensors;
|
||||||
|
foreach(KeyValuePair<String, ASensor> sensor in this.sensors) {
|
||||||
|
sensor.Value.Update += this.SensorsUpdate;
|
||||||
|
}
|
||||||
|
this.settings = settings;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected abstract void SensorsUpdate(ASensor sender, EventArgs e);
|
||||||
|
protected abstract void SensorUpdate(ASensor sender, EventArgs e);
|
||||||
public abstract Panel GetPanel();
|
public abstract Panel GetPanel();
|
||||||
internal static ATracings GetInstance(String v, ASensor aSensor, Dictionary<String, String> dictionary) {
|
internal static ATracings GetInstance(String v, Dictionary<String, ASensor> sensorList, Dictionary<String, String> dictionary) {
|
||||||
String object_sensor = "Dashboard.Tracings." + Char.ToUpper(v[0]) + v.Substring(1);
|
String object_sensor = "Dashboard.Tracings." + Char.ToUpper(v[0]) + v.Substring(1);
|
||||||
Type t = null;
|
Type t = null;
|
||||||
try {
|
try {
|
||||||
t = Type.GetType(object_sensor, true);
|
t = Type.GetType(object_sensor, true);
|
||||||
} catch(TypeLoadException) {
|
} catch (TypeLoadException) {
|
||||||
throw new ArgumentException("tracings.ini: " + v + " is not a Tracing");
|
throw new ArgumentException("tracings.ini: " + v + " is not a Tracing");
|
||||||
}
|
}
|
||||||
return (ATracings)t.GetConstructor(new Type[] { typeof(ASensor), typeof(Dictionary<String, String>) }).Invoke(new Object[] { aSensor, dictionary });
|
if (dictionary["sensor"].Contains(",")) {
|
||||||
|
Dictionary<String, ASensor> sensors = new Dictionary<String, ASensor>();
|
||||||
|
String[] sensors_name = dictionary["sensor"].Split(',');
|
||||||
|
foreach (String item in sensors_name) {
|
||||||
|
sensors.Add(item, sensorList[item.ToLower()]);
|
||||||
|
}
|
||||||
|
return (ATracings)t.GetConstructor(new Type[] { typeof(Dictionary<String, ASensor>), typeof(Dictionary<String, String>) }).Invoke(new Object[] { sensors, dictionary });
|
||||||
|
} else {
|
||||||
|
return (ATracings)t.GetConstructor(new Type[] { typeof(ASensor), typeof(Dictionary<String, String>) }).Invoke(new Object[] { sensorList[dictionary["sensor"].ToLower()], dictionary });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,85 +1,156 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Windows.Forms;
|
|
||||||
using System.Windows.Forms.DataVisualization.Charting;
|
|
||||||
using Dashboard.Sensor;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using Dashboard.Sensor;
|
||||||
|
using OxyPlot;
|
||||||
|
using OxyPlot.Axes;
|
||||||
|
using OxyPlot.Series;
|
||||||
|
using OxyPlot.WindowsForms;
|
||||||
|
|
||||||
namespace Dashboard.Tracings {
|
namespace Dashboard.Tracings {
|
||||||
class Graph : ATracings, IDisposable {
|
class Graph : ATracings, IDisposable {
|
||||||
private Series series;
|
|
||||||
private Chart chart;
|
|
||||||
private Queue<Tuple<DateTime, Single>> hist = new Queue<Tuple<DateTime, Single>>();
|
private Queue<Tuple<DateTime, Single>> hist = new Queue<Tuple<DateTime, Single>>();
|
||||||
|
private Dictionary<String, Queue<Tuple<DateTime, Single>>> hists = new Dictionary<String, Queue<Tuple<DateTime, Single>>>();
|
||||||
|
private Dictionary<String, Single> hists_last = new Dictionary<String, Single>();
|
||||||
private Int32 Chart_Items;
|
private Int32 Chart_Items;
|
||||||
|
private PlotView plot = new PlotView { BackColor = System.Drawing.Color.White };
|
||||||
|
private PlotModel Model = new PlotModel();
|
||||||
|
private Boolean multi;
|
||||||
|
private Single MaximumDrawn = 1;
|
||||||
|
|
||||||
|
private String[] colors = { "255,255,0,0","255,230,230,0", "255,0,128,0", "255,0,0,255", "255,255,0,255", "255,255,128,0", "255,0,255,255", "255,158,255,128", "255,0,128,255", "255,0,0,0" };
|
||||||
|
|
||||||
public Graph(ASensor sensor, Dictionary<String, String> settings) : base(sensor, settings) {
|
public Graph(ASensor sensor, Dictionary<String, String> settings) : base(sensor, settings) {
|
||||||
this.Chart_Items = (settings.Keys.Contains("items")) ? Int32.Parse(settings["items"]) : 1000;
|
this.Chart_Items = (settings.Keys.Contains("items")) ? Int32.Parse(settings["items"]) : 1000;
|
||||||
this.chart = new Chart();
|
this.multi = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Graph(Dictionary<String, ASensor> sensors, Dictionary<String, String> settings) : base(sensors, settings) {
|
||||||
|
this.Chart_Items = (settings.Keys.Contains("items")) ? Int32.Parse(settings["items"]) : 1000;
|
||||||
|
this.multi = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Panel GetPanel() {
|
public override Panel GetPanel() {
|
||||||
Panel panel = new Panel();
|
Panel panel = new Panel { BorderStyle = BorderStyle.FixedSingle };
|
||||||
|
|
||||||
ChartArea chartArea = new ChartArea();
|
this.Model.Axes.Add(new DateTimeAxis { Position = AxisPosition.Bottom, AbsoluteMinimum = DateTimeAxis.ToDouble(DateTime.Now), AbsoluteMaximum = DateTimeAxis.ToDouble(DateTime.Now.AddMinutes(1)), IsZoomEnabled = false });
|
||||||
chartArea.AxisX.LabelStyle.Enabled = false;
|
this.Model.Axes.Add(new LinearAxis { Position = AxisPosition.Left, AbsoluteMinimum = 0, Minimum = 0, AbsoluteMaximum = 1, IsZoomEnabled = false });
|
||||||
chartArea.AxisX.LineColor = System.Drawing.Color.Gainsboro;
|
if (this.multi) {
|
||||||
chartArea.AxisX.MajorGrid.LineColor = System.Drawing.Color.Gainsboro;
|
Int32 i = 0;
|
||||||
chartArea.AxisX.MinorGrid.Enabled = true;
|
foreach (KeyValuePair<String, ASensor> item in this.sensors) {
|
||||||
chartArea.AxisX.MinorGrid.LineColor = System.Drawing.Color.Gainsboro;
|
LineSeries l = new LineSeries { Color = OxyColor.Parse(this.colors[i++ % this.colors.Length]), TrackerKey = item.Value.Name };
|
||||||
chartArea.AxisX.MinorGrid.LineDashStyle = ChartDashStyle.Dot;
|
if (item.Value.Title != "") {
|
||||||
|
l.Title = item.Value.Title;
|
||||||
chartArea.AxisY.LineColor = System.Drawing.Color.Gainsboro;
|
}
|
||||||
chartArea.AxisY.MajorGrid.LineColor = System.Drawing.Color.Gainsboro;
|
this.Model.Series.Add(l);
|
||||||
chartArea.AxisY.MinorGrid.Enabled = true;
|
}
|
||||||
chartArea.AxisY.MinorGrid.LineColor = System.Drawing.Color.Gainsboro;
|
} else {
|
||||||
chartArea.AxisY.MinorGrid.LineDashStyle = ChartDashStyle.Dot;
|
LineSeries l = new LineSeries { Color = OxyColor.FromRgb(0, 0, 255) };
|
||||||
this.chart.ChartAreas.Add(chartArea);
|
l.CanTrackerInterpolatePoints = true;
|
||||||
this.series = new Series() {
|
if (this.sensor.Title != "") {
|
||||||
ChartType = SeriesChartType.Line,
|
l.Title = this.sensor.Title;
|
||||||
XValueType = ChartValueType.DateTime,
|
}
|
||||||
Color = System.Drawing.Color.Red
|
this.Model.Series.Add(l);
|
||||||
};
|
|
||||||
if (this.sensor.Datatypes == Sensor.ASensor.Types.Bool) {
|
|
||||||
this.series.YValueType = ChartValueType.Int32;
|
|
||||||
} else if (this.sensor.Datatypes == Sensor.ASensor.Types.Int) {
|
|
||||||
this.series.YValueType = ChartValueType.Int32;
|
|
||||||
} else if (this.sensor.Datatypes == Sensor.ASensor.Types.Float) {
|
|
||||||
this.series.YValueType = ChartValueType.Single;
|
|
||||||
}
|
}
|
||||||
this.chart.Series.Add(this.series);
|
|
||||||
this.chart.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.chart.Size = new System.Drawing.Size(200, 100);
|
|
||||||
panel.Controls.Add(this.chart);
|
|
||||||
|
|
||||||
panel.Size = new System.Drawing.Size(200, 100);
|
Int32 fieldWidth = 200;
|
||||||
|
if(this.multi) {
|
||||||
|
fieldWidth = (this.sensors.Count * 200) + (this.sensors.Count-1)*6;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.plot.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.plot.Size = new System.Drawing.Size(fieldWidth, 200);
|
||||||
|
this.plot.Dock = DockStyle.Fill;
|
||||||
|
this.plot.Model = this.Model;
|
||||||
|
panel.Controls.Add(this.plot);
|
||||||
|
|
||||||
|
panel.Size = new System.Drawing.Size(fieldWidth, 200);
|
||||||
return panel;
|
return panel;
|
||||||
}
|
}
|
||||||
protected override void SensorUpdate(Object sender, EventArgs e) {
|
protected override void SensorUpdate(ASensor sender, EventArgs e) {
|
||||||
switch(this.sensor.Datatypes) {
|
Single v = 0;
|
||||||
case ASensor.Types.Bool: this.hist.Enqueue(new Tuple<DateTime, Single>(this.sensor.Timestamp, (this.sensor.GetBool) ? 1 : 0)); break;
|
switch (sender.Datatypes) {
|
||||||
case ASensor.Types.Int: this.hist.Enqueue(new Tuple<DateTime, Single>(this.sensor.Timestamp, this.sensor.GetInt)); break;
|
case ASensor.Types.Bool: v = sender.GetBool ? 1 : 0; break;
|
||||||
case ASensor.Types.Float: this.hist.Enqueue(new Tuple<DateTime, Single>(this.sensor.Timestamp, this.sensor.GetFloat)); break;
|
case ASensor.Types.Int: v = sender.GetInt; break;
|
||||||
|
case ASensor.Types.Float: v = sender.GetFloat; break;
|
||||||
}
|
}
|
||||||
if(this.hist.Count > this.Chart_Items) {
|
this.hist.Enqueue(new Tuple<DateTime, Single>(sender.Timestamp, v));
|
||||||
|
if (this.MaximumDrawn < v) {
|
||||||
|
this.MaximumDrawn = v;
|
||||||
|
}
|
||||||
|
if (this.hist.Count > this.Chart_Items) {
|
||||||
this.hist.Dequeue();
|
this.hist.Dequeue();
|
||||||
}
|
}
|
||||||
if (this.series != null) {
|
if (this.Model.Series.Count != 0) {
|
||||||
this.chart.BeginInvoke((MethodInvoker)delegate {
|
this.plot.BeginInvoke((MethodInvoker)delegate {
|
||||||
this.series.Points.Clear();
|
this.Model.Axes[1].Maximum = this.MaximumDrawn * 1.1;
|
||||||
|
this.Model.Axes[1].AbsoluteMaximum = this.MaximumDrawn * 1.1;
|
||||||
|
this.Model.Axes[0].AbsoluteMaximum = DateTimeAxis.ToDouble(sender.Timestamp);
|
||||||
|
((LineSeries)this.Model.Series[0]).Points.Clear();
|
||||||
try {
|
try {
|
||||||
foreach(Tuple<DateTime, Single> temp in this.hist) {
|
foreach(Tuple<DateTime, Single> temp in this.hist) {
|
||||||
this.series.Points.AddXY(temp.Item1, temp.Item2);
|
((LineSeries)this.Model.Series[0]).Points.Add(new DataPoint(DateTimeAxis.ToDouble(temp.Item1),temp.Item2));
|
||||||
}
|
}
|
||||||
|
this.Model.InvalidatePlot(true);
|
||||||
} catch(Exception) { };
|
} catch(Exception) { };
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void SensorsUpdate(ASensor sender, EventArgs e) {
|
||||||
|
Single v = 0;
|
||||||
|
if (!this.hists.ContainsKey(sender.Name)) {
|
||||||
|
this.hists.Add(sender.Name, new Queue<Tuple<DateTime, Single>>());
|
||||||
|
this.hists_last.Add(sender.Name, 0);
|
||||||
|
}
|
||||||
|
switch (sender.Datatypes) {
|
||||||
|
case ASensor.Types.Bool:
|
||||||
|
v = sender.GetBool ? 1 : 0;
|
||||||
|
break;
|
||||||
|
case ASensor.Types.Int:
|
||||||
|
v = sender.GetInt;
|
||||||
|
break;
|
||||||
|
case ASensor.Types.Float:
|
||||||
|
v = sender.GetFloat;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
this.hists_last[sender.Name] = v;
|
||||||
|
foreach (KeyValuePair<String, Queue<Tuple<DateTime, Single>>> item in this.hists) {
|
||||||
|
item.Value.Enqueue(new Tuple<DateTime, Single>(sender.Timestamp, this.hists_last[item.Key]));
|
||||||
|
if (this.MaximumDrawn < this.hists_last[item.Key]) {
|
||||||
|
this.MaximumDrawn = this.hists_last[item.Key];
|
||||||
|
}
|
||||||
|
if (item.Value.Count > this.Chart_Items) {
|
||||||
|
item.Value.Dequeue();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foreach (Series item in this.Model.Series) {
|
||||||
|
if (this.hists.ContainsKey(item.TrackerKey)) {
|
||||||
|
this.plot.BeginInvoke((MethodInvoker)delegate {
|
||||||
|
try {
|
||||||
|
this.Model.Axes[1].Maximum = this.MaximumDrawn * 1.1;
|
||||||
|
this.Model.Axes[1].AbsoluteMaximum = this.MaximumDrawn * 1.1;
|
||||||
|
this.Model.Axes[0].AbsoluteMaximum = DateTimeAxis.ToDouble(sender.Timestamp);
|
||||||
|
((LineSeries)item).Points.Clear();
|
||||||
|
foreach (Tuple<DateTime, Single> temp in this.hists[item.TrackerKey]) {
|
||||||
|
((LineSeries)item).Points.Add(new DataPoint(DateTimeAxis.ToDouble(temp.Item1), temp.Item2));
|
||||||
|
}
|
||||||
|
this.Model.InvalidatePlot(true);
|
||||||
|
} catch (Exception) { };
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void Dispose() {
|
public void Dispose() {
|
||||||
this.chart.Series.Clear();
|
((LineSeries)this.Model.Series[0]).Points.Clear();
|
||||||
this.series = null;
|
this.Model = null;
|
||||||
this.hist.Clear();
|
this.hist.Clear();
|
||||||
this.hist = null;
|
this.hist = null;
|
||||||
this.chart.Dispose();
|
this.plot.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,12 +44,17 @@ namespace Dashboard.Tracings {
|
|||||||
|
|
||||||
return panel;
|
return panel;
|
||||||
}
|
}
|
||||||
protected override void SensorUpdate(Object sender, EventArgs e) {
|
|
||||||
|
protected override void SensorsUpdate(ASensor sender, EventArgs e) {
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void SensorUpdate(ASensor sender, EventArgs e) {
|
||||||
String value = "";
|
String value = "";
|
||||||
switch(this.sensor.Datatypes) {
|
switch(sender.Datatypes) {
|
||||||
case ASensor.Types.Bool: this.DisplayAverage.Enqueue((this.sensor.GetBool) ? 1 : 0); value = this.sensor.GetBool.ToString(new CultureInfo("de-DE")); break;
|
case ASensor.Types.Bool: this.DisplayAverage.Enqueue((sender.GetBool) ? 1 : 0); value = sender.GetBool.ToString(new CultureInfo("de-DE")); break;
|
||||||
case ASensor.Types.Int: this.DisplayAverage.Enqueue(this.sensor.GetInt); value = this.sensor.GetInt.ToString(); break;
|
case ASensor.Types.Int: this.DisplayAverage.Enqueue(sender.GetInt); value = sender.GetInt.ToString(); break;
|
||||||
case ASensor.Types.Float: this.DisplayAverage.Enqueue(this.sensor.GetFloat); value = this.sensor.GetFloat.ToString(new CultureInfo("de-DE")); break;
|
case ASensor.Types.Float: this.DisplayAverage.Enqueue(sender.GetFloat); value = sender.GetFloat.ToString(new CultureInfo("de-DE")); break;
|
||||||
}
|
}
|
||||||
if(this.DisplayAverage.Count > this.DisplayItems) {
|
if(this.DisplayAverage.Count > this.DisplayItems) {
|
||||||
this.DisplayAverage.Dequeue();
|
this.DisplayAverage.Dequeue();
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using Dashboard.Sensor;
|
using Dashboard.Sensor;
|
||||||
|
|
||||||
@ -11,20 +9,20 @@ namespace Dashboard.Tracings {
|
|||||||
class Powermeter : Meter {
|
class Powermeter : Meter {
|
||||||
public Powermeter(ASensor sensor, Dictionary<String, String> settings) : base(sensor, settings) {
|
public Powermeter(ASensor sensor, Dictionary<String, String> settings) : base(sensor, settings) {
|
||||||
}
|
}
|
||||||
protected override void SensorUpdate(Object sender, EventArgs e) {
|
protected override void SensorUpdate(ASensor sender, EventArgs e) {
|
||||||
String value = "";
|
String value = "";
|
||||||
switch (this.sensor.Datatypes) {
|
switch (sender.Datatypes) {
|
||||||
case ASensor.Types.Bool:
|
case ASensor.Types.Bool:
|
||||||
this.DisplayAverage.Enqueue((this.sensor.GetBool) ? 1 : 0);
|
this.DisplayAverage.Enqueue((sender.GetBool) ? 1 : 0);
|
||||||
value = this.sensor.GetBool.ToString(new CultureInfo("de-DE"));
|
value = sender.GetBool.ToString(new CultureInfo("de-DE"));
|
||||||
break;
|
break;
|
||||||
case ASensor.Types.Int:
|
case ASensor.Types.Int:
|
||||||
this.DisplayAverage.Enqueue(this.sensor.GetInt);
|
this.DisplayAverage.Enqueue(sender.GetInt);
|
||||||
value = this.sensor.GetInt.ToString();
|
value = sender.GetInt.ToString();
|
||||||
break;
|
break;
|
||||||
case ASensor.Types.Float:
|
case ASensor.Types.Float:
|
||||||
this.DisplayAverage.Enqueue(this.sensor.GetFloat);
|
this.DisplayAverage.Enqueue(sender.GetFloat);
|
||||||
value = this.sensor.GetFloat.ToString(new CultureInfo("de-DE"));
|
value = sender.GetFloat.ToString(new CultureInfo("de-DE"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (this.DisplayAverage.Count > this.DisplayItems) {
|
if (this.DisplayAverage.Count > this.DisplayItems) {
|
||||||
|
@ -65,16 +65,20 @@ namespace Dashboard.Tracings {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void SensorUpdate(Object sender, EventArgs e) {
|
protected override void SensorUpdate(ASensor sender, EventArgs e) {
|
||||||
this.label.BeginInvoke((MethodInvoker)delegate {
|
this.label.BeginInvoke((MethodInvoker)delegate {
|
||||||
this.label.Text = this.sensor.GetBool?"Eingeschaltet":"Ausgeschaltet";
|
this.label.Text = sender.GetBool?"Eingeschaltet":"Ausgeschaltet";
|
||||||
});
|
});
|
||||||
this.button1.BeginInvoke((MethodInvoker)delegate {
|
this.button1.BeginInvoke((MethodInvoker)delegate {
|
||||||
this.button1.Enabled = !this.sensor.GetBool;
|
this.button1.Enabled = !sender.GetBool;
|
||||||
});
|
});
|
||||||
this.button2.BeginInvoke((MethodInvoker)delegate {
|
this.button2.BeginInvoke((MethodInvoker)delegate {
|
||||||
this.button2.Enabled = this.sensor.GetBool;
|
this.button2.Enabled = sender.GetBool;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void SensorsUpdate(ASensor sender, EventArgs e) {
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Binary file not shown.
BIN
Mqtt-Dashboard/bin/Release/OxyPlot.WindowsForms.dll
Normal file
BIN
Mqtt-Dashboard/bin/Release/OxyPlot.WindowsForms.dll
Normal file
Binary file not shown.
690
Mqtt-Dashboard/bin/Release/OxyPlot.WindowsForms.xml
Normal file
690
Mqtt-Dashboard/bin/Release/OxyPlot.WindowsForms.xml
Normal file
@ -0,0 +1,690 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<doc>
|
||||||
|
<assembly>
|
||||||
|
<name>OxyPlot.WindowsForms</name>
|
||||||
|
</assembly>
|
||||||
|
<members>
|
||||||
|
<member name="T:OxyPlot.WindowsForms.ExporterExtensions">
|
||||||
|
<summary>
|
||||||
|
Provides extension methods for exporters.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ExporterExtensions.ExportToFile(OxyPlot.IExporter,OxyPlot.IPlotModel,System.String)">
|
||||||
|
<summary>
|
||||||
|
Exports the specified <see cref="T:OxyPlot.PlotModel" /> to a file.
|
||||||
|
</summary>
|
||||||
|
<param name="exporter">The exporter.</param>
|
||||||
|
<param name="model">The model to export.</param>
|
||||||
|
<param name="path">The path to the file.</param>
|
||||||
|
</member>
|
||||||
|
<member name="T:OxyPlot.WindowsForms.PlotView">
|
||||||
|
<summary>
|
||||||
|
Represents a control that displays a <see cref="T:OxyPlot.PlotModel" />.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.PlotView.OxyPlotCategory">
|
||||||
|
<summary>
|
||||||
|
The category for the properties of this control.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.PlotView.invalidateLock">
|
||||||
|
<summary>
|
||||||
|
The invalidate lock.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.PlotView.modelLock">
|
||||||
|
<summary>
|
||||||
|
The model lock.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.PlotView.renderingLock">
|
||||||
|
<summary>
|
||||||
|
The rendering lock.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.PlotView.renderContext">
|
||||||
|
<summary>
|
||||||
|
The render context.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.PlotView.trackerLabel">
|
||||||
|
<summary>
|
||||||
|
The tracker label.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.PlotView.currentModel">
|
||||||
|
<summary>
|
||||||
|
The current model (holding a reference to this plot view).
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.PlotView.isModelInvalidated">
|
||||||
|
<summary>
|
||||||
|
The is model invalidated.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.PlotView.model">
|
||||||
|
<summary>
|
||||||
|
The model.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.PlotView.defaultController">
|
||||||
|
<summary>
|
||||||
|
The default controller.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.PlotView.updateDataFlag">
|
||||||
|
<summary>
|
||||||
|
The update data flag.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.PlotView.zoomRectangle">
|
||||||
|
<summary>
|
||||||
|
The zoom rectangle.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.#ctor">
|
||||||
|
<summary>
|
||||||
|
Initializes a new instance of the <see cref="T:OxyPlot.WindowsForms.PlotView" /> class.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PlotView.OxyPlot#IView#ActualModel">
|
||||||
|
<summary>
|
||||||
|
Gets the actual model in the view.
|
||||||
|
</summary>
|
||||||
|
<value>
|
||||||
|
The actual model.
|
||||||
|
</value>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PlotView.ActualModel">
|
||||||
|
<summary>
|
||||||
|
Gets the actual model.
|
||||||
|
</summary>
|
||||||
|
<value>The actual model.</value>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PlotView.OxyPlot#IView#ActualController">
|
||||||
|
<summary>
|
||||||
|
Gets the actual controller.
|
||||||
|
</summary>
|
||||||
|
<value>
|
||||||
|
The actual <see cref="T:OxyPlot.IController" />.
|
||||||
|
</value>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PlotView.ClientArea">
|
||||||
|
<summary>
|
||||||
|
Gets the coordinates of the client area of the view.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PlotView.ActualController">
|
||||||
|
<summary>
|
||||||
|
Gets the actual plot controller.
|
||||||
|
</summary>
|
||||||
|
<value>The actual plot controller.</value>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PlotView.Model">
|
||||||
|
<summary>
|
||||||
|
Gets or sets the model.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PlotView.Controller">
|
||||||
|
<summary>
|
||||||
|
Gets or sets the plot controller.
|
||||||
|
</summary>
|
||||||
|
<value>The controller.</value>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PlotView.PanCursor">
|
||||||
|
<summary>
|
||||||
|
Gets or sets the pan cursor.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PlotView.ZoomHorizontalCursor">
|
||||||
|
<summary>
|
||||||
|
Gets or sets the horizontal zoom cursor.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PlotView.ZoomRectangleCursor">
|
||||||
|
<summary>
|
||||||
|
Gets or sets the rectangle zoom cursor.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PlotView.ZoomVerticalCursor">
|
||||||
|
<summary>
|
||||||
|
Gets or sets the vertical zoom cursor.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.HideTracker">
|
||||||
|
<summary>
|
||||||
|
Hides the tracker.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.HideZoomRectangle">
|
||||||
|
<summary>
|
||||||
|
Hides the zoom rectangle.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.InvalidatePlot(System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Invalidates the plot (not blocking the UI thread)
|
||||||
|
</summary>
|
||||||
|
<param name="updateData">if set to <c>true</c>, all data collections will be updated.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.OnModelChanged">
|
||||||
|
<summary>
|
||||||
|
Called when the Model property has been changed.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.SetCursorType(OxyPlot.CursorType)">
|
||||||
|
<summary>
|
||||||
|
Sets the cursor type.
|
||||||
|
</summary>
|
||||||
|
<param name="cursorType">The cursor type.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.ShowTracker(OxyPlot.TrackerHitResult)">
|
||||||
|
<summary>
|
||||||
|
Shows the tracker.
|
||||||
|
</summary>
|
||||||
|
<param name="data">The data.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.ShowZoomRectangle(OxyPlot.OxyRect)">
|
||||||
|
<summary>
|
||||||
|
Shows the zoom rectangle.
|
||||||
|
</summary>
|
||||||
|
<param name="rectangle">The rectangle.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.SetClipboardText(System.String)">
|
||||||
|
<summary>
|
||||||
|
Sets the clipboard text.
|
||||||
|
</summary>
|
||||||
|
<param name="text">The text.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.OnMouseDown(System.Windows.Forms.MouseEventArgs)">
|
||||||
|
<summary>
|
||||||
|
Raises the <see cref="E:System.Windows.Forms.Control.MouseDown" /> event.
|
||||||
|
</summary>
|
||||||
|
<param name="e">A <see cref="T:System.Windows.Forms.MouseEventArgs" /> that contains the event data.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.OnMouseMove(System.Windows.Forms.MouseEventArgs)">
|
||||||
|
<summary>
|
||||||
|
Raises the <see cref="E:System.Windows.Forms.Control.MouseMove" /> event.
|
||||||
|
</summary>
|
||||||
|
<param name="e">A <see cref="T:System.Windows.Forms.MouseEventArgs" /> that contains the event data.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.OnMouseUp(System.Windows.Forms.MouseEventArgs)">
|
||||||
|
<summary>
|
||||||
|
Raises the <see cref="E:System.Windows.Forms.Control.MouseUp" /> event.
|
||||||
|
</summary>
|
||||||
|
<param name="e">A <see cref="T:System.Windows.Forms.MouseEventArgs" /> that contains the event data.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.OnMouseEnter(System.EventArgs)">
|
||||||
|
<summary>
|
||||||
|
Raises the <see cref="E:System.Windows.Forms.Control.MouseEnter" /> event.
|
||||||
|
</summary>
|
||||||
|
<param name="e">An <see cref="T:System.EventArgs" /> that contains the event data.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.OnMouseLeave(System.EventArgs)">
|
||||||
|
<summary>
|
||||||
|
Raises the <see cref="E:System.Windows.Forms.Control.MouseLeave" /> event.
|
||||||
|
</summary>
|
||||||
|
<param name="e">An <see cref="T:System.EventArgs" /> that contains the event data.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.OnMouseWheel(System.Windows.Forms.MouseEventArgs)">
|
||||||
|
<summary>
|
||||||
|
Raises the <see cref="E:System.Windows.Forms.Control.MouseWheel" /> event.
|
||||||
|
</summary>
|
||||||
|
<param name="e">A <see cref="T:System.Windows.Forms.MouseEventArgs" /> that contains the event data.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.OnPaint(System.Windows.Forms.PaintEventArgs)">
|
||||||
|
<summary>
|
||||||
|
Raises the <see cref="E:System.Windows.Forms.Control.Paint" /> event.
|
||||||
|
</summary>
|
||||||
|
<param name="e">A <see cref="T:System.Windows.Forms.PaintEventArgs" /> that contains the event data.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.OnPreviewKeyDown(System.Windows.Forms.PreviewKeyDownEventArgs)">
|
||||||
|
<summary>
|
||||||
|
Raises the <see cref="E:System.Windows.Forms.Control.PreviewKeyDown" /> event.
|
||||||
|
</summary>
|
||||||
|
<param name="e">A <see cref="T:System.Windows.Forms.PreviewKeyDownEventArgs" /> that contains the event data.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.OnResize(System.EventArgs)">
|
||||||
|
<summary>
|
||||||
|
Raises the <see cref="E:System.Windows.Forms.Control.Resize" /> event.
|
||||||
|
</summary>
|
||||||
|
<param name="e">An <see cref="T:System.EventArgs" /> that contains the event data.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotView.GetModifiers">
|
||||||
|
<summary>
|
||||||
|
Gets the current modifier keys.
|
||||||
|
</summary>
|
||||||
|
<returns>A <see cref="T:OxyPlot.OxyModifierKeys" /> value.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="T:OxyPlot.WindowsForms.ConverterExtensions">
|
||||||
|
<summary>
|
||||||
|
Extension method used to convert to/from Windows/Windows.Media classes.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.DistanceTo(System.Drawing.Point,System.Drawing.Point)">
|
||||||
|
<summary>
|
||||||
|
Calculate the distance between two points.
|
||||||
|
</summary>
|
||||||
|
<param name="p1">The first point.</param>
|
||||||
|
<param name="p2">The second point.</param>
|
||||||
|
<returns>The distance.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.ToBrush(OxyPlot.OxyColor)">
|
||||||
|
<summary>
|
||||||
|
Converts a color to a Brush.
|
||||||
|
</summary>
|
||||||
|
<param name="c">The color.</param>
|
||||||
|
<returns>A SolidColorBrush.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.ToColor(OxyPlot.OxyColor)">
|
||||||
|
<summary>
|
||||||
|
Converts an OxyColor to a Color.
|
||||||
|
</summary>
|
||||||
|
<param name="c">The color.</param>
|
||||||
|
<returns>A Color.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.ToHorizontalTextAlign(System.Windows.Forms.HorizontalAlignment)">
|
||||||
|
<summary>
|
||||||
|
Converts a HorizontalAlignment to a HorizontalTextAlign.
|
||||||
|
</summary>
|
||||||
|
<param name="alignment">The alignment.</param>
|
||||||
|
<returns>A HorizontalTextAlign.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.ToOxyColor(System.Drawing.Color)">
|
||||||
|
<summary>
|
||||||
|
Converts a <see cref="T:System.Drawing.Color" /> to an <see cref="T:OxyPlot.OxyColor" />.
|
||||||
|
</summary>
|
||||||
|
<param name="color">The color to convert.</param>
|
||||||
|
<returns>An <see cref="T:OxyPlot.OxyColor" />.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.ToOxyColor(System.Drawing.Brush)">
|
||||||
|
<summary>
|
||||||
|
Converts a <see cref="T:System.Drawing.Brush" /> to an <see cref="T:OxyPlot.OxyColor" />.
|
||||||
|
</summary>
|
||||||
|
<param name="brush">The brush to convert.</param>
|
||||||
|
<returns>An <see cref="T:OxyPlot.OxyColor" />.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.ToPoint(OxyPlot.ScreenPoint,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Converts a Thickness to an OxyThickness.
|
||||||
|
</summary>
|
||||||
|
<param name="pt">The screen point.</param>
|
||||||
|
<param name="aliased">use pixel alignment conversion if set to <c>true</c>.</param>
|
||||||
|
<returns>An OxyPlot thickness.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.ToRect(OxyPlot.OxyRect,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Converts an <see cref="T:OxyPlot.OxyRect" /> to a <see cref="T:System.Drawing.Rectangle" />.
|
||||||
|
</summary>
|
||||||
|
<param name="r">The rectangle.</param>
|
||||||
|
<param name="aliased">use pixel alignment if set to <c>true</c>.</param>
|
||||||
|
<returns>A <see cref="T:System.Drawing.Rectangle" />.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.ToScreenPoint(System.Drawing.Point)">
|
||||||
|
<summary>
|
||||||
|
Converts a point to a ScreenPoint.
|
||||||
|
</summary>
|
||||||
|
<param name="pt">The point.</param>
|
||||||
|
<returns>A screen point.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.ToScreenPointArray(System.Drawing.Point[])">
|
||||||
|
<summary>
|
||||||
|
Converts a Point array to a ScreenPoint array.
|
||||||
|
</summary>
|
||||||
|
<param name="points">The points.</param>
|
||||||
|
<returns>A ScreenPoint array.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.Convert(System.Windows.Forms.MouseButtons)">
|
||||||
|
<summary>
|
||||||
|
Converts a <see cref="T:System.Windows.Forms.MouseButtons" /> to a <see cref="T:OxyPlot.OxyMouseButton" />.
|
||||||
|
</summary>
|
||||||
|
<param name="button">The button to convert.</param>
|
||||||
|
<returns>The converted mouse button.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.ToMouseWheelEventArgs(System.Windows.Forms.MouseEventArgs,OxyPlot.OxyModifierKeys)">
|
||||||
|
<summary>
|
||||||
|
Converts <see cref="T:System.Windows.Forms.MouseEventArgs" /> to <see cref="T:OxyPlot.OxyMouseWheelEventArgs" /> for a mouse wheel event.
|
||||||
|
</summary>
|
||||||
|
<param name="e">The <see cref="T:System.Windows.Forms.MouseEventArgs" /> instance containing the event data.</param>
|
||||||
|
<param name="modifiers">The modifiers.</param>
|
||||||
|
<returns>A <see cref="T:OxyPlot.OxyMouseWheelEventArgs" /> containing the converted event arguments.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.ToMouseDownEventArgs(System.Windows.Forms.MouseEventArgs,OxyPlot.OxyModifierKeys)">
|
||||||
|
<summary>
|
||||||
|
Converts <see cref="T:System.Windows.Forms.MouseEventArgs" /> to <see cref="T:OxyPlot.OxyMouseEventArgs" /> for a mouse down event.
|
||||||
|
</summary>
|
||||||
|
<param name="e">The <see cref="T:System.Windows.Forms.MouseEventArgs" /> instance containing the event data.</param>
|
||||||
|
<param name="modifiers">The modifiers.</param>
|
||||||
|
<returns>A <see cref="T:OxyPlot.OxyMouseDownEventArgs" /> containing the converted event arguments.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.ToMouseUpEventArgs(System.Windows.Forms.MouseEventArgs,OxyPlot.OxyModifierKeys)">
|
||||||
|
<summary>
|
||||||
|
Converts <see cref="T:System.Windows.Forms.MouseEventArgs" /> to <see cref="T:OxyPlot.OxyMouseEventArgs" /> for a mouse up event.
|
||||||
|
</summary>
|
||||||
|
<param name="e">The <see cref="T:System.Windows.Forms.MouseEventArgs" /> instance containing the event data.</param>
|
||||||
|
<param name="modifiers">The modifiers.</param>
|
||||||
|
<returns>A <see cref="T:OxyPlot.OxyMouseEventArgs" /> containing the converted event arguments.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.ToMouseEventArgs(System.Windows.Forms.MouseEventArgs,OxyPlot.OxyModifierKeys)">
|
||||||
|
<summary>
|
||||||
|
Converts <see cref="T:System.Windows.Forms.MouseEventArgs" /> to <see cref="T:OxyPlot.OxyMouseEventArgs" /> for a mouse event.
|
||||||
|
</summary>
|
||||||
|
<param name="e">The <see cref="T:System.Windows.Forms.MouseEventArgs" /> instance containing the event data.</param>
|
||||||
|
<param name="modifiers">The modifiers.</param>
|
||||||
|
<returns>A <see cref="T:OxyPlot.OxyMouseEventArgs" /> containing the converted event arguments.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.ToMouseEventArgs(System.EventArgs,OxyPlot.OxyModifierKeys)">
|
||||||
|
<summary>
|
||||||
|
Converts <see cref="T:System.Windows.Forms.MouseEventArgs" /> to <see cref="T:OxyPlot.OxyMouseEventArgs" /> for a mouse event.
|
||||||
|
</summary>
|
||||||
|
<param name="e">The <see cref="T:System.Windows.Forms.MouseEventArgs" /> instance containing the event data.</param>
|
||||||
|
<param name="modifiers">The modifiers.</param>
|
||||||
|
<returns>A <see cref="T:OxyPlot.OxyMouseEventArgs" /> containing the converted event arguments.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.ConverterExtensions.Convert(System.Windows.Forms.Keys)">
|
||||||
|
<summary>
|
||||||
|
Converts the specified key.
|
||||||
|
</summary>
|
||||||
|
<param name="k">The key to convert.</param>
|
||||||
|
<returns>The converted key.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="T:OxyPlot.WindowsForms.GraphicsRenderContext">
|
||||||
|
<summary>
|
||||||
|
The graphics render context.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.GraphicsRenderContext.FontsizeFactor">
|
||||||
|
<summary>
|
||||||
|
The font size factor.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.GraphicsRenderContext.imagesInUse">
|
||||||
|
<summary>
|
||||||
|
The images in use
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.GraphicsRenderContext.imageCache">
|
||||||
|
<summary>
|
||||||
|
The image cache
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.GraphicsRenderContext.brushes">
|
||||||
|
<summary>
|
||||||
|
The brush cache.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.GraphicsRenderContext.stringFormat">
|
||||||
|
<summary>
|
||||||
|
The string format.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.GraphicsRenderContext.g">
|
||||||
|
<summary>
|
||||||
|
The GDI+ drawing surface.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.#ctor(System.Drawing.Graphics)">
|
||||||
|
<summary>
|
||||||
|
Initializes a new instance of the <see cref="T:OxyPlot.WindowsForms.GraphicsRenderContext" /> class.
|
||||||
|
</summary>
|
||||||
|
<param name="graphics">The drawing surface.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.SetGraphicsTarget(System.Drawing.Graphics)">
|
||||||
|
<summary>
|
||||||
|
Sets the graphics target.
|
||||||
|
</summary>
|
||||||
|
<param name="graphics">The graphics surface.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.DrawEllipse(OxyPlot.OxyRect,OxyPlot.OxyColor,OxyPlot.OxyColor,System.Double)">
|
||||||
|
<summary>
|
||||||
|
Draws an ellipse.
|
||||||
|
</summary>
|
||||||
|
<param name="rect">The rectangle.</param>
|
||||||
|
<param name="fill">The fill color.</param>
|
||||||
|
<param name="stroke">The stroke color.</param>
|
||||||
|
<param name="thickness">The thickness.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.DrawLine(System.Collections.Generic.IList{OxyPlot.ScreenPoint},OxyPlot.OxyColor,System.Double,System.Double[],OxyPlot.LineJoin,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Draws the polyline from the specified points.
|
||||||
|
</summary>
|
||||||
|
<param name="points">The points.</param>
|
||||||
|
<param name="stroke">The stroke color.</param>
|
||||||
|
<param name="thickness">The stroke thickness.</param>
|
||||||
|
<param name="dashArray">The dash array.</param>
|
||||||
|
<param name="lineJoin">The line join type.</param>
|
||||||
|
<param name="aliased">if set to <c>true</c> the shape will be aliased.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.DrawPolygon(System.Collections.Generic.IList{OxyPlot.ScreenPoint},OxyPlot.OxyColor,OxyPlot.OxyColor,System.Double,System.Double[],OxyPlot.LineJoin,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Draws the polygon from the specified points. The polygon can have stroke and/or fill.
|
||||||
|
</summary>
|
||||||
|
<param name="points">The points.</param>
|
||||||
|
<param name="fill">The fill color.</param>
|
||||||
|
<param name="stroke">The stroke color.</param>
|
||||||
|
<param name="thickness">The stroke thickness.</param>
|
||||||
|
<param name="dashArray">The dash array.</param>
|
||||||
|
<param name="lineJoin">The line join type.</param>
|
||||||
|
<param name="aliased">if set to <c>true</c> the shape will be aliased.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.DrawRectangle(OxyPlot.OxyRect,OxyPlot.OxyColor,OxyPlot.OxyColor,System.Double)">
|
||||||
|
<summary>
|
||||||
|
Draws the rectangle.
|
||||||
|
</summary>
|
||||||
|
<param name="rect">The rectangle.</param>
|
||||||
|
<param name="fill">The fill color.</param>
|
||||||
|
<param name="stroke">The stroke color.</param>
|
||||||
|
<param name="thickness">The stroke thickness.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.DrawText(OxyPlot.ScreenPoint,System.String,OxyPlot.OxyColor,System.String,System.Double,System.Double,System.Double,OxyPlot.HorizontalAlignment,OxyPlot.VerticalAlignment,System.Nullable{OxyPlot.OxySize})">
|
||||||
|
<summary>
|
||||||
|
Draws the text.
|
||||||
|
</summary>
|
||||||
|
<param name="p">The p.</param>
|
||||||
|
<param name="text">The text.</param>
|
||||||
|
<param name="fill">The fill color.</param>
|
||||||
|
<param name="fontFamily">The font family.</param>
|
||||||
|
<param name="fontSize">Size of the font.</param>
|
||||||
|
<param name="fontWeight">The font weight.</param>
|
||||||
|
<param name="rotate">The rotation angle.</param>
|
||||||
|
<param name="halign">The horizontal alignment.</param>
|
||||||
|
<param name="valign">The vertical alignment.</param>
|
||||||
|
<param name="maxSize">The maximum size of the text.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.MeasureText(System.String,System.String,System.Double,System.Double)">
|
||||||
|
<summary>
|
||||||
|
Measures the text.
|
||||||
|
</summary>
|
||||||
|
<param name="text">The text.</param>
|
||||||
|
<param name="fontFamily">The font family.</param>
|
||||||
|
<param name="fontSize">Size of the font.</param>
|
||||||
|
<param name="fontWeight">The font weight.</param>
|
||||||
|
<returns>The text size.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.CleanUp">
|
||||||
|
<summary>
|
||||||
|
Cleans up resources not in use.
|
||||||
|
</summary>
|
||||||
|
<remarks>This method is called at the end of each rendering.</remarks>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.DrawImage(OxyPlot.OxyImage,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Draws the image.
|
||||||
|
</summary>
|
||||||
|
<param name="source">The source.</param>
|
||||||
|
<param name="srcX">The source executable.</param>
|
||||||
|
<param name="srcY">The source asynchronous.</param>
|
||||||
|
<param name="srcWidth">Width of the source.</param>
|
||||||
|
<param name="srcHeight">Height of the source.</param>
|
||||||
|
<param name="x">The executable.</param>
|
||||||
|
<param name="y">The asynchronous.</param>
|
||||||
|
<param name="w">The forward.</param>
|
||||||
|
<param name="h">The authentication.</param>
|
||||||
|
<param name="opacity">The opacity.</param>
|
||||||
|
<param name="interpolate">if set to <c>true</c> [interpolate].</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.SetClip(OxyPlot.OxyRect)">
|
||||||
|
<summary>
|
||||||
|
Sets the clip rectangle.
|
||||||
|
</summary>
|
||||||
|
<param name="rect">The clip rectangle.</param>
|
||||||
|
<returns>True if the clip rectangle was set.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.ResetClip">
|
||||||
|
<summary>
|
||||||
|
Resets the clip rectangle.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.Dispose">
|
||||||
|
<summary>
|
||||||
|
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.CreateFont(System.String,System.Double,System.Drawing.FontStyle)">
|
||||||
|
<summary>
|
||||||
|
Creates a font.
|
||||||
|
</summary>
|
||||||
|
<param name="fontFamily">The font family.</param>
|
||||||
|
<param name="fontSize">Size of the font.</param>
|
||||||
|
<param name="fontStyle">The font style.</param>
|
||||||
|
<returns>A font</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.GetImage(OxyPlot.OxyImage)">
|
||||||
|
<summary>
|
||||||
|
Loads the image from the specified source.
|
||||||
|
</summary>
|
||||||
|
<param name="source">The image source.</param>
|
||||||
|
<returns>A <see cref="T:System.Drawing.Image" />.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.GetCachedBrush(OxyPlot.OxyColor)">
|
||||||
|
<summary>
|
||||||
|
Gets the cached brush.
|
||||||
|
</summary>
|
||||||
|
<param name="fill">The fill color.</param>
|
||||||
|
<returns>A <see cref="T:System.Drawing.Brush" />.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.CreatePen(OxyPlot.OxyColor,System.Double,System.Double[],OxyPlot.LineJoin)">
|
||||||
|
<summary>
|
||||||
|
Gets a cached pen.
|
||||||
|
</summary>
|
||||||
|
<param name="stroke">The stroke.</param>
|
||||||
|
<param name="thickness">The thickness.</param>
|
||||||
|
<param name="dashArray">The dash array.</param>
|
||||||
|
<param name="lineJoin">The line join.</param>
|
||||||
|
<returns>A <see cref="T:System.Drawing.Pen" />.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.ToFloatArray(System.Double[])">
|
||||||
|
<summary>
|
||||||
|
Converts a double array to a float array.
|
||||||
|
</summary>
|
||||||
|
<param name="a">The a.</param>
|
||||||
|
<returns>The float array.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.GraphicsRenderContext.ToPoints(System.Collections.Generic.IList{OxyPlot.ScreenPoint})">
|
||||||
|
<summary>
|
||||||
|
Converts a list of point to an array of PointF.
|
||||||
|
</summary>
|
||||||
|
<param name="points">The points.</param>
|
||||||
|
<returns>An array of points.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="T:OxyPlot.WindowsForms.NamespaceDoc">
|
||||||
|
<summary>
|
||||||
|
The OxyPlot.WindowsForms namespace contains controls for Windows Forms and a bitmap exporter.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="T:OxyPlot.WindowsForms.PlotModelExtensions">
|
||||||
|
<summary>
|
||||||
|
Provides extension methods to the <see cref="T:OxyPlot.PlotModel" />.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PlotModelExtensions.ToSvg(OxyPlot.PlotModel,System.Double,System.Double,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
Creates an SVG string.
|
||||||
|
</summary>
|
||||||
|
<param name="model">The model.</param>
|
||||||
|
<param name="width">The width (points).</param>
|
||||||
|
<param name="height">The height (points).</param>
|
||||||
|
<param name="isDocument">if set to <c>true</c>, the xml headers will be included (?xml and !DOCTYPE).</param>
|
||||||
|
<returns>A <see cref="T:System.String" />.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="T:OxyPlot.WindowsForms.PngExporter">
|
||||||
|
<summary>
|
||||||
|
Provides functionality to export plots to png.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PngExporter.#ctor">
|
||||||
|
<summary>
|
||||||
|
Initializes a new instance of the <see cref="T:OxyPlot.WindowsForms.PngExporter" /> class.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PngExporter.Width">
|
||||||
|
<summary>
|
||||||
|
Gets or sets the width of the output image.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PngExporter.Height">
|
||||||
|
<summary>
|
||||||
|
Gets or sets the height of the output image.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PngExporter.Resolution">
|
||||||
|
<summary>
|
||||||
|
Gets or sets the resolution (dpi) of the output image.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:OxyPlot.WindowsForms.PngExporter.Background">
|
||||||
|
<summary>
|
||||||
|
Gets or sets the background color.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PngExporter.Export(OxyPlot.IPlotModel,System.String,System.Int32,System.Int32,System.Drawing.Brush)">
|
||||||
|
<summary>
|
||||||
|
Exports the specified model.
|
||||||
|
</summary>
|
||||||
|
<param name="model">The model.</param>
|
||||||
|
<param name="fileName">The file name.</param>
|
||||||
|
<param name="width">The width.</param>
|
||||||
|
<param name="height">The height.</param>
|
||||||
|
<param name="background">The background.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PngExporter.Export(OxyPlot.IPlotModel,System.IO.Stream)">
|
||||||
|
<summary>
|
||||||
|
Exports the specified <see cref="T:OxyPlot.PlotModel" /> to the specified <see cref="T:System.IO.Stream" />.
|
||||||
|
</summary>
|
||||||
|
<param name="model">The model.</param>
|
||||||
|
<param name="stream">The output stream.</param>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.PngExporter.ExportToBitmap(OxyPlot.IPlotModel)">
|
||||||
|
<summary>
|
||||||
|
Exports the specified <see cref="T:OxyPlot.PlotModel" /> to a <see cref="T:System.Drawing.Bitmap" />.
|
||||||
|
</summary>
|
||||||
|
<param name="model">The model to export.</param>
|
||||||
|
<returns>A bitmap.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="T:OxyPlot.WindowsForms.SvgExporter">
|
||||||
|
<summary>
|
||||||
|
Provides functionality to export plots to scalable vector graphics using <see cref="T:System.Drawing.Graphics" /> for text measuring.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.SvgExporter.g">
|
||||||
|
<summary>
|
||||||
|
The graphics drawing surface.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="F:OxyPlot.WindowsForms.SvgExporter.grc">
|
||||||
|
<summary>
|
||||||
|
The render context.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.SvgExporter.#ctor">
|
||||||
|
<summary>
|
||||||
|
Initializes a new instance of the <see cref="T:OxyPlot.WindowsForms.SvgExporter" /> class.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:OxyPlot.WindowsForms.SvgExporter.Dispose">
|
||||||
|
<summary>
|
||||||
|
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
</members>
|
||||||
|
</doc>
|
BIN
Mqtt-Dashboard/bin/Release/OxyPlot.dll
Normal file
BIN
Mqtt-Dashboard/bin/Release/OxyPlot.dll
Normal file
Binary file not shown.
21352
Mqtt-Dashboard/bin/Release/OxyPlot.xml
Normal file
21352
Mqtt-Dashboard/bin/Release/OxyPlot.xml
Normal file
File diff suppressed because it is too large
Load Diff
@ -2,4 +2,6 @@
|
|||||||
<packages>
|
<packages>
|
||||||
<package id="LitJson" version="0.9.0" targetFramework="net452" />
|
<package id="LitJson" version="0.9.0" targetFramework="net452" />
|
||||||
<package id="M2Mqtt" version="4.3.0.0" targetFramework="net452" />
|
<package id="M2Mqtt" version="4.3.0.0" targetFramework="net452" />
|
||||||
|
<package id="OxyPlot.Core" version="1.0.0" targetFramework="net452" />
|
||||||
|
<package id="OxyPlot.WindowsForms" version="1.0.0" targetFramework="net452" />
|
||||||
</packages>
|
</packages>
|
Loading…
Reference in New Issue
Block a user