diff --git a/Terminal.Gui/Core/Graphs/StraightLineCanvas.cs b/Terminal.Gui/Core/Graphs/LineCanvas.cs similarity index 99% rename from Terminal.Gui/Core/Graphs/StraightLineCanvas.cs rename to Terminal.Gui/Core/Graphs/LineCanvas.cs index 42fccbbf2..07767564b 100644 --- a/Terminal.Gui/Core/Graphs/StraightLineCanvas.cs +++ b/Terminal.Gui/Core/Graphs/LineCanvas.cs @@ -9,12 +9,13 @@ namespace Terminal.Gui.Graphs { /// Facilitates box drawing and line intersection detection /// and rendering. /// - public class StraightLineCanvas { + public class LineCanvas { + private List lines = new List (); private ConsoleDriver driver; - public StraightLineCanvas (ConsoleDriver driver) + public LineCanvas (ConsoleDriver driver) { this.driver = driver; } diff --git a/UICatalog/Scenarios/Drawing.cs b/UICatalog/Scenarios/Drawing.cs index b697f1df2..cb8ef29fc 100644 --- a/UICatalog/Scenarios/Drawing.cs +++ b/UICatalog/Scenarios/Drawing.cs @@ -38,7 +38,7 @@ namespace UICatalog.Scenarios { class ToolsView : View { - StraightLineCanvas grid; + LineCanvas grid; public event Action ColorChanged; public event Action SetHeavy; @@ -52,7 +52,7 @@ namespace UICatalog.Scenarios { public ToolsView (int width) { - grid = new StraightLineCanvas (Application.Driver); + grid = new LineCanvas (Application.Driver); grid.AddLine (new Point (0, 0), int.MaxValue, Orientation.Vertical, BorderStyle.Single); grid.AddLine (new Point (0, 0), width, Orientation.Horizontal, BorderStyle.Single); @@ -115,7 +115,7 @@ namespace UICatalog.Scenarios { /// Index into by color. /// Dictionary colorLayers = new Dictionary (); - List canvases = new List (); + List canvases = new List (); int currentColor; Point? currentLineStart = null; @@ -137,7 +137,7 @@ namespace UICatalog.Scenarios { return; } - canvases.Add (new StraightLineCanvas (Application.Driver)); + canvases.Add (new LineCanvas (Application.Driver)); colorLayers.Add (c, canvases.Count - 1); currentColor = canvases.Count - 1; }