Renders a graph with one or more lines at a given scale. Various logic can be turned on and
off including autogrowing, auto-pruning and rendering axes and percentiles.
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Entities Entity
DeltaEngine.Entities DrawableEntity
DeltaEngine.Rendering2D Entity2D
DeltaEngine.Rendering2D.Shapes Polygon2D
DeltaEngine.Rendering2D.Shapes FilledRect
DeltaEngine.Rendering2D.Graphs Graph
Namespace: DeltaEngine.Rendering2D.Graphs
Assembly: DeltaEngine.Rendering2D.Graphs (in DeltaEngine.Rendering2D.Graphs.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The Graph type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | Graph | Initializes a new instance of the Graph class |
Methods
Extension Methods
Name | Description | |
---|---|---|
![]() | AffixToPhysics | (Defined by Entity2DPhysicsExtensions.) |
![]() | StartBouncingOffScreenEdges | (Defined by Entity2DExtensions.) |
![]() | StartFalling | (Defined by Entity2DExtensions.) |
![]() | StartMoving | (Defined by Entity2DExtensions.) |
![]() | StartRotating | (Defined by Entity2DExtensions.) |
Fields
Name | Description | |
---|---|---|
![]() | components | (Inherited from Entity.) |
![]() | lastTickLerpComponents |
Each element can either be a Lerp, a Lerp List or an array of Lerp objects.
View code on GitHub (Inherited from DrawableEntity.) |
Properties
Name | Description | |
---|---|---|
![]() | Alpha | (Inherited from Entity2D.) |
![]() | ArePercentileLabelsInteger | |
![]() | AxesIsVisible | |
![]() | AxisColor | |
![]() | Center | (Inherited from Entity2D.) |
![]() | Color | (Inherited from Entity2D.) |
![]() | DidFootprintChange | (Inherited from Entity2D.) |
![]() | DrawArea | (Inherited from Polygon2D.) |
![]() | IsActive | (Inherited from DrawableEntity.) |
![]() | IsAutogrowing | |
![]() | IsPauseable | (Inherited from Entity.) |
![]() | IsVisible | (Inherited from DrawableEntity.) |
![]() | KeyVisibility | |
![]() | LastColor | (Inherited from Entity2D.) |
![]() | LastDrawArea | (Inherited from Entity2D.) |
![]() | MaximumNumberOfPoints | |
![]() | NumberOfComponents | (Inherited from Entity.) |
![]() | NumberOfPercentiles | |
![]() | Origin | |
![]() | PercentileColor | |
![]() | PercentileLabelColor | |
![]() | PercentileLabelsIsVisible | |
![]() | PercentilePrefix | |
![]() | PercentilesIsVisible | |
![]() | PercentileSuffix | |
![]() | Points | (Inherited from Polygon2D.) |
![]() | RenderLayer | (Inherited from DrawableEntity.) |
![]() | Rotation | (Inherited from Entity2D.) |
![]() | RotationCenter | (Inherited from Entity2D.) |
![]() | Size | (Inherited from Entity2D.) |
![]() | TopLeft | (Inherited from Entity2D.) |
![]() | UpdatePriority | (Inherited from Entity.) |
![]() | Viewport |
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