Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsChartDataFactory.cs =================================================================== diff -u -r411b50528bbd83c02ffdcae699895529b2b34bf7 -r39496fd42e53a9fb20fec4f2a1b4dcdfadcaea3d --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsChartDataFactory.cs (.../GrassCoverErosionInwardsChartDataFactory.cs) (revision 411b50528bbd83c02ffdcae699895529b2b34bf7) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsChartDataFactory.cs (.../GrassCoverErosionInwardsChartDataFactory.cs) (revision 39496fd42e53a9fb20fec4f2a1b4dcdfadcaea3d) @@ -23,6 +23,7 @@ using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; +using Core.Common.Base.Geometry; using Core.Components.Charting.Data; using Core.Components.Charting.Styles; using Ringtoets.GrassCoverErosionInwards.Data; @@ -37,22 +38,45 @@ public static class GrassCoverErosionInwardsChartDataFactory { /// - /// Create with default styling based on the . + /// Create with default styling based on the . /// - /// The for which to create . - /// based on the . - /// Thrown when is null. - public static ChartData Create(DikeProfile dikeProfile) + /// The geometry of the for which to create + /// . + /// based on the . + /// Thrown when + /// is null. + public static ChartData Create(RoughnessPoint[] dikeGeometry) { - if (dikeProfile == null) + if (dikeGeometry == null) { - throw new ArgumentNullException("dikeProfile"); + throw new ArgumentNullException("dikeGeometry"); } - return new ChartLineData(dikeProfile.DikeGeometry.Select(dg => dg.Point), Resources.DikeProfile_DisplayName) + return new ChartLineData(dikeGeometry.Select(dg => dg.Point), Resources.DikeProfile_DisplayName) { Style = new ChartLineStyle(Color.SaddleBrown, 2, DashStyle.Solid) }; } + + /// + /// Create with default styling based on the . + /// + /// The forshore geometry of the + /// for which to create . + /// based on the . + /// Thrown when + /// is null. + public static ChartData Create(Point2D[] foreshoreGeometry) + { + if (foreshoreGeometry == null) + { + throw new ArgumentNullException("foreshoreGeometry"); + } + + return new ChartLineData(foreshoreGeometry, Resources.Foreshore_DisplayName) + { + Style = new ChartLineStyle(Color.DarkOrange, 2, DashStyle.Solid) + }; + } } } \ No newline at end of file