A line on a graph: consists of a list of points and a list of lines connecting them.
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Rendering2D.Graphs GraphLine
Namespace: DeltaEngine.Rendering2D.Graphs
Assembly: DeltaEngine.Rendering2D.Graphs (in DeltaEngine.Rendering2D.Graphs.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The GraphLine type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddPoint | ||
AddValue(Single) | ||
AddValue(Single, Single) | ||
Clear | ||
Refresh | ||
RemoveAt |
Properties
Name | Description | |
---|---|---|
Color | ||
Key |
Remarks
Examples
[Test, CloseAfterFirstFrame] public void CheckLineColor() { var line = graph.CreateLine("", Color.Blue); line.AddPoint(Vector2D.Zero); line.AddPoint(Vector2D.One); Assert.AreEqual(Color.Blue, line.Color); Assert.AreEqual(Color.Blue, line.lines[0].Color); line.Color = Color.Green; Assert.AreEqual(Color.Green, line.Color); }
[Test, CloseAfterFirstFrame] public void ChangeLineColor() { var line = graph.CreateLine("", Color.Blue); line.AddPoint(Vector2D.Zero); line.AddPoint(Vector2D.One); line.Color = Color.Green; Assert.AreEqual(Color.Green, line.Color); Assert.AreEqual(Color.Green, line.lines[0].Color); }
[Test, CloseAfterFirstFrame] public void ChangeLineKey() { var line = graph.CreateLine("ABC", Color.Blue); Assert.AreEqual("ABC", line.Key); line.Key = "DEF"; Assert.AreEqual("DEF", line.Key); }
See Also